/external/v8/test/cctest/ |
test-global-object.cc | 41 v8::Local<v8::String> var_name = v8_str("x"); 64 Local<Value> token = v8_str("foo"); 72 ->Set(env1.local(), v8_str("global2"), env2->Global()) 75 env2->Global()->Set(env2, v8_str("a"), v8_str("a")).FromJust(); 76 env2->Global()->Set(env2, v8_str("42"), v8_str("42")).FromJust(); 83 v8_str("42") 87 v8_str("a")
|
test-accessors.cc | 72 fun_templ->InstanceTemplate()->SetAccessor(v8_str("foo"), handle_property); 77 InstanceTemplate()->SetAccessorProperty(v8_str("bar"), getter_templ); 79 SetNativeDataProperty(v8_str("instance_foo"), handle_property); 80 fun_templ->SetNativeDataProperty(v8_str("object_foo"), handle_property_2); 82 CHECK(env->Global()->Set(env.local(), v8_str("Fun"), fun).FromJust()); 147 v8_str("foo"), GetIntValue, SetIntValue, 150 v8_str("bar"), GetIntValue, SetIntValue, 153 v8_str("baz"), GetIntValue, SetIntValue, 225 obj->SetAccessor(v8_str("x0"), XGetter, XSetter); 226 obj->SetAccessorProperty(v8_str("x1") [all...] |
test-api-interceptors.cc | 56 info.GetReturnValue().Set(v8_str("bad value")); 73 String::Concat(v8_str("accessor_"), name)) 81 String::Concat(v8_str("accessor_"), name), value) 117 v8::Private::ForApi(info.GetIsolate(), v8_str(name_str + i))) 162 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); 168 str = String::Concat(v8_str("_str_"), name); 182 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); 188 str = String::Concat(v8_str("_str_"), name); 330 CHECK(v8_str("data") 362 ->Set(context.local(), v8_str("constructor"), function [all...] |
test-api-accessors.cc | 49 v8_str("firstChild"), 55 v8_str("firstChildRaw"), 67 ->Set(env.local(), v8_str("Node"),
|
test-compiler.cc | 265 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); 277 v8::Local<v8::String> script_body = v8_str(buffer.start()); 283 context->Global()->Get(context.local(), v8_str("f")).ToLocalChecked()); 304 CcTest::global()->Get(context, v8_str("f")).ToLocalChecked()))); 353 ->Get(context, v8_str("morphing_call")) 377 ->Set(env.local(), v8_str("x"), v8::Integer::New(CcTest::isolate(), i)) 392 ->Get(env.local(), v8_str("closure1")) 397 ->Get(env.local(), v8_str("closure2")) 423 ->Set(env.local(), v8_str("x"), v8::Integer::New(CcTest::isolate(), 23)) 437 ->Get(env.local(), v8_str("closure0") [all...] |
test-api-fast-accessor-builder.cc | 76 v8_str("bar"), 83 v8_str("barf"), v8::FunctionTemplate::NewWithFastHandler( 88 ->Set(env.local(), v8_str("foo"), 107 templ->SetAccessorProperty(v8_str(name), 130 obj->SetInternalField(0, v8_str("Hi there!")); 132 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); 163 foo->SetAccessorProperty(v8_str("nullcheck"), 173 foo->SetAccessorProperty(v8_str("maskcheck"), 180 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); 218 foo->SetAccessorProperty(v8_str("isnull") [all...] |
test-api.cc | 98 v8::Local<v8::String> profile_name = v8_str("my_profile1"); 210 CHECK(v8_str("TypeError: Illegal invocation") 237 fun_proto->Set(v8_str("prop_sig"), callback_sig); 238 fun_proto->Set(v8_str("prop"), callback); 240 v8_str("accessor_sig"), callback_sig, callback_sig); 241 fun_proto->SetAccessorProperty(v8_str("accessor"), callback, callback); 249 ->Set(env.local(), v8_str("Fun"), 253 ->Set(env.local(), v8_str("UnrelFun"), 257 ->Set(env.local(), v8_str("fun_instance"), fun_instance) 260 ->Set(env.local(), v8_str("sub_fun_instance"), sub_fun_instance [all...] |
profiler-extension.cc | 45 if (name->Equals(context, v8_str(isolate, "startProfiling")).FromJust()) { 49 if (name->Equals(context, v8_str(isolate, "stopProfiling")).FromJust()) { 52 if (name->Equals(context, v8_str(isolate, "collectSample")).FromJust()) {
|
test-access-checks.cc | 17 if (property->Equals(context, v8_str("cross_context_int")).FromJust()) 25 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) 37 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) 46 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) 55 names->Set(context, 0, v8_str("cross_context_int")).FromJust(); 89 names->Set(context, 0, v8_str("7")).FromJust(); 134 v8_str("cross_context_int"), GetCrossContextInt, SetCrossContextInt); 136 v8_str("all_can_read"), Return42, nullptr, v8::Local<v8::Value>(), 156 ->Set(context1, v8_str("other"), context0->Global())
|
test-deoptimization.cc | 119 context->Global()->Get(context, v8_str(property_name)).ToLocalChecked()); 141 ->Get(env.local(), v8_str("count")) 161 ->Get(env.local(), v8_str("count")) 187 ->Get(env.local(), v8_str("count")) 208 ->Get(env.local(), v8_str("count")) 235 ->Get(env.local(), v8_str("count")) 240 ->Get(env.local(), v8_str("result")) 268 ->Get(env.local(), v8_str("count")) 273 ->Get(env.local(), v8_str("calls")) 281 ->Get(env.local(), v8_str(CcTest::isolate(), "f") [all...] |
test-unscopables-hidden-prototype.cc | 45 ->Set(current_context, v8_str("object"), object) 48 ->Set(current_context, v8_str("hidden_prototype"), hidden_prototype)
|
test-platform.cc | 49 global_template->Set(v8_str("get_stack_pointer"), 60 global_object->Get(isolate->GetCurrentContext(), v8_str("foo"))
|
test-receiver-check-hidden-prototype.cc | 46 v8_str("bar"), accessor_template, v8::Local<v8::FunctionTemplate>(), 64 ->Set(current_context, v8_str("object"), object)
|
test-log-stack-tracer.cc | 69 context->Global()->Get(context, v8_str(func_name)).ToLocalChecked(); 98 ->Set(context, v8_str("low_bits"), v8_num(low_bits >> 1)) 104 args.This()->Set(context, v8_str("low_bits"), v8_num(low_bits)).FromJust(); 105 args.This()->Set(context, v8_str("high_bits"), v8_num(high_bits)).FromJust(); 118 constructor_template->SetClassName(v8_str("FPGrabber")); 121 context->Global()->Set(context, v8_str(constructor_name), fun).FromJust();
|
cctest.h | 321 static inline v8::Local<v8::String> v8_str(const char* x) { function 328 static inline v8::Local<v8::String> v8_str(v8::Isolate* isolate, function 336 return v8::Symbol::New(v8::Isolate::GetCurrent(), v8_str(name)); 351 return v8_compile(v8_str(x)); 373 return CompileWithOrigin(source, v8_str(origin_url)); 379 return CompileWithOrigin(v8_str(source), v8_str(origin_url)); 386 return v8::Script::Compile(context, v8_str(source)) 417 return CompileRun(v8_str(source)); 440 v8::ScriptCompiler::Source script_source(v8_str(source)) [all...] |
test-debug.cc | 136 v8::Local<v8::String> name = v8_str(isolate, function_name); 627 v8::Local<v8::String> fun_name = v8_str(CcTest::isolate(), "uncaught"); 699 v8::Local<v8::String> string = v8_str(isolate, checks[i].expr); [all...] |
test-cpu-profiler.cc | 57 env->Global()->Get(env, v8_str(name)).ToLocalChecked()); 385 v8::Local<v8::String> name1 = v8_str("1"); 394 v8::Local<v8::String> name2 = v8_str("2"); 400 v8::Local<v8::String> name3 = v8_str("3"); 422 v8::Local<v8::String> profile_name = v8_str("test"); 435 v8::Local<v8::String> profile_name = v8_str("my_profile"); 462 v8::Local<v8::String> name_handle = v8_str(name); 789 instance_template->SetAccessor(v8_str("foo"), &TestApiCallbacks::Getter, 795 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust(); 830 instance_template->SetAccessor(v8_str("foo"), &TestApiCallbacks::Getter [all...] |
test-thread-termination.cc | 113 global->Set(v8_str("terminate"), 115 global->Set(v8_str("fail"), v8::FunctionTemplate::New(isolate, Fail)); 116 global->Set(v8_str("loop"), v8::FunctionTemplate::New(isolate, Loop)); 117 global->Set(v8_str("doloop"), v8::FunctionTemplate::New(isolate, doloop)); 244 result->Set(args.GetIsolate()->GetCurrentContext(), v8_str("x"), 283 global->Set(v8_str("terminate_or_return_object"), 285 global->Set(v8_str("fail"), v8::FunctionTemplate::New(isolate, Fail)); 286 global->Set(v8_str("loop"), 340 reenter_script_1.Reset(isolate, v8_str( 354 reenter_script_2.Reset(isolate, v8_str("function f() { fail(); } f()")) [all...] |
test-typedarrays.cc | 19 ->Get(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("a"))
|
test-log.cc | 351 obj->SetClassName(v8_str("Obj")); 354 proto->Set(v8_str("method1"), 361 ->Set(initialize_logger.env(), v8_str("Obj"), 413 obj->SetClassName(v8_str("Obj")); 415 inst->SetAccessor(v8_str("prop1"), Prop1Getter, Prop1Setter); 416 inst->SetAccessor(v8_str("prop2"), Prop2Getter); 506 ->Set(initialize_logger.env(), v8_str("_log"), log_str)
|
test-heap-profiler.cc | 250 CHECK(v8_str("native_bind")->Equals(env.local(), f->GetName()).FromJust()); 479 CHECK(v8_str("symbol")->Equals(env.local(), a->GetName()).FromJust()); 483 CHECK(v8_str("mySymbol")->Equals(env.local(), name->GetName()).FromJust()); 544 CHECK(v8_str("WeakSet")->Equals(env.local(), ws->GetName()).FromJust()); 568 CHECK(v8_str("WeakMap")->Equals(env.local(), wm->GetName()).FromJust()); 617 CHECK(v8_str("Set")->Equals(env.local(), set->GetName()).FromJust()); 641 CHECK(v8_str("Map")->Equals(env.local(), map->GetName()).FromJust()); [all...] |
/external/v8/test/cctest/libsampler/ |
test-sampler.cc | 107 env->Global()->Get(env, v8_str(name)).ToLocalChecked()); 124 instance_template->SetAccessor(v8_str("foo"), &TestApiCallbacks::Getter, 130 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust();
|
/external/v8/test/cctest/compiler/ |
test-run-deopt.cc | 25 ->Set(context, v8_str("IsOptimized"),
|
test-run-jsexceptions.cc | 56 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Error: Wat?"))); 59 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Kaboom!"))); 78 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Error: Wat?"))); 81 CHECK(t == message->Get()->Equals(context, v8_str("Uncaught Kaboom!")));
|
/external/v8/test/cctest/heap/ |
test-heap.cc | [all...] |