Home
last modified time | relevance | path

Searched refs:v8_str (Results 1 – 25 of 29) sorted by relevance

12

/external/v8/test/cctest/
Dtest-deoptimization.cc109 v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name))); in GetJSFunction()
132 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
148 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
172 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
189 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
214 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
215 CHECK_EQ(6, env->Global()->Get(v8_str("result"))->Int32Value()); in TEST()
240 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
241 CHECK_EQ(11, env->Global()->Get(v8_str("calls"))->Int32Value()); in TEST()
273 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); in TEST()
[all …]
Dtest-api.cc204 CHECK_EQ(v8_str("TypeError: Illegal invocation"), in TestSignature()
228 fun_proto->Set(v8_str("prop_sig"), callback_sig); in THREADED_TEST()
229 fun_proto->Set(v8_str("prop"), callback); in THREADED_TEST()
231 v8_str("accessor_sig"), callback_sig, callback_sig); in THREADED_TEST()
232 fun_proto->SetAccessorProperty(v8_str("accessor"), callback, callback); in THREADED_TEST()
237 env->Global()->Set(v8_str("Fun"), fun->GetFunction()); in THREADED_TEST()
238 env->Global()->Set(v8_str("UnrelFun"), unrel_fun->GetFunction()); in THREADED_TEST()
239 env->Global()->Set(v8_str("fun_instance"), fun_instance); in THREADED_TEST()
240 env->Global()->Set(v8_str("sub_fun_instance"), sub_fun_instance); in THREADED_TEST()
290 cons->SetClassName(v8_str("Cons")); in THREADED_TEST()
[all …]
Dtest-accessors.cc71 fun_templ->InstanceTemplate()->SetAccessor(v8_str("foo"), handle_property); in THREADED_TEST()
76 InstanceTemplate()->SetAccessorProperty(v8_str("bar"), getter_templ); in THREADED_TEST()
78 SetNativeDataProperty(v8_str("instance_foo"), handle_property); in THREADED_TEST()
79 fun_templ->SetNativeDataProperty(v8_str("object_foo"), handle_property_2); in THREADED_TEST()
81 env->Global()->Set(v8_str("Fun"), fun); in THREADED_TEST()
128 v8_str("foo"), GetIntValue, SetIntValue, in THREADED_TEST()
131 v8_str("bar"), GetIntValue, SetIntValue, in THREADED_TEST()
134 v8_str("baz"), GetIntValue, SetIntValue, in THREADED_TEST()
199 obj->SetAccessor(v8_str("x0"), XGetter, XSetter); in THREADED_TEST()
200 obj->SetAccessorProperty(v8_str("x1"), in THREADED_TEST()
[all …]
Dtest-dictionary.cc178 key_obj->SetHiddenValue(v8_str("key 1"), v8_str("val 1")); in TestHashSetCausesGC()
179 key_obj->SetHiddenValue(v8_str("key 2"), v8_str("val 2")); in TestHashSetCausesGC()
180 key_obj->SetHiddenValue(v8_str("key 3"), v8_str("val 3")); in TestHashSetCausesGC()
224 key_obj->SetHiddenValue(v8_str("key 1"), v8_str("val 1")); in TestHashMapCausesGC()
225 key_obj->SetHiddenValue(v8_str("key 2"), v8_str("val 2")); in TestHashMapCausesGC()
226 key_obj->SetHiddenValue(v8_str("key 3"), v8_str("val 3")); in TestHashMapCausesGC()
Dtest-heap-profiler.cc187 heap_profiler->TakeHeapSnapshot(v8_str("env2")); in TEST()
223 heap_profiler->TakeHeapSnapshot(v8_str("sizes")); in TEST()
252 heap_profiler->TakeHeapSnapshot(v8_str("sizes")); in TEST()
292 heap_profiler->TakeHeapSnapshot(v8_str("children")); in TEST()
320 heap_profiler->TakeHeapSnapshot(v8_str("code")); in TEST()
393 heap_profiler->TakeHeapSnapshot(v8_str("numbers")); in TEST()
415 heap_profiler->TakeHeapSnapshot(v8_str("strings")); in TEST()
453 heap_profiler->TakeHeapSnapshot(v8_str("cons_strings")); in TEST()
481 heap_profiler->TakeHeapSnapshot(v8_str("Symbol")); in TEST()
488 CHECK_EQ(v8_str("symbol"), a->GetName()); in TEST()
[all …]
Dtest-log-stack-tracer.cc68 v8::Local<v8::Value> func = context->Global()->Get(v8_str(func_name)); in IsAddressWithinFuncCode()
90 args.This()->Set(v8_str("low_bits"), v8_num(low_bits >> 1)); in construct_call()
95 args.This()->Set(v8_str("low_bits"), v8_num(low_bits)); in construct_call()
96 args.This()->Set(v8_str("high_bits"), v8_num(high_bits)); in construct_call()
109 constructor_template->SetClassName(v8_str("FPGrabber")); in CreateFramePointerGrabberConstructor()
111 context->Global()->Set(v8_str(constructor_name), fun); in CreateFramePointerGrabberConstructor()
Dcctest.h344 static inline v8::Local<v8::String> v8_str(const char* x) { in v8_str() function
350 return v8::Script::Compile(v8_str(x)); in v8_compile()
370 return CompileWithOrigin(source, v8_str(origin_url)); in CompileWithOrigin()
376 return CompileWithOrigin(v8_str(source), v8_str(origin_url)); in CompileWithOrigin()
382 return v8::Script::Compile(v8_str(source))->Run(); in CompileRun()
395 v8::ScriptCompiler::Source script_source(v8_str(source)); in ParserCacheCompileRun()
414 v8::ScriptOrigin origin(v8_str(origin_url), in CompileRunWithOrigin()
417 v8::ScriptCompiler::Source script_source(v8_str(source), origin); in CompileRunWithOrigin()
425 source, v8::ScriptOrigin(v8_str(origin_url))); in CompileRunWithOrigin()
433 return CompileRunWithOrigin(v8_str(source), origin_url); in CompileRunWithOrigin()
Dtest-heap.cc1809 v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); in TEST()
1811 ctx2->Global()->Set(v8_str("o"), v); in TEST()
1818 ctx2->Global()->Set(v8_str("o"), v8::Int32::New(isolate, 0)); in TEST()
1855 v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); in TEST()
1857 ctx2->Global()->Set(v8_str("o"), v); in TEST()
1864 ctx2->Global()->Set(v8_str("o"), v8::Int32::New(isolate, 0)); in TEST()
1899 v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); in TEST()
1901 ctx2->Global()->Set(v8_str("o"), v); in TEST()
1908 ctx2->Global()->Set(v8_str("o"), v8::Int32::New(isolate, 0)); in TEST()
1943 v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); in TEST()
[all …]
Dtest-declarative-accessors.cc104 obj_template->SetDeclaredAccessor(v8_str(descriptor_name), descriptor); in CreateConstructor()
108 context->Global()->Set(v8_str(class_name), constructor->GetFunction()); in CreateConstructor()
124 context->Global()->Get(v8_str("accessible"))); in VerifyRead()
127 added_accessor = obj->SetDeclaredAccessor(v8_str("y"), descriptor); in VerifyRead()
129 added_accessor = obj->SetDeclaredAccessor(v8_str("13"), descriptor); in VerifyRead()
299 v8::Handle<v8::String> expected = v8_str("whatever"); in TEST()
Dtest-unscopables-hidden-prototype.cc37 context->Global()->Set(v8_str("object"), object); in TEST()
38 context->Global()->Set(v8_str("hidden_prototype"), hidden_prototype); in TEST()
Dtest-log.cc347 obj->SetClassName(v8_str("Obj")); in TEST()
350 proto->Set(v8_str("method1"), in TEST()
355 initialize_logger.env()->Global()->Set(v8_str("Obj"), obj->GetFunction()); in TEST()
400 obj->SetClassName(v8_str("Obj")); in TEST()
402 inst->SetAccessor(v8_str("prop1"), Prop1Getter, Prop1Setter); in TEST()
403 inst->SetAccessor(v8_str("prop2"), Prop2Getter); in TEST()
478 initialize_logger.env()->Global()->Set(v8_str("_log"), log_str); in TEST()
Dtest-platform.cc41 global_template->Set(v8_str("get_stack_pointer"), in TEST()
52 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); in TEST()
Dtest-compiler.cc304 CcTest::global()->Get(v8_str("f")))); in TEST()
347 CcTest::global()->Get(v8_str("morphing_call")))); in TEST()
386 *v8::Local<v8::Function>::Cast(env->Global()->Get(v8_str("closure1")))); in TEST()
388 *v8::Local<v8::Function>::Cast(env->Global()->Get(v8_str("closure2")))); in TEST()
402 v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name))); in GetJSFunction()
Dtest-global-object.cc38 v8::Local<v8::String> var_name = v8_str("x"); in TEST()
Dtest-object-observe.cc40 Local<Value> foo = v8_str("foo"); in TEST()
438 Local<Value> foo = v8_str("foo"); in TEST()
464 Local<Value> foo = v8_str("foo"); in TEST()
488 Local<Value> foo = v8_str("foo"); in TEST()
512 Local<Value> foo = v8_str("foo"); in TEST()
Dtest-serialize.cc802 v8::Local<v8::String> source_str = v8_str(source); in TEST()
803 v8::ScriptOrigin origin(v8_str("test")); in TEST()
815 CHECK(result->ToString()->Equals(v8_str("abcdef"))); in TEST()
826 v8::Local<v8::String> source_str = v8_str(source); in TEST()
827 v8::ScriptOrigin origin(v8_str("test")); in TEST()
836 CHECK(result->ToString()->Equals(v8_str("abcdef"))); in TEST()
Dtest-macro-assembler-mips.cc143 v8::Local<v8::Script> script = v8::Script::Compile(v8_str(code)); in TestNaN()
Dtest-thread-termination.cc360 CHECK(v8::Script::Compile(source)->Run()->Equals(v8_str("completed"))); in TEST()
470 v8::Local<v8::Value> error = v8::Exception::Error(v8_str("error")); in TEST()
Dtest-strings.cc971 global->Set(v8_str("external_one_byte"), one_byte_external_strings); in TEST()
972 global->Set(v8_str("external_non_one_byte"), non_one_byte_external_strings); in TEST()
973 global->Set(v8_str("max_length"), in TEST()
1307 v8::Local<v8::String> expected = v8_str("one_byte\x80only\x80string\x80"); in TEST()
Dtest-assembler-ia32.cc501 global_template->Set(v8_str("do_sse2"), in TEST()
512 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); in TEST()
Dtest-assembler-x64.cc645 global_template->Set(v8_str("do_sse2"), in TEST()
656 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); in TEST()
Dtest-constantpool.cc26 (*context)->Global()->Get(v8_str("foo")))); in DummyCode()
/external/v8/test/cctest/compiler/
Dtest-run-deopt.cc26 context->Global()->Set(v8_str("IsOptimized"), t->GetFunction()); in InstallIsOptimizedHelper()
Dtest-run-jscalls.cc265 context->Global()->Set(v8_str("foo"), v8::Utils::ToLocal(jsfun)); in TEST()
286 context->Global()->Set(v8_str("foo"), v8::Utils::ToLocal(jsfun)); in TEST()
Dtest-run-inlining.cc36 context->Global()->Set(v8_str("AssertInlineCount"), t->GetFunction()); in InstallAssertInlineCountHelper()

12