| /arkcompiler/jsvm/src/ |
| D | type_conversion.h | 24 using SourcePtr = std::variant<v8::Local<v8::Script>, v8::Global<v8::Script>>; 33 v8::Local<T> ToV8Local(v8::Isolate* isolate) in ToV8Local() 36 return v8::Local<T>::New(isolate, std::get<v8::Global<T>>(taggedPointer)); in ToV8Local() 38 return std::get<v8::Local<T>>(taggedPointer); in ToV8Local() 48 // This asserts v8::Local<> will always be implemented with a single 50 static_assert(sizeof(v8::Local<v8::Data>) == sizeof(JSVM_Data), 51 "Cannot convert between v8::Local<v8::Data> and JSVM_Data"); 53 inline JSVM_Data JsDataFromV8LocalData(v8::Local<v8::Data> local) in JsDataFromV8LocalData() 58 inline v8::Local<v8::Data> V8LocalDataFromJsData(JSVM_Data data) in V8LocalDataFromJsData() 60 v8::Local<v8::Data> local; in V8LocalDataFromJsData() [all …]
|
| D | js_native_api_v8.cpp | 24 #include "v8-debug.h" 25 #include "v8-internal.h" 26 #include "v8-local-handle.h" 27 #include "v8-primitive.h" 28 #include "v8-statistics.h" 29 #include "v8-version-string.h" 38 #include "libplatform/v8-tracing.h" 76 // Always compare the final element of IsolateDataSlot with v8 limit. 77 static_assert(K_ISOLATE_HANDLER_POOL_SLOT < v8::internal::Internals::kNumIsolateDataSlots); 111 static IsolateHandlerPool* GetIsolateHandlerPool(v8::Isolate* isolate) in GetIsolateHandlerPool() [all …]
|
| D | sourcemap.h | 23 #include <v8.h> 122 SourceMap(v8::Isolate* isolate, v8::Local<v8::Context> context, v8::Local<v8::Object> payload) in SourceMap() 158 void ParseMap(v8::Local<v8::Value> map, int line, int column); 163 void ParseSections(v8::Local<v8::Value> sections); 164 std::vector<std::string> ParseSourceNames(v8::Local<v8::Array> sources); 167 v8::Isolate* isolate; 168 v8::Local<v8::Context> context; 169 v8::Local<v8::Object> payload; 175 auto sections = payload->Get(context, v8::String::NewFromUtf8Literal(isolate, "sections")); in ParseMappingPayload() 185 std::vector<std::string> SourceMap::ParseSourceNames(v8::Local<v8::Array> sources) in ParseSourceNames() [all …]
|
| D | jsvm_reference.h | 49 static UserReference* New(JSVM_Env env, v8::Local<v8::Value> value, uint32_t initialRefcount); 51 static UserReference* NewData(JSVM_Env env, v8::Local<v8::Data> data, uint32_t initialRefcount); 60 // Get v8::Local value 61 inline v8::Local<v8::Value> Get(); 62 inline v8::Local<v8::Data> GetData(); 70 UserReference(JSVM_Env env, v8::Local<v8::Data> value, bool isValue, uint32_t initialRefcount); 78 v8impl::Persistent<v8::Data> persistent; 120 …RuntimeReference(JSVM_Env env, v8::Local<v8::Value> value, JSVM_Finalize cb, void* data, void* hin… 123 static RuntimeReference* New(JSVM_Env env, v8::Local<v8::Value> value, void* data); 124 …static RuntimeReference* New(JSVM_Env env, v8::Local<v8::Value> value, JSVM_Finalize cb, void* dat… [all …]
|
| D | jsvm_reference-inl.h | 22 inline bool CanBeHeldWeakly(v8::Local<v8::Value> value) in CanBeHeldWeakly() 91 inline v8::Local<v8::Value> UserReference::Get() in Get() 95 return v8::Local<v8::Value>(); in Get() 97 return v8::Local<v8::Data>::New(env->isolate, persistent).As<v8::Value>(); in Get() 101 inline v8::Local<v8::Data> UserReference::GetData() in GetData() 104 return v8::Local<v8::Data>(); in GetData() 106 return v8::Local<v8::Data>::New(env->isolate, persistent); in GetData()
|
| D | jsvm_reference.cpp | 34 UserReference* UserReference::New(JSVM_Env env, v8::Local<v8::Value> value, uint32_t initialRefcoun… in New() 41 UserReference* UserReference::NewData(JSVM_Env env, v8::Local<v8::Data> value, uint32_t initialRefc… in NewData() 48 UserReference::UserReference(JSVM_Env env, v8::Local<v8::Data> value, bool isValue, uint32_t initia… in UserReference() 50 canBeWeak(isValue && CanBeHeldWeakly(value.As<v8::Value>())) in UserReference() 124 RuntimeReference::RuntimeReference(JSVM_Env env, v8::Local<v8::Value> value, JSVM_Finalize cb, void… in RuntimeReference() 130 RuntimeReference* RuntimeReference::New(JSVM_Env env, v8::Local<v8::Value> value, void* data) in New() 140 v8::Local<v8::Value> value, in New() 167 persistent.SetWeak(this, FirstPassCallback, v8::WeakCallbackType::kParameter); in SetWeak() 169 … persistent.SetWeak(this, FirstPassCallbackWithoutFinalizer, v8::WeakCallbackType::kParameter); in SetWeak() 173 void RuntimeReference::FirstPassCallback(const v8::WeakCallbackInfo<RuntimeReference>& data) in FirstPassCallback() [all …]
|
| D | jsvm_env.h | 30 #include "v8.h" 36 explicit JSVM_Env__(v8::Local<v8::Context> context, int32_t apiVersion) in JSVM_Env__() 43 explicit JSVM_Env__(v8::Isolate* isolate, int32_t apiVersion); 59 …[](v8::Isolate* isolate, void* data) { static_cast<JSVM_Env__*>(data)->RunAndClearInterrupts(); },… in RequestInterrupt() 69 v8::Platform* platform(); 71 inline v8::Local<v8::Context> context() const in context() 81 static inline void HandleThrow(JSVM_Env env, v8::Local<v8::Value> value) in HandleThrow() 89 // i.e. whether v8 exited or is about to exit 95 // v8 uses a special exception to indicate termination, the 116 v8::HandleScope handleScope(isolate); in CallFinalizer() [all …]
|
| D | jsvm_util.h | 44 // v8 header 45 #include "v8-inspector.h" 46 #include "v8-platform.h" 47 #include "v8-profiler.h" 48 #include "v8.h" 77 using Persistent = v8::Global<T>;
|
| /arkcompiler/ets_frontend/es2panda/test/parse_command/ |
| D | README.md | 3 Generate a discrepancy report on the number of bytecode instructions generated by ES2ABC and V8. 5 # Prepare V8 16 ## 2. fetch v8 code 18 Create a V8 source code directory in any directory and switch to it: 21 mkdir ~/v8 22 cd ~/v8 25 Get the V8 source code and all its branches and dependencies using the fetch command 28 fetch v8 29 cd v8 35 Execute the following commands in the V8 source directory to pull the latest changes and install an… [all …]
|
| D | README-zh.md | 3 生成 ES2ABC 和 V8 生成的字节码指令数量差异报告。 16 ## 2. fetch v8 代码 18 在任意目录下创建一个 V8 源代码目录并切换到该目录: 21 mkdir ~/v8 22 cd ~/v8 25 使用 fetch 命令获取 V8 源代码及其所有分支和依赖项。 28 fetch v8 29 cd v8 35 在 V8 源代码目录下执行以下命令,提取最新更改并安装任何新生成的依赖项。 49 ## 4. 编译 V8 [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/stress/ |
| D | fail_list_test262.json | 2 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/sqlite3/sqlite-change-heap.js": "13… 3 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/sqlite3/sqlite-pointer-masking.js":… 4 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/sqlite3/sqlite-safe-heap.js": "139", 5 "/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/sqlite3/sqlite.js": "139", 6 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/regress/wasm/regress-810973b.js": "137", 7 "/tmp/abckit_test262/implementation-contributed/v8/mjsunit/regress/regress-5454.js": "139", 8 "/tmp/abckit_test262/implementation-contributed/v8/mjsunit/es6/destructuring.js": "139"
|
| D | options_list.json | 2 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/embenchen/zlib.js": ["--memory-size… 3 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/harmony/well-formed-json-stringify-chec… 4 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/harmony/well-formed-json-stringify-unch… 5 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/third_party/regexp-pcre/regexp-pcre.js"… 6 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/asm/embenchen/zlib.js": ["--memory-size-limit", "76843545… 7 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/harmony/well-formed-json-stringify-checked.js": ["--memor… 8 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/harmony/well-formed-json-stringify-unchecked.js": ["--mem… 9 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/third_party/regexp-pcre/regexp-pcre.js": ["--memory-size-…
|
| /arkcompiler/runtime_core/static_core/runtime/tests/tooling/sampler/ |
| D | sampling_profiler_test.pa | 129 sta.64 v8 137 fmul2.64 v8 140 fmul2.64 v8 143 fmul2.64 v8 155 sta.64 v8 163 fmul2.64 v8 166 fmul2.64 v8 169 fmul2.64 v8 181 sta.64 v8 189 fmul2.64 v8 [all …]
|
| /arkcompiler/runtime_core/tests/benchmarks/ |
| D | access-nbody.pa | 129 sta.64 v8 137 fmul2.64 v8 140 fmul2.64 v8 143 fmul2.64 v8 155 sta.64 v8 163 fmul2.64 v8 166 fmul2.64 v8 169 fmul2.64 v8 181 sta.64 v8 189 fmul2.64 v8 [all …]
|
| D | math-cordic.pa | 68 movi v8, 0 #step 70 lda v8 77 shr2 v8 83 shr2 v8 89 lda.64 v8 94 inci v8, 1 106 shr2 v8 113 shr2 v8 118 lda v8 122 inci v8, 1 [all …]
|
| /arkcompiler/runtime_core/static_core/tests/benchmarks/ |
| D | access-nbody.pa | 129 sta.64 v8 137 fmul2.64 v8 140 fmul2.64 v8 143 fmul2.64 v8 155 sta.64 v8 163 fmul2.64 v8 166 fmul2.64 v8 169 fmul2.64 v8 181 sta.64 v8 189 fmul2.64 v8 [all …]
|
| D | math-cordic.pa | 68 movi v8, 0 #step 70 lda v8 77 shr2 v8 83 shr2 v8 89 lda.64 v8 94 inci v8, 1 106 shr2 v8 113 shr2 v8 118 lda v8 122 inci v8, 1 [all …]
|
| /arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/ |
| D | access-nsieve.pa | 30 sta v8 33 jgt v8, jump_label_1 41 jgt v8, jump_label_3 48 jgt v8, jump_label_5 61 sta v8 66 mov v6, v8
|
| /arkcompiler/runtime_core/tests/irtoc-interpreter-tests/ |
| D | access-nsieve.pa | 30 sta v8 33 jgt v8, jump_label_1 41 jgt v8, jump_label_3 48 jgt v8, jump_label_5 61 sta v8 66 mov v6, v8
|
| /arkcompiler/jsvm/ |
| D | copy_v8.sh | 19 cp -u ${v8_path}/v8/${target_cpu}/libv8_shared.so ${TARGET_GEN_DIR}/libv8_shared.so 20 cp -r ${v8_path}/v8-include/v8-include ${TARGET_GEN_DIR}/v8-include
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | vn_doc.md | 84 4.f32 Parameter arg 4 -> (v8, v12) 85 5.f32 Parameter arg 5 -> (v8, v12) 97 14.b CallStatic v6, v7, v8, v9, v10, v11, v12, v13 114 4.f32 Parameter arg 4 -> (v8, v12) 115 5.f32 Parameter arg 5 -> (v8, v12) 127 14.b CallStatic v6, v7, v8, v9, v7, v9, v8, v6 141 4.f32 Parameter arg 4 -> (v8) 142 5.f32 Parameter arg 5 -> (v8) 150 14.b CallStatic v6, v7, v8, v9, v7, v9, v8, v6
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | vn_doc.md | 84 4.f32 Parameter arg 4 -> (v8, v12) 85 5.f32 Parameter arg 5 -> (v8, v12) 97 14.b CallStatic v6, v7, v8, v9, v10, v11, v12, v13 114 4.f32 Parameter arg 4 -> (v8, v12) 115 5.f32 Parameter arg 5 -> (v8, v12) 127 14.b CallStatic v6, v7, v8, v9, v7, v9, v8, v6 141 4.f32 Parameter arg 4 -> (v8) 142 5.f32 Parameter arg 5 -> (v8) 150 14.b CallStatic v6, v7, v8, v9, v7, v9, v8, v6
|
| /arkcompiler/runtime_core/static_core/assembler/samples/ |
| D | Factorial.pa | 16 sta.64 v8 22 mul v8, a0 23 sta.64 v8 29 lda.64 v8
|
| /arkcompiler/runtime_core/assembler/samples/ |
| D | Factorial.pa | 16 sta.64 v8 22 mul v8, a0 23 sta.64 v8 29 lda.64 v8
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/js/unused-inst-opt/ |
| D | unused-ldhole-expected.pa.txt | 27 sta v8 28 throw.ifnotobject v8 40 lda v8 42 sta v8 48 sta v8 184 callarg1 0x25, v8
|