Home
last modified time | relevance | path

Searched full:v8 (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/arkcompiler/jsvm/src/
Dtype_conversion.h24 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 …]
Djs_native_api_v8.cpp24 #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"
56 // Always compare the final element of IsolateDataSlot with v8 limit.
57 static_assert(K_ISOLATE_HANDLER_POOL_SLOT < v8::internal::Internals::kNumIsolateDataSlots);
91 static IsolateHandlerPool* GetIsolateHandlerPool(v8::Isolate* isolate) in GetIsolateHandlerPool()
[all …]
Dsourcemap.h23 #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 …]
Djsvm_reference.h59 static UserReference* New(JSVM_Env env, v8::Local<v8::Value> value, uint32_t initialRefcount);
61 static UserReference* NewData(JSVM_Env env, v8::Local<v8::Data> data, uint32_t initialRefcount);
70 // Get v8::Local value
71 v8::Local<v8::Value> Get();
72 v8::Local<v8::Data> GetData();
80 UserReference(JSVM_Env env, v8::Local<v8::Data> value, bool isValue, uint32_t initialRefcount);
88 v8impl::Persistent<v8::Data> persistent;
130 …RuntimeReference(JSVM_Env env, v8::Local<v8::Value> value, JSVM_Finalize cb, void* data, void* hin…
133 static RuntimeReference* New(JSVM_Env env, v8::Local<v8::Value> value, void* data);
134 …static RuntimeReference* New(JSVM_Env env, v8::Local<v8::Value> value, JSVM_Finalize cb, void* dat…
[all …]
Djsvm_reference.cpp26 // Currently, V8 has no API to detect if a symbol is local or global.
27 // Until we have a V8 API for it, we consider that all symbols can be weak.
28 inline bool CanBeHeldWeakly(v8::Local<v8::Value> value) in CanBeHeldWeakly()
59 UserReference* UserReference::New(JSVM_Env env, v8::Local<v8::Value> value, uint32_t initialRefcoun… in New()
66 UserReference* UserReference::NewData(JSVM_Env env, v8::Local<v8::Data> value, uint32_t initialRefc… in NewData()
73 UserReference::UserReference(JSVM_Env env, v8::Local<v8::Data> value, bool isValue, uint32_t initia… in UserReference()
75 canBeWeak(isValue && CanBeHeldWeakly(value.As<v8::Value>())) in UserReference()
96 v8::Local<v8::Value> UserReference::Get() in Get()
100 return v8::Local<v8::Value>(); in Get()
102 return v8::Local<v8::Data>::New(env->isolate, persistent).As<v8::Value>(); in Get()
[all …]
Djsvm_env.h28 #include "v8.h"
34 explicit JSVM_Env__(v8::Local<v8::Context> context, int32_t apiVersion) in JSVM_Env__()
41 explicit JSVM_Env__(v8::Isolate* isolate, int32_t apiVersion);
57 …[](v8::Isolate* isolate, void* data) { static_cast<JSVM_Env__*>(data)->RunAndClearInterrupts(); },… in RequestInterrupt()
67 v8::Platform* platform();
69 inline v8::Local<v8::Context> context() const in context()
79 static inline void HandleThrow(JSVM_Env env, v8::Local<v8::Value> value) in HandleThrow()
87 // i.e. whether v8 exited or is about to exit
93 // v8 uses a special exception to indicate termination, the
114 v8::HandleScope handleScope(isolate); in CallFinalizer()
[all …]
Djsvm_util.h44 // v8 header
45 #include "v8-inspector.h"
46 #include "v8-platform.h"
47 #include "v8-profiler.h"
48 #include "v8.h"
67 using Persistent = v8::Global<T>;
/arkcompiler/ets_frontend/es2panda/test/parse_command/
DREADME.md3 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 …]
DREADME-zh.md3 生成 ES2ABC 和 V8 生成的字节码指令数量差异报告。
16 ## 2. fetch v8 代码
18 在任意目录下创建一个 V8 源代码目录并切换到该目录:
21 mkdir ~/v8
22 cd ~/v8
25 使用 fetch 命令获取 V8 源代码及其所有分支和依赖项。
28 fetch v8
29 cd v8
35V8 源代码目录下执行以下命令,提取最新更改并安装任何新生成的依赖项。
49 ## 4. 编译 V8
[all …]
/arkcompiler/runtime_core/libabckit/tests/stress/
Dfail_list_test262.json2 …"/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"
Doptions_list.json2 …"/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/
Dsampling_profiler_test.pa129 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/static_core/tests/benchmarks/
Daccess-nbody.pa129 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 …]
Dmath-cordic.pa68 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/tests/benchmarks/
Daccess-nbody.pa129 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 …]
Dmath-cordic.pa68 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/tests/irtoc-interpreter-tests/
Daccess-nsieve.pa30 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/static_core/tests/irtoc-interpreter-tests/
Daccess-nsieve.pa30 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/compiler/docs/
Dvn_doc.md84 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/compiler/docs/
Dvn_doc.md84 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/ets_frontend/es2panda/test/optimizer/js/unused-inst-opt/
Dunused-ldhole-expected.pa.txt27 sta v8
28 throw.ifnotobject v8
40 lda v8
42 sta v8
48 sta v8
184 callarg1 0x25, v8
/arkcompiler/jsvm/
Dcopy_v8.sh18 cp -u ${SCRIPT_PATCH}/../../third_party/node/deps/v8/libv8_shared.so ${TARGET_GEN_DIR}/libv8_shared…
19 cp -r ${SCRIPT_PATCH}/../../third_party/node/deps/v8/include/v8-include ${TARGET_GEN_DIR}/v8-include
/arkcompiler/runtime_core/assembler/samples/
DFactorial.pa16 sta.64 v8
22 mul v8, a0
23 sta.64 v8
29 lda.64 v8
/arkcompiler/runtime_core/static_core/assembler/samples/
DFactorial.pa16 sta.64 v8
22 mul v8, a0
23 sta.64 v8
29 lda.64 v8
/arkcompiler/ets_frontend/es2panda/test/bytecode/js/destructuring/
Dtest-array-pattern-iterator-close-expected.txt27 sta v8
28 throw.ifnotobject v8
40 lda v8
42 sta v8
48 sta v8
63 lda v8

12345678910>>...13