Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
77 static void ExpectString(const char* code, const char* expected) {
78 Local<Value> result = CompileRun(code);
85 static void ExpectBoolean(const char* code, bool expected) {
86 Local<Value> result = CompileRun(code);
92 static void ExpectTrue(const char* code) {
93 ExpectBoolean(code, true);
97 static void ExpectFalse(const char* code) {
98 ExpectBoolean(code, false);
102 static void ExpectObject(const char* code, Local<Value> expected) {
103 Local<Value> result = CompileRun(code);
108 static void ExpectUndefined(const char* code) {
109 Local<Value> result = CompileRun(code);
977 // The code will not be run in that case, due to the "if" guard.
1231 const char* code = "var str = 'oddle'; obj[str] + obj.poddle;";
1232 v8::Handle<Value> str = CompileRun(code);
1644 // code is based on the address.
1652 // objects should not be assigned the same hash code. If the test below fails
3321 // code). Then force object with a named interceptor into slow-case,
3494 const char* code =
3505 ExpectString(code, "PASSED");
3519 const char* code =
3529 ExpectString(code, "PASSED");
3543 const char* code =
3559 ExpectString(code, "PASSED");
3572 const char* code =
3582 ExpectString(code, "PASSED");
3595 const char* code =
3621 ExpectString(code, "PASSED");
3634 const char* code =
3650 ExpectString(code, "PASSED");
3663 const char* code =
3680 ExpectString(code, "PASSED");
3693 const char* code =
3710 ExpectString(code, "PASSED");
3723 const char* code =
3734 ExpectString(code, "PASSED");
4386 const char* code =
4395 v8::Handle<Value> result = CompileRun(code);
5273 // to make sure to exercise the IC code.
5285 // that. Repeat in a loop to make sure to exercise the IC code.
5621 // Add an accessor accessible by cross-domain JS code.
5628 // Add an accessor that is not accessible by cross-domain JS code.
5873 // Add an accessor that is not accessible by cross-domain JS code.
6029 // Add an accessor to proto that's accessible by cross-domain JS code.
6035 // Add an accessor that is not accessible by cross-domain JS code.
6482 // CallIC_Miss code path that can't cope with global proxy.
6857 // when evaluting code.
6864 // code.
8664 // external code.
9035 const char* code = "throw 7;";
9041 v8::Handle<Value> value = CompileRun(code);
9058 const char* code = "throw 7;";
9062 v8::Handle<Value> value = CompileRun(code);
9995 // arise because we share code between contexts via the compilation
10891 // See http://code.google.com/p/v8/issues/detail?id=398
11113 // http://code.google.com/p/chromium/issues/detail?id=26337.
11773 // The goal of the code below is to make "offset" large enough
12499 // Create a context used to keep the code from aging in the compilation
12730 // This compile will add the code to the compilation cache.
12749 // This compile will get the code from the compilation cache.
12821 const char* code =
12836 ExpectString(code, "PASSED");
12848 const char* code =
12860 ExpectString(code, "PASSED");
12870 const char* code =
12885 ExpectString(code, "PASSED");
12895 const char* code =
12910 ExpectString(code, "PASSED");
12920 const char* code =
12928 ExpectString(code, "PASSED");
13141 // Run some V8 code to trigger default isolate to become 'current'.
13317 i::ScopedVector<char> code(1024);
13318 i::OS::SNPrintF(code, "function fib(n) {"
13323 Local<Value> value = CompileRun(code.start());
13468 const char* code =
13472 // Run the code twice in the first context to initialize the call IC.
13475 ExpectString(code, "a");
13476 ExpectString(code, "a");
13485 ExpectString(code, "not a");
13491 const char* code =
13495 // Run the code twice in the first context to initialize the call IC.
13498 ExpectString(code, "42");
13499 ExpectString(code, "42");
13508 ExpectString(code, "not 42");
13514 const char* code =
13518 // Run the code twice in the first context to initialize the call IC.
13521 ExpectString(code, "true");
13522 ExpectString(code, "true");
13531 ExpectString(code, "");
13541 // Run the code twice in the first context to initialize the load
13580 // Run the code twice to initialize the load IC for a don't delete
13590 // Delete the cell using the API and check the inlined code works
13608 // Run the code twice to initialize the load IC for a don't delete
13618 // Delete the cell using the API and check the inlined code works
13636 // Check inline load code for a don't delete cell is cleared during
13650 // Hold the code object in the second context.
13655 // Check inline load code for a deletable cell is cleared during GC.
13667 // Hold the code object in the second context.