/external/v8/test/cctest/ |
D | test-accessors.cc | 72 fun_templ->InstanceTemplate()->SetAccessor(v8_str("foo"), handle_property); in THREADED_TEST() 77 InstanceTemplate()->SetAccessorProperty(v8_str("bar"), getter_templ); in THREADED_TEST() 79 SetNativeDataProperty(v8_str("instance_foo"), handle_property); in THREADED_TEST() 80 fun_templ->SetNativeDataProperty(v8_str("object_foo"), handle_property_2); in THREADED_TEST() 82 CHECK(env->Global()->Set(env.local(), v8_str("Fun"), fun).FromJust()); in THREADED_TEST() 147 v8_str("foo"), GetIntValue, SetIntValue, in THREADED_TEST() 150 v8_str("bar"), GetIntValue, SetIntValue, in THREADED_TEST() 153 v8_str("baz"), GetIntValue, SetIntValue, in THREADED_TEST() 225 obj->SetAccessor(v8_str("x0"), XGetter, XSetter); in THREADED_TEST() 226 obj->SetAccessorProperty(v8_str("x1"), in THREADED_TEST() [all …]
|
D | test-api-interceptors.cc | 56 info.GetReturnValue().Set(v8_str("bad value")); in Return239Callback() 73 String::Concat(v8_str("accessor_"), name)) in SimpleAccessorGetter() 81 String::Concat(v8_str("accessor_"), name), value) in SimpleAccessorSetter() 117 v8::Private::ForApi(info.GetIsolate(), v8_str(name_str + i))) in StringInterceptorGetter() 162 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); in GenericInterceptorGetter() 168 str = String::Concat(v8_str("_str_"), name); in GenericInterceptorGetter() 182 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); in GenericInterceptorSetter() 188 str = String::Concat(v8_str("_str_"), name); in GenericInterceptorSetter() 330 CHECK(v8_str("data") in EchoNamedProperty() 362 ->Set(context.local(), v8_str("constructor"), function) in THREADED_TEST() [all …]
|
D | test-deoptimization.cc | 119 context->Global()->Get(context, v8_str(property_name)).ToLocalChecked()); in GetJSFunction() 141 ->Get(env.local(), v8_str("count")) in TEST() 161 ->Get(env.local(), v8_str("count")) in TEST() 187 ->Get(env.local(), v8_str("count")) in TEST() 208 ->Get(env.local(), v8_str("count")) in TEST() 235 ->Get(env.local(), v8_str("count")) in TEST() 240 ->Get(env.local(), v8_str("result")) in TEST() 268 ->Get(env.local(), v8_str("count")) in TEST() 273 ->Get(env.local(), v8_str("calls")) in TEST() 281 ->Get(env.local(), v8_str(CcTest::isolate(), "f")) in TEST() [all …]
|
D | test-compiler.cc | 265 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in TEST() 277 v8::Local<v8::String> script_body = v8_str(buffer.start()); in TEST() 283 context->Global()->Get(context.local(), v8_str("f")).ToLocalChecked()); in TEST() 304 CcTest::global()->Get(context, v8_str("f")).ToLocalChecked()))); in TEST() 350 ->Get(context, v8_str("morphing_call")) in TEST() 375 ->Set(env.local(), v8_str("x"), v8::Integer::New(CcTest::isolate(), i)) in TEST() 390 ->Get(env.local(), v8_str("closure1")) in TEST() 395 ->Get(env.local(), v8_str("closure2")) in TEST() 423 ->Set(env.local(), v8_str("x"), v8::Integer::New(CcTest::isolate(), 23)) in TEST() 437 ->Get(env.local(), v8_str("closure0")) in TEST() [all …]
|
D | test-object-observe.cc | 46 Local<Value> foo = v8_str("foo"); in TEST() 63 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("obj"), in TEST() 74 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("obj"), in TEST() 84 v8_str("observer"), observer) in TEST() 87 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("fun1"), in TEST() 91 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("fun2"), in TEST() 95 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("fun3"), in TEST() 276 ->Set(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("obj"), in TEST() 281 v8_str("observer"), observer) in TEST() 323 v8_str("object")) in ExpectRecords() [all …]
|
D | test-api.cc | 97 v8::Local<v8::String> profile_name = v8_str("my_profile1"); in RunWithProfiler() 209 CHECK(v8_str("TypeError: Illegal invocation") in TestSignature() 236 fun_proto->Set(v8_str("prop_sig"), callback_sig); in THREADED_TEST() 237 fun_proto->Set(v8_str("prop"), callback); in THREADED_TEST() 239 v8_str("accessor_sig"), callback_sig, callback_sig); in THREADED_TEST() 240 fun_proto->SetAccessorProperty(v8_str("accessor"), callback, callback); in THREADED_TEST() 248 ->Set(env.local(), v8_str("Fun"), in THREADED_TEST() 252 ->Set(env.local(), v8_str("UnrelFun"), in THREADED_TEST() 256 ->Set(env.local(), v8_str("fun_instance"), fun_instance) in THREADED_TEST() 259 ->Set(env.local(), v8_str("sub_fun_instance"), sub_fun_instance) in THREADED_TEST() [all …]
|
D | test-global-object.cc | 41 v8::Local<v8::String> var_name = v8_str("x"); in TEST() 64 Local<Value> token = v8_str("foo"); in TEST() 72 ->Set(env1.local(), v8_str("global2"), env2->Global()) in TEST() 75 env2->Global()->Set(env2, v8_str("a"), v8_str("a")).FromJust(); in TEST() 76 env2->Global()->Set(env2, v8_str("42"), v8_str("42")).FromJust(); in TEST() 83 v8_str("42") in TEST() 87 v8_str("a") in TEST()
|
D | test-api-fast-accessor-builder.cc | 76 v8_str("bar"), in TEST() 83 v8_str("barf"), v8::FunctionTemplate::NewWithFastHandler( in TEST() 88 ->Set(env.local(), v8_str("foo"), in TEST() 107 templ->SetAccessorProperty(v8_str(name), in AddInternalFieldAccessor() 127 obj->SetInternalField(0, v8_str("Hi there!")); in TEST() 129 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST() 157 foo->SetAccessorProperty(v8_str("nullcheck"), in TEST() 167 foo->SetAccessorProperty(v8_str("maskcheck"), in TEST() 174 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST() 209 foo->SetAccessorProperty(v8_str("isnull"), in TEST() [all …]
|
D | test-cpu-profiler.cc | 57 env->Global()->Get(env, v8_str(name)).ToLocalChecked()); in GetFunction() 377 v8::Local<v8::String> name1 = v8_str("1"); in TEST() 386 v8::Local<v8::String> name2 = v8_str("2"); in TEST() 392 v8::Local<v8::String> name3 = v8_str("3"); in TEST() 414 v8::Local<v8::String> profile_name = v8_str("test"); in TEST() 427 v8::Local<v8::String> profile_name = v8_str("my_profile"); in RunProfiler() 493 v8::Local<v8::String> nameHandle = v8_str(name); in FindChild() 608 names[0] = v8_str(ProfileGenerator::kGarbageCollectorEntryName); in TEST() 609 names[1] = v8_str(ProfileGenerator::kProgramEntryName); in TEST() 610 names[2] = v8_str("start"); in TEST() [all …]
|
D | test-debug.cc | 136 v8::Local<v8::String> name = v8_str(isolate, function_name); in CompileFunction() 639 v8::Local<v8::String> fun_name = v8_str(CcTest::isolate(), "uncaught"); in DebugEventCounter() 711 v8::Local<v8::String> string = v8_str(isolate, checks[i].expr); in DebugEventEvaluate() 1324 v8::Local<v8::String> source = v8_str(env->GetIsolate(), "foo()"); in TEST() 1377 v8::Local<v8::String> script = v8_str(isolate, in TEST() 1397 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str(isolate, "test")); in TEST() 1403 env->Global()->Get(context, v8_str(isolate, "f")).ToLocalChecked()); in TEST() 1405 env->Global()->Get(context, v8_str(isolate, "g")).ToLocalChecked()); in TEST() 1484 v8::Local<v8::String> source = v8_str(isolate, in TEST() 1504 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str(isolate, "test")); in TEST() [all …]
|
D | cctest.h | 337 static inline v8::Local<v8::String> v8_str(const char* x) { in v8_str() function 344 static inline v8::Local<v8::String> v8_str(v8::Isolate* isolate, in v8_str() function 352 return v8::Symbol::New(v8::Isolate::GetCurrent(), v8_str(name)); in v8_symbol() 367 return v8_compile(v8_str(x)); in v8_compile() 389 return CompileWithOrigin(source, v8_str(origin_url)); in CompileWithOrigin() 395 return CompileWithOrigin(v8_str(source), v8_str(origin_url)); in CompileWithOrigin() 402 return v8::Script::Compile(context, v8_str(source)) in CompileRun() 433 return CompileRun(v8_str(source)); in CompileRun() 456 v8::ScriptCompiler::Source script_source(v8_str(source)); in ParserCacheCompileRun() 477 v8::ScriptOrigin origin(v8_str(origin_url), in CompileRunWithOrigin() [all …]
|
D | test-thread-termination.cc | 113 global->Set(v8_str("terminate"), in CreateGlobalTemplate() 115 global->Set(v8_str("fail"), v8::FunctionTemplate::New(isolate, Fail)); in CreateGlobalTemplate() 116 global->Set(v8_str("loop"), v8::FunctionTemplate::New(isolate, Loop)); in CreateGlobalTemplate() 117 global->Set(v8_str("doloop"), v8::FunctionTemplate::New(isolate, doloop)); in CreateGlobalTemplate() 219 result->Set(args.GetIsolate()->GetCurrentContext(), v8_str("x"), in TerminateOrReturnObject() 258 global->Set(v8_str("terminate_or_return_object"), in TEST() 260 global->Set(v8_str("fail"), v8::FunctionTemplate::New(isolate, Fail)); in TEST() 261 global->Set(v8_str("loop"), in TEST() 315 reenter_script_1.Reset(isolate, v8_str( in TEST() 329 reenter_script_2.Reset(isolate, v8_str("function f() { fail(); } f()")); in TEST() [all …]
|
D | test-log-stack-tracer.cc | 69 context->Global()->Get(context, v8_str(func_name)).ToLocalChecked(); in IsAddressWithinFuncCode() 93 ->Set(context, v8_str("low_bits"), v8_num(low_bits >> 1)) in construct_call() 99 args.This()->Set(context, v8_str("low_bits"), v8_num(low_bits)).FromJust(); in construct_call() 100 args.This()->Set(context, v8_str("high_bits"), v8_num(high_bits)).FromJust(); in construct_call() 113 constructor_template->SetClassName(v8_str("FPGrabber")); in CreateFramePointerGrabberConstructor() 116 context->Global()->Set(context, v8_str(constructor_name), fun).FromJust(); in CreateFramePointerGrabberConstructor()
|
D | test-api-accessors.cc | 49 v8_str("firstChild"), in TEST() 55 v8_str("firstChildRaw"), in TEST() 67 ->Set(env.local(), v8_str("Node"), in TEST()
|
D | test-heap-profiler.cc | 249 CHECK(v8_str("native_bind")->Equals(env.local(), f->GetName()).FromJust()); in TEST() 476 CHECK(v8_str("symbol")->Equals(env.local(), a->GetName()).FromJust()); in TEST() 480 CHECK(v8_str("mySymbol")->Equals(env.local(), name->GetName()).FromJust()); in TEST() 541 CHECK(v8_str("WeakSet")->Equals(env.local(), ws->GetName()).FromJust()); in TEST() 565 CHECK(v8_str("WeakMap")->Equals(env.local(), wm->GetName()).FromJust()); in TEST() 614 CHECK(v8_str("Set")->Equals(env.local(), set->GetName()).FromJust()); in TEST() 638 CHECK(v8_str("Map")->Equals(env.local(), map->GetName()).FromJust()); in TEST() 920 ->Set(env.local(), v8_str("json_snapshot"), json_string) in TEST() 929 ->Get(env.local(), v8_str("parsed")) in TEST() 933 CHECK(parsed_snapshot->Has(env.local(), v8_str("snapshot")).FromJust()); in TEST() [all …]
|
D | test-log.cc | 351 obj->SetClassName(v8_str("Obj")); in TEST() 354 proto->Set(v8_str("method1"), in TEST() 361 ->Set(initialize_logger.env(), v8_str("Obj"), in TEST() 410 obj->SetClassName(v8_str("Obj")); in TEST() 412 inst->SetAccessor(v8_str("prop1"), Prop1Getter, Prop1Setter); in TEST() 413 inst->SetAccessor(v8_str("prop2"), Prop2Getter); in TEST() 491 ->Set(initialize_logger.env(), v8_str("_log"), log_str) in TEST()
|
D | test-unscopables-hidden-prototype.cc | 45 ->Set(current_context, v8_str("object"), object) in TEST() 48 ->Set(current_context, v8_str("hidden_prototype"), hidden_prototype) in TEST()
|
D | test-receiver-check-hidden-prototype.cc | 46 v8_str("bar"), accessor_template, v8::Local<v8::FunctionTemplate>(), in TEST() 64 ->Set(current_context, v8_str("object"), object) in TEST()
|
D | test-platform.cc | 45 global_template->Set(v8_str("get_stack_pointer"), in TEST() 56 global_object->Get(isolate->GetCurrentContext(), v8_str("foo")) in TEST()
|
D | test-serialize.cc | 314 v8::Local<v8::String> foo = v8_str("foo"); in UNINITIALIZED_TEST() 657 CHECK(s->Equals(v8_isolate->GetCurrentContext(), v8_str("12345")) in UNINITIALIZED_DEPENDENT_TEST() 772 v8::Maybe<bool> compare = v8_str("42")->Equals( in TEST() 1450 v8::Local<v8::String> source_str = v8_str(source); in ProduceCache() 1451 v8::ScriptOrigin origin(v8_str("test")); in ProduceCache() 1470 CHECK(result_string->Equals(isolate1->GetCurrentContext(), v8_str("abcdef")) in ProduceCache() 1496 v8::Local<v8::String> source_str = v8_str(source); in TEST() 1497 v8::ScriptOrigin origin(v8_str("test")); in TEST() 1512 ->Equals(isolate2->GetCurrentContext(), v8_str("abcdef")) in TEST() 1538 v8::Local<v8::String> source_str = v8_str(source); in TEST() [all …]
|
D | test-sampler-api.cc | 98 global->Set(v8_str("CollectSample"), in SamplingTestHelper() 103 CompileRun(v8_str(test_function.c_str())); in SamplingTestHelper()
|
/external/v8/test/cctest/compiler/ |
D | test-run-jsexceptions.cc | 56 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Error: Wat?"))); in TEST() 59 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Kaboom!"))); in TEST() 79 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Error: Wat?"))); in TEST() 82 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Kaboom!"))); in TEST()
|
D | test-run-deopt.cc | 25 ->Set(context, v8_str("IsOptimized"), in InstallIsOptimizedHelper()
|
/external/v8/test/cctest/heap/ |
D | test-heap.cc | 2397 ctx1->Global()->Get(ctx1, v8_str("v")).ToLocalChecked(); in TEST() 2399 CHECK(ctx2->Global()->Set(ctx2, v8_str("o"), v).FromJust()); in TEST() 2407 ->Set(ctx2, v8_str("o"), v8::Int32::New(isolate, 0)) in TEST() 2446 ctx1->Global()->Get(ctx1, v8_str("v")).ToLocalChecked(); in TEST() 2448 CHECK(ctx2->Global()->Set(ctx2, v8_str("o"), v).FromJust()); in TEST() 2456 ->Set(ctx2, v8_str("o"), v8::Int32::New(isolate, 0)) in TEST() 2493 ctx1->Global()->Get(ctx1, v8_str("v")).ToLocalChecked(); in TEST() 2495 CHECK(ctx2->Global()->Set(ctx2, v8_str("o"), v).FromJust()); in TEST() 2503 ->Set(ctx2, v8_str("o"), v8::Int32::New(isolate, 0)) in TEST() 2540 ctx1->Global()->Get(ctx1, v8_str("v")).ToLocalChecked(); in TEST() [all …]
|
/external/v8/src/wasm/ |
D | wasm-js.cc | 291 static Handle<String> v8_str(Isolate* isolate, const char* str) { in v8_str() function 298 Handle<String> name = v8_str(isolate, str); in InstallFunc() 315 Handle<String> name = v8_str(isolate, "_WASMEXP_"); in Install()
|