/external/v8/test/cctest/ |
D | test-object-observe.cc | 43 CompileRun( in TEST() 49 Handle<Value> observer = CompileRun("observer"); in TEST() 50 Handle<Value> obj = CompileRun("obj"); in TEST() 51 Handle<Value> notify_fun1 = CompileRun( in TEST() 59 notify_fun2 = CompileRun( in TEST() 68 notify_fun3 = CompileRun( in TEST() 82 CompileRun("fun1(); fun2(); fun3(); Object.deliverChangeRecords(observer)"); in TEST() 84 CHECK_EQ(1, CompileRun("calls")->Int32Value()); in TEST() 85 CHECK_EQ(3, CompileRun("count")->Int32Value()); in TEST() 92 CompileRun( in TEST() [all …]
|
D | test-javascript-arm64.cc | 91 Local<Value> result = CompileRun("0x271828;"); in TEST() 99 Local<Value> result = CompileRun("var my_global_var = 0x123; my_global_var;"); in TEST() 107 Local<Value> result = CompileRun( in TEST() 117 Local<Value> result = CompileRun( in TEST() 139 Local<Value> result = CompileRun(buffer); in if_comparison_testcontext_helper() 156 Local<Value> result = CompileRun(buffer); in if_comparison_effectcontext_helper() 197 result = CompileRun("var a = 1234; +a"); in TEST() 200 result = CompileRun("var a = 1234.5; +a"); in TEST() 203 result = CompileRun("var a = '1234'; +a"); in TEST() 206 result = CompileRun("var a = '1234.5'; +a"); in TEST() [all …]
|
D | test-deoptimization.cc | 123 CompileRun( in TEST() 140 CompileRun( in TEST() 163 CompileRun( in TEST() 181 CompileRun( in TEST() 205 CompileRun( in TEST() 231 CompileRun( in TEST() 257 CompileRun( in TEST() 286 CompileRun( in TEST() 301 CompileRun( in TEST() 325 CompileRun( in TEST() [all …]
|
D | test-microtask-delivery.cc | 60 CompileRun( in TEST() 84 CHECK_EQ(6, CompileRun("ordering.length")->Int32Value()); in TEST() 85 CHECK_EQ(1, CompileRun("ordering[0]")->Int32Value()); in TEST() 86 CHECK_EQ(2, CompileRun("ordering[1]")->Int32Value()); in TEST() 87 CHECK_EQ(3, CompileRun("ordering[2]")->Int32Value()); in TEST() 88 CHECK_EQ(4, CompileRun("ordering[3]")->Int32Value()); in TEST() 89 CHECK_EQ(5, CompileRun("ordering[4]")->Int32Value()); in TEST() 90 CHECK_EQ(6, CompileRun("ordering[5]")->Int32Value()); in TEST() 99 CompileRun( in TEST() 101 Handle<Value> obj = CompileRun("obj"); in TEST() [all …]
|
D | test-unscopables-hidden-prototype.cc | 14 CompileRun( in Cleanup() 40 CHECK_EQ(1, CompileRun( in TEST() 50 CHECK_EQ(2, CompileRun( in TEST() 60 CHECK_EQ(0, CompileRun( in TEST() 71 CHECK_EQ(0, CompileRun( in TEST() 82 CHECK_EQ(0, CompileRun( in TEST() 93 CHECK_EQ(0, CompileRun( in TEST()
|
D | test-weaktypedarrays.cc | 138 CompileRun("var ab1 = new ArrayBuffer(256);" in TEST() 142 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab1")); in TEST() 144 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab2")); in TEST() 146 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab3")); in TEST() 159 CompileRun(source.start()); in TEST() 170 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun(source.start())); in TEST() 176 CompileRun("ab1 = null; ab2 = null; ab3 = null;"); in TEST() 274 CompileRun("var ab = new ArrayBuffer(2048);"); in TestTypedArrayFromScript() 291 CompileRun(source.start()); in TestTypedArrayFromScript() 293 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab")); in TestTypedArrayFromScript() [all …]
|
D | test-api.cc | 199 CompileRun(source.start()); in TestSignature() 241 CompileRun( in THREADED_TEST() 269 Local<Value> test_object = CompileRun(source.start()); in THREADED_TEST() 301 v8::Handle<Value> value1 = CompileRun("Fun1(4) == '';"); in THREADED_TEST() 304 v8::Handle<Value> value2 = CompileRun("Fun1(new Cons()) == '[object Cons]';"); in THREADED_TEST() 307 v8::Handle<Value> value3 = CompileRun("Fun1() == '';"); in THREADED_TEST() 330 v8::Handle<Value> value4 = CompileRun( in THREADED_TEST() 335 v8::Handle<Value> value5 = CompileRun( in THREADED_TEST() 339 v8::Handle<Value> value6 = CompileRun( in THREADED_TEST() 343 v8::Handle<Value> value7 = CompileRun( in THREADED_TEST() [all …]
|
D | test-js-arm64-variables.cc | 75 Local<Value> result = CompileRun( in TEST() 87 Local<Value> result = CompileRun( in TEST() 98 Local<Value> result = CompileRun( in TEST() 109 Local<Value> result = CompileRun( in TEST() 123 Local<Value> result = CompileRun( in TEST() 137 Local<Value> result = CompileRun( in TEST()
|
D | test-heap.cc | 1076 CompileRun(source); in UNINITIALIZED_TEST() 1101 CompileRun("foo()"); in UNINITIALIZED_TEST() 1129 CompileRun(source); in TEST() 1150 CompileRun("foo();" in TEST() 1169 CompileRun("foo()"); in TEST() 1194 CompileRun(source); in TEST() 1220 CompileRun("foo();"); in TEST() 1234 CompileRun("%OptimizeFunctionOnNextCall(foo); foo();"); in TEST() 1271 CompileRun(source); in TEST() 1288 CompileRun("foo = 0; bar = 0;"); in TEST() [all …]
|
D | test-log-stack-tracer.cc | 134 CompileRun(trace_call_buf.start()); in CreateTraceCallerFunction() 156 Local<Value> result = CompileRun( in TEST() 204 Local<Value> result = CompileRun( in TEST() 280 CompileRun("a = 1; b = a + 1;"); in TEST() 282 CompileRun("js_entry_sp();"); in TEST() 284 CompileRun("js_entry_sp_level2();"); in TEST()
|
D | test-debug.cc | 2546 CompileRun("debug.Debug.setBreakPoint(foo, 2, 0, 'true')"); in TEST() 2789 CompileRun("a=0; b=0; c=0; foo();"); in TEST() 3021 CompileRun("a=0; b=0; bar(); foo();"); in TEST() 4415 CompileRun( in TEST() 4419 CHECK(CompileRun( in TEST() 4421 CHECK(CompileRun( in TEST() 4423 CHECK(CompileRun( in TEST() 4427 CompileRun( in TEST() 4431 CHECK_EQ(3, CompileRun("named_names.length")->Int32Value()); in TEST() 4432 CHECK_EQ(2, CompileRun("indexed_names.length")->Int32Value()); in TEST() [all …]
|
D | test-compiler.cc | 297 CompileRun("function fun() {};" in TEST() 316 CompileRun("%OptimizeFunctionOnNextCall(f); f(fun1);"); in TEST() 332 CompileRun("function builder() {" in TEST() 354 CompileRun("morphing_call();"); in TEST() 376 CompileRun("function MakeClosure() {" in TEST() 440 CompileRun("function f() { a = 12345678 }; f();"); in TEST() 442 CompileRun("function f(x) { a = 12345678 + x}; f(1);"); in TEST() 444 CompileRun("function f(x) { var arguments = 1; x += 12345678}; f(1);"); in TEST() 446 CompileRun("function f(x) { var arguments = 1; x = 12345678}; f(1);"); in TEST()
|
D | test-declarative-accessors.cc | 122 CompileRun("var accessible = new Accessible();"); in VerifyRead() 133 value = CompileRun("accessible.x;"); in VerifyRead() 135 value = CompileRun("accessible['x'];"); in VerifyRead() 138 value = CompileRun("accessible.y;"); in VerifyRead() 140 value = CompileRun("accessible['y'];"); in VerifyRead() 142 value = CompileRun("accessible[13];"); in VerifyRead() 144 value = CompileRun("accessible['13'];"); in VerifyRead()
|
D | test-heap-profiler.cc | 179 CompileRun( in TEST() 217 CompileRun( in TEST() 247 CompileRun( in TEST() 288 CompileRun( in TEST() 314 CompileRun( in TEST() 389 CompileRun( in TEST() 408 CompileRun( in TEST() 479 CompileRun("a = Symbol('mySymbol');\n"); in TEST() 501 CompileRun( in TEST() 575 CompileRun( in TEST() [all …]
|
D | test-strings.cc | 1020 CHECK_EQ(0, CompileRun(source)->Int32Value()); in TEST() 1030 CompileRun("var underlying = 'abcdefghijklmnopqrstuvwxyz';" in TEST() 1033 CompileRun("var slice = underlying.slice(1);" in TEST() 1047 *v8::String::Utf8Value(CompileRun("JSON.stringify(slice)"))); in TEST() 1166 CompileRun(init); in TEST() 1168 result = CompileRun(check); in TEST() 1175 result = CompileRun(crosscheck); in TEST() 1195 CompileRun(init); in TEST() 1196 result = CompileRun(slice); in TEST() 1203 result = CompileRun(slice_from_slice); in TEST() [all …]
|
D | cctest.h | 381 static inline v8::Local<v8::Value> CompileRun(const char* source) { in CompileRun() function 386 static inline v8::Local<v8::Value> CompileRun(v8::Local<v8::String> source) { in CompileRun() function 439 v8::Local<v8::Value> result = CompileRun(code); in ExpectString() 447 v8::Local<v8::Value> result = CompileRun(code); in ExpectInt32() 454 v8::Local<v8::Value> result = CompileRun(code); in ExpectBoolean() 472 v8::Local<v8::Value> result = CompileRun(code); in ExpectObject() 478 v8::Local<v8::Value> result = CompileRun(code); in ExpectUndefined()
|
D | test-accessors.cc | 207 v8::Handle<v8::Array> array = v8::Handle<v8::Array>::Cast(CompileRun( in THREADED_TEST() 256 CompileRun( in THREADED_TEST() 532 CHECK(CompileRun("JSON.stringify(obj)")->Equals(expected)); in THREADED_TEST() 557 CompileRun( in THREADED_TEST() 568 CompileRun( in THREADED_TEST() 577 CHECK(v8::Utils::OpenHandle(*CompileRun("getter()"))->IsJSGlobalProxy()); in THREADED_TEST() 578 CHECK(v8::Utils::OpenHandle(*CompileRun("set_value"))->IsJSGlobalProxy()); in THREADED_TEST()
|
D | test-thread-termination.cc | 375 CompileRun("terminate(); while (true) { }"); in MicrotaskLoopForever() 436 CompileRun(terminate_and_loop); in TEST() 446 CompileRun(terminate_and_loop); in TEST() 452 CompileRun(terminate_and_loop); in TEST() 458 CompileRun("for (var i = 0; i < 10000; i++);"); in TEST()
|
D | test-platform.cc | 45 CompileRun( in TEST()
|
D | test-log.cc | 190 CompileRun( 356 CompileRun("Obj.prototype.method1.toString();"); in TEST() 458 CompileRun( in TEST()
|
/external/v8/test/cctest/compiler/ |
D | test-run-jscalls.cc | 61 CompileRun("function foo(y,z) { return this.x + y + z; }"); in TEST() 71 CompileRun("function foo(y,z) { return this.x + y + z; }"); in TEST() 81 CompileRun("function foo(a,b) { return a + b + this.c; }"); in TEST() 82 CompileRun("var c = 23;"); in TEST() 93 CompileRun("function f1(a,b) { return a.val + b; }"); in TEST() 97 CompileRun("function f2(a,b) { return this.val + b; }"); in TEST() 105 CompileRun("function foo(a,b,c) { return a + b + c; }"); in TEST() 115 CompileRun("function foo(a) { return a; }"); in TEST() 125 CompileRun("function foo(a,b) { return { value: a + b + this.c }; }"); in TEST() 126 CompileRun("foo.prototype.c = 23;"); in TEST() [all …]
|
D | test-run-variables.cc | 62 Handle<Object> r = v8::Utils::OpenHandle(*CompileRun(tests[i + 1])); in RunVariableTests() 70 Handle<Object> r = v8::Utils::OpenHandle(*CompileRun(tests[i + 2])); in RunVariableTests() 119 CompileRun("var self = 'not a function'"); in TEST()
|
D | test-run-jsops.cc | 156 CompileRun("var o = { desc : 'I am a singleton' }"); in TEST() 174 CompileRun("var o = { desc : 'I am a singleton' }"); in TEST() 192 CompileRun("var o = { desc : 'I am a singleton' }"); in TEST() 283 CompileRun("var bound = (function() {}).bind(undefined)"); in TEST() 371 CompileRun("var o = Object.create({}, { x: { value:23 } });"); in TEST() 381 CompileRun("function getX() { return 'x'; }"); in TEST() 382 CompileRun("var o = Object.create({}, { x: { value:23 } });"); in TEST() 393 CompileRun("var g = 23;"); in TEST() 402 CompileRun("delete g"); in TEST() 403 CompileRun("const g = 23"); in TEST() [all …]
|
D | test-pipeline.cc | 22 *v8::Handle<v8::Function>::Cast(CompileRun(source))); in TEST()
|
D | function-tester.h | 156 *v8::Handle<v8::Function>::Cast(CompileRun(source))); in NewFunction() 161 *v8::Handle<v8::Object>::Cast(CompileRun(source))); in NewObject()
|