/third_party/gn/src/gn/ |
H A D | functions.cc | 26 #include "gn/scope.h" 54 // This key is set as a scope property on the scope of a declare_args() block, 65 // If the value didn't come from a scope at all, we're safe. in EnsureNotReadingFromSameDeclareArgs() 87 const Scope* scope, in EnsureNotProcessingImport() 89 if (scope->IsProcessingImport()) { in EnsureNotProcessingImport() 101 const Scope* scope, in EnsureNotProcessingBuildConfig() 103 if (scope->IsProcessingBuildConfig()) { in EnsureNotProcessingBuildConfig() 112 bool FillTargetBlockScope(const Scope* scope, in FillTargetBlockScope() argument 124 // Copy the target defaults, if any, into the scope w in FillTargetBlockScope() 86 EnsureNotProcessingImport(const ParseNode* node, const Scope* scope, Err* err) EnsureNotProcessingImport() argument 100 EnsureNotProcessingBuildConfig(const ParseNode* node, const Scope* scope, Err* err) EnsureNotProcessingBuildConfig() argument 165 ToolchainLabelForScope(const Scope* scope) ToolchainLabelForScope() argument 169 MakeLabelForScope(const Scope* scope, const FunctionCallNode* function, const std::string& name) MakeLabelForScope() argument 180 NonNestableBlock(Scope* scope, const FunctionCallNode* function, const char* type_description) NonNestableBlock() argument 233 RunAssert(Scope* scope, const FunctionCallNode* function, const std::vector<Value>& args, Err* err) RunAssert() argument 356 RunConfig(const FunctionCallNode* function, const std::vector<Value>& args, Scope* scope, Err* err) RunConfig() argument 478 RunDeclareArgs(Scope* scope, const FunctionCallNode* function, const std::vector<Value>& args, BlockNode* block, Err* err) RunDeclareArgs() argument 548 RunDefined(Scope* scope, const FunctionCallNode* function, const ListNode* args_list, Err* err) RunDefined() argument 629 RunGetEnv(Scope* scope, const FunctionCallNode* function, const std::vector<Value>& args, Err* err) RunGetEnv() argument [all...] |
H A D | scope_unittest.cc | 5 #include "gn/scope.h" 16 bool HasStringValueEqualTo(const Scope* scope, in HasStringValueEqualTo() argument 19 const Value* value = scope->GetValue(name); in HasStringValueEqualTo() 27 bool ContainsBuildDependencyFile(const Scope* scope, in ContainsBuildDependencyFile() argument 29 const auto& build_dependency_files = scope->build_dependency_files(); in ContainsBuildDependencyFile() 39 setup.scope()->AddBuildDependencyFile(source_file); in TEST() 41 Scope new_scope(setup.scope()); in TEST() 57 // Add some values to the scope. in TEST() 59 setup.scope()->SetValue("v", old_value, &assignment); in TEST() 61 setup.scope() in TEST() [all...] |
H A D | tool.cc | 89 bool Tool::ReadBool(Scope* scope, const char* var, bool* field, Err* err) { in ReadBool() argument 91 const Value* v = scope->GetValue(var, true); in ReadBool() 100 bool Tool::ReadString(Scope* scope, in ReadString() argument 105 const Value* v = scope->GetValue(var, true); in ReadString() 114 bool Tool::ReadPattern(Scope* scope, in ReadPattern() argument 119 const Value* value = scope->GetValue(var, true); in ReadPattern() 135 bool Tool::ReadPatternList(Scope* scope, in ReadPatternList() argument 140 const Value* value = scope->GetValue(var, true); in ReadPatternList() 158 bool Tool::ReadLabel(Scope* scope, in ReadLabel() argument 164 const Value* v = scope in ReadLabel() 182 ReadOutputExtension(Scope* scope, Err* err) ReadOutputExtension() argument 202 InitTool(Scope* scope, Toolchain* toolchain, Err* err) InitTool() argument 228 CreateTool(const ParseNode* function, const std::string& name, Scope* scope, Toolchain* toolchain, Err* err) CreateTool() argument [all...] |
H A D | operators_unittest.cc | 37 Value Execute(Scope* scope, Err* err) const override { return value_; } 104 setup.scope()->SetValue(sources, Value(nullptr, Value::LIST), nullptr); in TEST() 112 node.Execute(setup.scope(), &err); in TEST() 118 node.Execute(setup.scope(), &err); in TEST() 123 node.Execute(setup.scope(), &err); in TEST() 126 // The sources variable in the scope should now have: [ 5, "good", "good" ] in TEST() 127 const Value* value = setup.scope()->GetValue(sources); in TEST() 144 setup.scope()->SetValue(foo, Value(nullptr, Value::LIST), nullptr); in TEST() 155 Value ret = ExecuteBinaryOperator(setup.scope(), &node, node.left(), in TEST() 164 Value result = *setup.scope() in TEST() [all...] |
H A D | import_manager.cc | 18 // Returns a newly-allocated scope on success, null on failure. 31 std::unique_ptr<Scope> scope = in UncachedImport() 33 scope->set_source_dir(file.GetDir()); in UncachedImport() 38 ScopePerFileProvider per_file_provider(scope.get(), false); in UncachedImport() 40 scope->SetProcessingImport(); in UncachedImport() 41 node->Execute(scope.get(), err); in UncachedImport() 48 scope->ClearProcessingImport(); in UncachedImport() 50 return scope; in UncachedImport() 59 // This lock protects the unique_ptr. Once the scope is computed, 63 std::unique_ptr<const Scope> scope; member 75 DoImport(const SourceFile& file, const ParseNode* node_for_err, Scope* scope, Err* err) DoImport() argument [all...] |
H A D | template.cc | 13 #include "gn/scope.h" 20 Template::Template(const Scope* scope, const FunctionCallNode* def) in Template() argument 21 : closure_(scope->MakeClosure()), definition_(def) {} in Template() 23 Template::Template(std::unique_ptr<Scope> scope, const FunctionCallNode* def) in Template() argument 24 : closure_(std::move(scope)), definition_(def) {} in Template() 28 Value Template::Invoke(Scope* scope, in Invoke() argument 36 if (!EnsureNotProcessingImport(invocation, scope, err)) in Invoke() 40 trace.SetToolchain(scope->settings()->toolchain_label()); in Invoke() 42 // First run the invocation's block. Need to allocate the scope on the heap in Invoke() 44 std::unique_ptr<Scope> invocation_scope = std::make_unique<Scope>(scope); in Invoke() [all...] |
H A D | functions_unittest.cc | 27 input.parsed()->Execute(setup.scope(), &err); in TEST() 36 input.parsed()->Execute(setup.scope(), &err); in TEST() 46 input.parsed()->Execute(setup.scope(), &err); in TEST() 68 input.parsed()->Execute(setup.scope(), &err); in TEST() 86 Value result = functions::RunDefined(setup.scope(), &function_call, in TEST() 91 // Define a value that's itself a scope value. in TEST() 93 setup.scope()->SetValue( in TEST() 94 kDef, Value(nullptr, std::make_unique<Scope>(setup.scope())), nullptr); in TEST() 101 result = functions::RunDefined(setup.scope(), &function_call, in TEST() 107 // "defined(def.foo)" to see if foo is defined on the def scope in TEST() [all...] |
H A D | function_forward_variables_from_unittest.cc | 32 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 43 // something in the given scope throws an error rather than clobbering it. in TEST_F() 45 // variable in the scope before it. in TEST_F() 49 clobber.parsed()->Execute(setup.scope(), &err); in TEST_F() 58 // Forwards all variables from a literal scope into another scope definition. in TEST_F() 69 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 96 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 106 // Type check the source scope. in TEST_F() 116 invalid_source.parsed()->Execute(setup.scope(), in TEST_F() [all...] |
H A D | target_generator.cc | 30 #include "gn/scope.h" 37 Scope* scope, in TargetGenerator() 41 scope_(scope), in TargetGenerator() 78 void TargetGenerator::GenerateTarget(Scope* scope, in GenerateTarget() argument 92 const Label& toolchain_label = ToolchainLabelForScope(scope); in GenerateTarget() 93 Label label(scope->GetSourceDir(), args[0].string_value(), in GenerateTarget() 100 scope->settings(), label, scope->build_dependency_files()); in GenerateTarget() 105 BundleDataTargetGenerator generator(target.get(), scope, function_call, in GenerateTarget() 109 CreateBundleTargetGenerator generator(target.get(), scope, function_cal in GenerateTarget() 36 TargetGenerator(Target* target, Scope* scope, const FunctionCallNode* function_call, Err* err) TargetGenerator() argument [all...] |
H A D | function_foreach.cc | 8 #include "gn/scope.h" 26 The block does not introduce a new scope, so that variable assignments inside 31 variable will no longer be in scope, and the previous value (if any) will be 47 Value RunForEach(Scope* scope, in RunForEach() argument 69 Value list_value = args_vector[1]->Execute(scope, err); in RunForEach() 84 // If the loop variable was previously defined in this scope, save it so we in RunForEach() 86 const Value* old_loop_value_ptr = scope->GetValue(loop_var); in RunForEach() 92 scope->SetValue(loop_var, cur, function); in RunForEach() 93 block->Execute(scope, err); in RunForEach() 101 // which will probably point to the new value now in the scope in RunForEach() [all...] |
/third_party/node/deps/v8/src/parsing/ |
H A D | preparse-data.cc | 67 scope positions (debug only) 69 | scope type << only in debug | 77 | data for inner scope m | << but not for function scopes 82 | data for inner scope 1 | 268 bool PreparseDataBuilder::ScopeNeedsData(Scope* scope) { in ScopeNeedsData() argument 269 if (scope->is_function_scope()) { in ScopeNeedsData() 272 return !IsDefaultConstructor(scope->AsDeclarationScope()->function_kind()); in ScopeNeedsData() 274 if (!scope->is_hidden()) { in ScopeNeedsData() 275 for (Variable* var : *scope->locals()) { in ScopeNeedsData() 279 for (Scope* inner = scope in ScopeNeedsData() 315 SaveScopeAllocationData(DeclarationScope* scope, Parser* parser) SaveScopeAllocationData() argument 356 SaveDataForScope(Scope* scope) SaveDataForScope() argument 413 SaveDataForInnerScopes(Scope* scope) SaveDataForInnerScopes() argument 626 RestoreScopeAllocationData( DeclarationScope* scope, AstValueFactory* ast_value_factory, Zone* zone) RestoreScopeAllocationData() argument 649 RestoreDataForScope( Scope* scope, AstValueFactory* ast_value_factory, Zone* zone) RestoreDataForScope() argument 743 RestoreDataForInnerScopes( Scope* scope, AstValueFactory* ast_value_factory, Zone* zone) RestoreDataForInnerScopes() argument [all...] |
H A D | expression-scope.h | 61 for (Scope* scope = parser()->scope(); !scope->is_declaration_scope(); in NewVariable() 62 scope = scope->outer_scope()) { in NewVariable() 63 if (scope->is_with_scope()) { in NewVariable() 65 } else if (scope->is_catch_scope()) { in NewVariable() 66 Variable* masking_var = scope->LookupLocal(name); in NewVariable() 67 // If a variable is declared in a catch scope with a masking in NewVariable() 81 // If a variable is declared in a with scope, th in NewVariable() 150 ExpressionScope* scope = this; RecordParameterInitializerError() local 163 ExpressionScope* scope = this; RecordThisUse() local 675 AccumulationScope(ExpressionScope<Types>* scope) AccumulationScope() argument [all...] |
/third_party/jerryscript/tests/unit-ext/ |
H A D | test-ext-handle-scope-escape.c | 17 * Unit test for jerry-ext/handle-scope. 21 #include "jerryscript-ext/handle-scope.h" 41 jerryx_escapable_handle_scope scope; in create_object() local 42 jerryx_open_escapable_handle_scope (&scope); in create_object() 48 jerryx_escape_handle (scope, obj, &escaped); in create_object() 49 TEST_ASSERT (scope->prelist_handle_count == 0); in create_object() 50 TEST_ASSERT (scope->handle_ptr == NULL); in create_object() 52 jerryx_close_handle_scope (scope); in create_object() 59 jerryx_handle_scope scope; in test_handle_scope_val() local 60 jerryx_open_handle_scope (&scope); in test_handle_scope_val() [all...] |
H A D | test-ext-handle-scope-remove.c | 17 * Unit test for jerry-ext/handle-scope. 21 #include "jerryscript-ext/handle-scope.h" 41 jerryx_escapable_handle_scope scope; in create_object() local 42 jerryx_open_escapable_handle_scope (&scope); in create_object() 48 jerryx_remove_handle (scope, obj, &escaped); in create_object() 49 TEST_ASSERT (scope->prelist_handle_count == 0); in create_object() 50 TEST_ASSERT (scope->handle_ptr == NULL); in create_object() 52 jerryx_close_handle_scope (scope); in create_object() 59 jerryx_handle_scope scope; in test_handle_scope_val() local 60 jerryx_open_handle_scope (&scope); in test_handle_scope_val() [all...] |
H A D | test-ext-handle-scope-handle-prelist-escape.c | 17 * Unit test for jerry-ext/handle-scope-handle-prelist-escape. 19 * Tests escaping jerry value that holds on scope's prelist. 23 #include "jerryscript-ext/handle-scope.h" 44 jerryx_escapable_handle_scope scope; in create_object() local 45 jerryx_open_escapable_handle_scope (&scope); in create_object() 56 jerryx_escape_handle (scope, obj, &escaped); in create_object() 57 TEST_ASSERT (scope->prelist_handle_count == JERRYX_HANDLE_PRELIST_SIZE); in create_object() 59 jerryx_close_handle_scope (scope); in create_object() 66 jerryx_handle_scope scope; in test_handle_scope_val() local 67 jerryx_open_handle_scope (&scope); in test_handle_scope_val() [all...] |
H A D | test-ext-handle-scope-handle-prelist.c | 17 * Unit test for jerry-ext/handle-scope-handle-prelist. 19 * Tests escaping jerry value that holds on scope's handle heap. 23 #include "jerryscript-ext/handle-scope.h" 44 jerryx_escapable_handle_scope scope; in create_object() local 45 jerryx_open_escapable_handle_scope (&scope); in create_object() 56 jerryx_escape_handle (scope, obj, &escaped); in create_object() 57 TEST_ASSERT (scope->prelist_handle_count == JERRYX_HANDLE_PRELIST_SIZE); in create_object() 59 jerryx_close_handle_scope (scope); in create_object() 66 jerryx_handle_scope scope; in test_handle_scope_val() local 67 jerryx_open_handle_scope (&scope); in test_handle_scope_val() [all...] |
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-internal.cc | 43 HandleScope scope(isolate); in RUNTIME_FUNCTION() 54 HandleScope scope(isolate); in RUNTIME_FUNCTION() 61 HandleScope scope(isolate); in RUNTIME_FUNCTION() 68 HandleScope scope(isolate); in RUNTIME_FUNCTION() 74 HandleScope scope(isolate); in RUNTIME_FUNCTION() 80 HandleScope scope(isolate); in RUNTIME_FUNCTION() 92 HandleScope scope(isolate); in RUNTIME_FUNCTION() 99 HandleScope scope(isolate); \ 165 HandleScope scope(isolate); in RUNTIME_FUNCTION() 199 HandleScope scope(isolat in RUNTIME_FUNCTION() [all...] |
/third_party/vixl/src/aarch32/ |
H A D | macro-assembler-aarch32.cc | 63 // the _same_ scope is implementation-defined, and is likely to change in in Close() 227 CodeBufferCheckScope scope(this, kMaxInstructionSizeInBytes); in HandleOutOfBoundsImmediate() 233 CodeBufferCheckScope scope(this, kMaxInstructionSizeInBytes); in HandleOutOfBoundsImmediate() 239 CodeBufferCheckScope scope(this, kMaxInstructionSizeInBytes); in HandleOutOfBoundsImmediate() 244 CodeBufferCheckScope scope(this, 2 * kMaxInstructionSizeInBytes); in HandleOutOfBoundsImmediate() 299 ExactAssemblyScope scope(this, k32BitT32InstructionSizeInBytes); in MemOperandComputationHelper() 695 CodeBufferCheckScope scope(this, kMaxInstructionSizeInBytes); 741 CodeBufferCheckScope scope(this, 2 * kMaxInstructionSizeInBytes); 759 CodeBufferCheckScope scope(this, kMaxInstructionSizeInBytes); 770 CodeBufferCheckScope scope(thi [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | LLVMReactorDebugInfo.cpp | 109 file, // scope in DebugInfo() 115 location.line, // scope line in DebugInfo() 160 auto &scope = diScope.back(); in syncScope() 162 int(diScope.size() - 1), scope.di, in syncScope() 163 scope.location.function.file.c_str(), in syncScope() 164 int(scope.location.line)); in syncScope() 165 emitPending(scope, builder); in syncScope() 177 auto &scope = diScope[i]; in syncScope() local 178 auto const &oldLocation = scope.location; in syncScope() 193 auto di = diBuilder->createLexicalBlock(scope in syncScope() 281 auto &scope = diScope[i]; EmitVariable() local 318 emitPending(Scope &scope, IRBuilder *builder) emitPending() argument [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | scope-info.cc | 5 #include "src/objects/scope-info.h" 14 #include "src/objects/scope-info-inl.h" 61 Handle<ScopeInfo> ScopeInfo::Create(IsolateT* isolate, Zone* zone, Scope* scope, in Create() argument 66 // Stack allocated block scope variables are allocated in the parent in Create() 67 // declaration scope, but are recorded in the block scope's scope info. First in Create() 68 // slot index indicates at which offset a particular scope starts in the in Create() 69 // parent declaration scope. in Create() 70 for (Variable* var : *scope in Create() [all...] |
/third_party/jerryscript/jerry-ext/handle-scope/ |
H A D | handle-scope-internal.h | 21 #include "jerryscript-ext/handle-scope.h" 43 /** MARK: - handle-scope-allocator.c */ 53 jerryx_handle_scope_dynamic_t *start; /**< start address of dynamically allocated handle scope list */ 57 jerryx_handle_scope_get_parent (jerryx_handle_scope_t *scope); 60 jerryx_handle_scope_get_child (jerryx_handle_scope_t *scope); 66 jerryx_handle_scope_free (jerryx_handle_scope_t *scope); 67 /** MARK: - END handle-scope-allocator.c */ 69 /** MARK: - handle-scope.c */ 71 jerryx_handle_scope_release_handles (jerryx_handle_scope scope); 74 jerryx_hand_scope_escape_handle_from_prelist (jerryx_handle_scope scope, size_ [all...] |
/third_party/protobuf/python/google/protobuf/ |
H A D | descriptor_pool.py | 590 scope = self.FindMessageTypeByName(message_name) 592 # Some extensions are defined at file scope. 593 scope = self._FindFileContainingSymbolInDb(full_name) 594 return scope.extensions_by_name[extension_name] 756 scope = {} 760 # scope of available message types when defining the passed in 763 scope.update(self._ExtractSymbols( 765 scope.update((_PrefixWithDot(enum.full_name), enum) 770 message_type, file_proto.package, file_descriptor, scope, 778 file_descriptor, None, scope, Tru [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-intl.cc | 42 HandleScope scope(isolate); in BUILTIN() 60 HandleScope scope(isolate); in BUILTIN() 71 HandleScope scope(isolate); in BUILTIN() 108 HandleScope scope(isolate); in BUILTIN() 122 HandleScope scope(isolate); in BUILTIN() 398 HandleScope scope(isolate); in BUILTIN() 406 HandleScope scope(isolate); in BUILTIN() 413 HandleScope scope(isolate); in BUILTIN() 424 HandleScope scope(isolate); in BUILTIN() 435 HandleScope scope(isolat in BUILTIN() [all...] |
/third_party/selinux/libsepol/tests/ |
H A D | helpers.c | 68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); in test_find_decl_by_sym() local 70 if (scope == NULL) { in test_find_decl_by_sym() 73 if (scope->scope != SCOPE_DECL) { in test_find_decl_by_sym() 76 if (scope->decl_ids_len != 1) { in test_find_decl_by_sym() 80 return p->decl_val_to_struct[scope->decl_ids[0] - 1]; in test_find_decl_by_sym()
|
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/ |
H A D | pthread_attr.c | 46 attr->scope = PTHREAD_SCOPE_PROCESS; in pthread_attr_init() 86 int pthread_attr_setscope(pthread_attr_t *attr, int scope) in pthread_attr_setscope() argument 92 if (scope == PTHREAD_SCOPE_PROCESS) { in pthread_attr_setscope() 93 attr->scope = (unsigned int)scope; in pthread_attr_setscope() 97 if (scope == PTHREAD_SCOPE_SYSTEM) { in pthread_attr_setscope() 104 int pthread_attr_getscope(const pthread_attr_t *attr, int *scope) in pthread_attr_getscope() argument 106 if ((attr == NULL) || (scope == NULL)) { in pthread_attr_getscope() 110 *scope = (int)attr->scope; in pthread_attr_getscope() [all...] |