/third_party/gn/src/gn/ |
H A D | function_write_file.cc | 54 Value RunWriteFile(Scope* scope, in RunWriteFile() argument 65 const SourceDir& cur_dir = scope->GetSourceDir(); in RunWriteFile() 67 args[0], err, scope->settings()->build_settings()->root_path_utf8()); in RunWriteFile() 71 scope->settings()->build_settings()->build_dir(), source_file.value(), in RunWriteFile() 82 scope->settings()->build_settings()->GetFullPath(source_file)); in RunWriteFile() 94 ConvertValueToOutput(scope->settings(), args[1], output_conversion, contents, in RunWriteFile() 100 scope->settings()->build_settings()->GetFullPath(source_file); in RunWriteFile()
|
H A D | function_read_file.cc | 42 Value RunReadFile(Scope* scope, in RunReadFile() argument 55 const SourceDir& cur_dir = scope->GetSourceDir(); in RunReadFile() 57 args[0], err, scope->settings()->build_settings()->root_path_utf8()); in RunReadFile() 60 scope->AddBuildDependencyFile(source_file); in RunReadFile() 62 scope->settings()->build_settings()->GetFullPath(source_file); in RunReadFile() 75 return ConvertInputToValue(scope->settings(), file_contents, function, in RunReadFile()
|
H A D | scope_per_file_provider_unittest.cc | 21 Scope scope(test.settings()); in TEST() 22 scope.set_source_dir(SourceDir("//source/")); in TEST() 23 ScopePerFileProvider provider(&scope, true); in TEST() 45 Scope scope(&settings); in TEST() 46 scope.set_source_dir(SourceDir("//source/")); in TEST() 47 ScopePerFileProvider provider(&scope, true); in TEST()
|
H A D | parse_node_value_adapter.cc | 8 #include "gn/scope.h" 14 bool ParseNodeValueAdapter::Init(Scope* scope, in Init() argument 19 ref_ = scope->GetValue(identifier->value().value(), true); in Init() 27 temporary_ = node->Execute(scope, err); in Init() 31 bool ParseNodeValueAdapter::InitForType(Scope* scope, in InitForType() argument 35 if (!Init(scope, node, err)) in InitForType()
|
H A D | config_values_generator.cc | 11 #include "gn/scope.h" 19 void GetStringList(Scope* scope, in GetStringList() argument 24 const Value* value = scope->GetValue(var_name, true); in GetStringList() 31 void GetDirList(Scope* scope, in GetDirList() argument 37 const Value* value = scope->GetValue(var_name, true); in GetDirList() 42 ExtractListOfRelativeDirs(scope->settings()->build_settings(), *value, in GetDirList() 47 void GetFrameworksList(Scope* scope, in GetFrameworksList() argument 52 const Value* value = scope->GetValue(var_name, true); in GetFrameworksList() 78 Scope* scope, in ConfigValuesGenerator() 82 scope_(scope), in ConfigValuesGenerator() 77 ConfigValuesGenerator(ConfigValues* dest_values, Scope* scope, const SourceDir& input_dir, Err* err) ConfigValuesGenerator() argument [all...] |
H A D | operators.cc | 13 #include "gn/scope.h" 30 // Returns the value in the destination scope if it already exists, or null 36 // not search nested scopes since writes only go into the current scope. 37 // Returns null if the value does not exist, or is not in the current scope 87 // Check for array and scope accesses. The base (array or scope variable in Init() 102 // Base is either undefined or it's defined but not in the current scope. in Init() 107 "This variable exists in a containing scope. Normally, writing to it " in Init() 108 "would\nmake a copy of it into the current scope with the modified " in Init() 109 "version. But\nhere you're modifying only an element of a scope o in Init() 241 GetValueOrFillError(const BinaryOpNode* op_node, const ParseNode* node, const char* name, Scope* scope, Err* err) GetValueOrFillError() argument 513 ExecuteEqualsEquals(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteEqualsEquals() argument 523 ExecuteNotEquals(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteNotEquals() argument 545 ExecuteLessEquals(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteLessEquals() argument 555 ExecuteGreaterEquals(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteGreaterEquals() argument 565 ExecuteGreater(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteGreater() argument 575 ExecuteLess(Scope* scope, const BinaryOpNode* op_node, const Value& left, const Value& right, Err* err) ExecuteLess() argument 587 ExecuteOr(Scope* scope, const BinaryOpNode* op_node, const ParseNode* left_node, const ParseNode* right_node, Err* err) ExecuteOr() argument 617 ExecuteAnd(Scope* scope, const BinaryOpNode* op_node, const ParseNode* left_node, const ParseNode* right_node, Err* err) ExecuteAnd() argument 650 ExecuteUnaryOperator(Scope* scope, const UnaryOpNode* op_node, const Value& expr, Err* err) ExecuteUnaryOperator() argument 666 ExecuteBinaryOperator(Scope* scope, const BinaryOpNode* op_node, const ParseNode* left, const ParseNode* right, Err* err) ExecuteBinaryOperator() argument [all...] |
H A D | innerapis_publicinfo_generator.cc | 46 static std::string GetOutName(const Scope *scope, const std::string &target_name, const std::string &type)
in GetOutName() argument 50 const Value *name_value = scope->GetValue("output_name");
in GetOutName() 51 const Value *extension_value = scope->GetValue("output_extension");
in GetOutName() 89 static bool TraverIncludeDirs(const OhosComponentChecker *checker, const Target *target, const Scope *scope,
in TraverIncludeDirs() argument 92 const Value *includes = scope->GetValue("include_dirs");
in TraverIncludeDirs() 96 SourceDir real_dir = scope->GetSourceDir().ResolveRelativeDir(includes_list[i], err,
in TraverIncludeDirs() 97 scope->settings()->build_settings()->root_path_utf8());
in TraverIncludeDirs() 224 static std::string GetPublicConfigInfo(const PublicConfigInfoParams ¶ms, Scope *scope,
in GetPublicConfigInfo() argument 227 Scope::ItemVector *collector = scope->GetItemCollector();
in GetPublicConfigInfo() 261 static std::string GetPublicConfigsInfo(const Target *target, const std::string &label, Scope *scope,
in GetPublicConfigsInfo() argument 278 GetAllDependentConfigsInfo(const Target *target, const std::string &label, Scope *scope, const OhosComponentChecker *checker, Err *err) GetAllDependentConfigsInfo() argument 300 GetPrivateConfigsInfo(const Target *target, const std::string &label, Scope *scope, const OhosComponentChecker *checker, Err *err) GetPrivateConfigsInfo() argument 362 GetOutNameAndTypeInfo(const Scope *scope, const std::string &target, const std::string &type) GetOutNameAndTypeInfo() argument 456 GeneratedInnerapiPublicInfo(const Target *target, const Label &label, Scope *scope, const std::string &type, Err *err) GeneratedInnerapiPublicInfo() argument [all...] |
H A D | parse_tree_unittest.cc | 13 #include "gn/scope.h" 35 Value result = accessor.Execute(setup.scope(), &err); in TEST() 42 setup.scope()->SetValue( in TEST() 43 "a", Value(nullptr, std::make_unique<Scope>(setup.scope())), nullptr); in TEST() 44 result = accessor.Execute(setup.scope(), &err); in TEST() 51 setup.scope() in TEST() 55 result = accessor.Execute(setup.scope(), &err); in TEST() 66 "scope = {\n" in TEST() 72 values.parsed()->Execute(setup.scope(), &err); in TEST() 86 const Scope* scope_var = setup.scope() in TEST() [all...] |
H A D | function_foreach_unittest.cc | 21 input.parsed()->Execute(setup.scope(), &err); in TEST() 36 input_good.parsed()->Execute(setup.scope(), &err); in TEST() 51 input_bad.parsed()->Execute(setup.scope(), &err); in TEST() 66 input_good.parsed()->Execute(setup.scope(), &err); in TEST() 73 EXPECT_TRUE(setup.scope()->CheckForUnusedVars(&err)); in TEST() 92 input_grow.parsed()->Execute(setup.scope(), &err); in TEST()
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-promise.cc | 22 HandleScope scope(isolate); in RUNTIME_FUNCTION() 46 HandleScope scope(isolate); in RUNTIME_FUNCTION() 56 HandleScope scope(isolate); in RUNTIME_FUNCTION() 66 HandleScope scope(isolate); in RUNTIME_FUNCTION() 76 HandleScope scope(isolate); in RUNTIME_FUNCTION() 89 HandleScope scope(isolate); in RUNTIME_FUNCTION() 96 HandleScope scope(isolate); in RUNTIME_FUNCTION() 108 HandleScope scope(isolate); in RUNTIME_FUNCTION() 116 HandleScope scope(isolate); in RUNTIME_FUNCTION() 125 HandleScope scope(isolat in RUNTIME_FUNCTION() [all...] |
H A D | runtime-object.cc | 286 HandleScope scope(isolate); in RUNTIME_FUNCTION() 306 HandleScope scope(isolate); in RUNTIME_FUNCTION() 327 HandleScope scope(isolate); in RUNTIME_FUNCTION() 358 HandleScope scope(isolate); in RUNTIME_FUNCTION() 429 HandleScope scope(isolate); in RUNTIME_FUNCTION() 461 HandleScope scope(isolate); in RUNTIME_FUNCTION() 488 HandleScope scope(isolate); in RUNTIME_FUNCTION() 527 HandleScope scope(isolate); in RUNTIME_FUNCTION() 623 HandleScope scope(isolate); in RUNTIME_FUNCTION() 634 HandleScope scope(isolat in RUNTIME_FUNCTION() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | ark_js_runtime.cpp | 202 LocalScope scope(vm_); in IsExecuteModuleInAbcFile() 212 LocalScope scope(vm_); in ExecuteModuleBuffer() 227 LocalScope scope(vm_); in EvaluateJsCode() 238 LocalScope scope(vm_); in ExecuteJsBin() 249 LocalScope scope(vm_); in ExecuteJsBinForAOT() 258 LocalScope scope(vm_); in GetGlobal() 265 LocalScope scope(vm_); in RunGC() 272 LocalScope scope(vm_); in RunFullGC() 278 LocalScope scope(vm_); in NewInt32() 284 LocalScope scope(vm in NewBoolean() [all...] |
/third_party/node/deps/v8/src/ast/ |
H A D | scopes.h | 66 Variable* Declare(Zone* zone, Scope* scope, const AstRawString* name, 89 // and ModuleScope. DeclarationScope is used for any scope that hosts 'var' 91 // scope. ModuleScope further specializes DeclarationScope. 100 // The scope name is only used for printing/debugging. 115 inline explicit Snapshot(Scope* scope); 122 // Restore eval flags from before the scope was active. in ~Snapshot() 139 // While the scope is active, the scope caches the flag values for 143 // scope. Otherwise the cached flags will be merged with the flags from the 164 // Checks if the block scope i 1365 Snapshot(Scope* scope) Snapshot() argument [all...] |
/third_party/node/deps/v8/src/tracing/ |
H A D | trace-event.h | 49 // By default, const char* argument values are assumed to have long-lived scope 54 // this macro to add a scope string. 55 #define TRACE_ID_WITH_SCOPE(scope, id) \ 56 v8::internal::tracing::TraceID::WithScope(scope, id) 95 // const char* scope, 110 // const char* scope, 190 // event if the category is enabled. Also adds the end event when the scope 236 trace_event_trace_id.scope(), trace_event_trace_id.raw_id(), \ 265 trace_event_trace_id.scope(), trace_event_trace_id.raw_id(), \ 319 WithScope(const char* scope, uint64_ argument 322 const char* scope() const { return scope_; } scope() function in v8::internal::tracing::TraceID::WithScope 363 const char* scope() const { return scope_; } scope() function in v8::internal::tracing::TraceID 380 AddTraceEventImpl( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char** arg_names, const uint8_t* arg_types, const uint64_t* arg_values, unsigned int flags) AddTraceEventImpl() argument 402 AddTraceEventWithTimestampImpl( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char** arg_names, const uint8_t* arg_types, const uint64_t* arg_values, unsigned int flags, int64_t timestamp) AddTraceEventWithTimestampImpl() argument 473 AddTraceEvent(char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags) AddTraceEvent() argument 484 AddTraceEvent( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, const char* arg1_name, ARG1_TYPE&& arg1_val) AddTraceEvent() argument 498 AddTraceEvent( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, const char* arg1_name, ARG1_TYPE&& arg1_val, const char* arg2_name, ARG2_TYPE&& arg2_val) AddTraceEvent() argument 516 AddTraceEventWithTimestamp( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp) AddTraceEventWithTimestamp() argument 526 AddTraceEventWithTimestamp( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp, const char* arg1_name, ARG1_TYPE&& arg1_val) AddTraceEventWithTimestamp() argument 540 AddTraceEventWithTimestamp( char phase, const uint8_t* category_group_enabled, const char* name, const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, int64_t timestamp, const char* arg1_name, ARG1_TYPE&& arg1_val, const char* arg2_name, ARG2_TYPE&& arg2_val) AddTraceEventWithTimestamp() argument [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-regexp.cc | 20 HandleScope scope(isolate); in BUILTIN() 63 HandleScope scope(isolate); \ 83 HandleScope scope(isolate); in BUILTIN() 90 HandleScope scope(isolate); in BUILTIN() 104 HandleScope scope(isolate); in BUILTIN() 110 HandleScope scope(isolate); in BUILTIN() 127 HandleScope scope(isolate); in BUILTIN() 135 HandleScope scope(isolate); in BUILTIN()
|
H A D | builtins-temporal.cc | 15 HandleScope scope(isolate); \ 21 HandleScope scope(isolate); \ 27 HandleScope scope(isolate); \ 35 HandleScope scope(isolate); \ 358 HandleScope scope(isolate); \ 367 HandleScope scope(isolate); \ 376 HandleScope scope(isolate); \ 387 HandleScope scope(isolate); \ 395 HandleScope scope(isolate); \ 405 HandleScope scope(isolat [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/ |
H A D | drag_preview.h | 51 napi_handle_scope scope = nullptr; in SetForegroundColor() local 52 napi_open_handle_scope(env, &scope); in SetForegroundColor() 53 CHECK_NULL_RETURN(scope, nullptr); in SetForegroundColor() 64 napi_close_handle_scope(env, scope); in SetForegroundColor() 72 napi_close_handle_scope(env, scope); in SetForegroundColor() 93 napi_close_handle_scope(env, scope); in SetForegroundColor() 99 napi_handle_scope scope = nullptr; in Animate() local 100 napi_open_handle_scope(env, &scope); in Animate() 101 CHECK_NULL_RETURN(scope, nullptr); in Animate() 113 napi_close_handle_scope(env, scope); in Animate() [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | cpu_errata.c | 18 is_affected_midr_range(const struct arm64_cpu_capabilities *entry, int scope) in is_affected_midr_range() argument 23 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_affected_midr_range() 38 int scope) in is_affected_midr_range_list() 40 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_affected_midr_range_list() 45 is_kryo_midr(const struct arm64_cpu_capabilities *entry, int scope) in is_kryo_midr() argument 49 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_kryo_midr() 60 int scope) in has_mismatched_cache_type() 66 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in has_mismatched_cache_type() 114 int scope) in has_cortex_a76_erratum_1463225() 116 return is_affected_midr_range_list(entry, scope) in has_cortex_a76_erratum_1463225() 37 is_affected_midr_range_list(const struct arm64_cpu_capabilities *entry, int scope) is_affected_midr_range_list() argument 59 has_mismatched_cache_type(const struct arm64_cpu_capabilities *entry, int scope) has_mismatched_cache_type() argument 113 has_cortex_a76_erratum_1463225(const struct arm64_cpu_capabilities *entry, int scope) has_cortex_a76_erratum_1463225() argument 170 needs_tx2_tvm_workaround(const struct arm64_cpu_capabilities *entry, int scope) needs_tx2_tvm_workaround() argument 188 has_neoverse_n1_erratum_1542419(const struct arm64_cpu_capabilities *entry, int scope) has_neoverse_n1_erratum_1542419() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_future.py | 121 scope = {} 122 exec("from __future__ import unicode_literals; x = ''", {}, scope) namespace 123 self.assertIsInstance(scope["x"], str) 147 scope = {} 148 exec(self.template.format(ann=annotation), {}, scope) 149 func_ret_ann = scope['f'].__annotations__['return'] 150 func_arg_ann = scope['g'].__annotations__['arg'] 151 async_func_ret_ann = scope['f2'].__annotations__['return'] 152 async_func_arg_ann = scope['g2'].__annotations__['arg'] 153 var_ann1 = scope['__annotations_ [all...] |
/third_party/rust/crates/syn/src/ |
H A D | buffer.rs | 96 scope: *const Entry, 118 scope: &EMPTY_ENTRY.0, in empty() 126 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create() 128 // past it, unless `ptr == scope`, which means that we're at the edge of in create() 129 // our cursor's scope. We should only have `ptr != scope` at the exit in create() 132 if ptr == scope { in create() 140 scope, in create() 155 /// point at the first token in the group (with the same scope end). 157 unsafe { Cursor::create(self.ptr.offset(1), self.scope) } in bump_ignore_group() [all...] |
/third_party/mesa3d/src/mesa/program/ |
H A D | symbol_table.c | 37 * The linked list of symbols with the same name is ordered by scope 43 * Link to the next symbol in the table with the same scope 45 * The linked list of symbols with the same scope is unordered. Symbols 61 * Element of the scope stack. 64 /** Link to next (inner) scope level. */ 67 /** Linked list of symbols with the same scope. */ 79 /** Top of scope stack. */ 82 /** Current scope depth. */ 89 struct scope_level *const scope = table->current_scope; in _mesa_symbol_table_pop_scope() local 90 struct symbol *sym = scope in _mesa_symbol_table_pop_scope() 121 struct scope_level *const scope = calloc(1, sizeof(*scope)); _mesa_symbol_table_push_scope() local [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/component_snapshot/ |
H A D | js_component_snapshot.cpp | 57 napi_handle_scope scope = nullptr; in OnComplete() 58 napi_open_handle_scope(ctx->env, &scope); in OnComplete() 89 napi_close_handle_scope(ctx->env, scope); in OnComplete() 277 napi_escapable_handle_scope scope = nullptr; in JSSnapshotGet() local 278 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotGet() 286 napi_close_escapable_handle_scope(env, scope); in JSSnapshotGet() 310 napi_escape_handle(env, scope, result, &result); in JSSnapshotGet() 311 napi_close_escapable_handle_scope(env, scope); in JSSnapshotGet() 317 napi_escapable_handle_scope scope = nullptr; in JSSnapshotFromBuilder() local 318 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotFromBuilder() 351 napi_escapable_handle_scope scope = nullptr; JSSnapshotGetSync() local [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/ |
H A D | js_media_query.cpp | 49 napi_handle_scope scope = nullptr; in NapiSerializer() local 50 napi_open_handle_scope(env, &scope); in NapiSerializer() 51 if (scope == nullptr) { in NapiSerializer() 62 napi_close_handle_scope(env, scope); in NapiSerializer() 140 napi_handle_scope scope = nullptr; in TriggerAllCallbacks() local 141 napi_open_handle_scope(listener->env_, &scope); in TriggerAllCallbacks() 142 if (scope == nullptr) { in TriggerAllCallbacks() 154 napi_close_handle_scope(listener->env_, scope); in TriggerAllCallbacks() 167 napi_handle_scope scope = nullptr; in On() local 168 napi_open_handle_scope(env, &scope); in On() 300 napi_handle_scope scope = nullptr; Initialize() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | uv_queue.cpp | 73 napi_handle_scope scope = nullptr; in Work() local 74 napi_open_handle_scope(entry->env, &scope); in Work() 78 if (scope != nullptr) { in Work() 79 napi_close_handle_scope(entry->env, scope); in Work() 97 if (scope != nullptr) { in Work() 98 napi_close_handle_scope(entry->env, scope); in Work()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | uv_queue.cpp | 73 napi_handle_scope scope = nullptr; in Work() local 74 napi_open_handle_scope(entry->env, &scope); in Work() 78 if (scope != nullptr) { in Work() 79 napi_close_handle_scope(entry->env, scope); in Work() 97 if (scope != nullptr) { in Work() 98 napi_close_handle_scope(entry->env, scope); in Work()
|