Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1418)

Unified Diff: test/cctest/test-javascript-a64.cc

Issue 153773002: A64: Synchronize with r16679. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-js-a64-variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-javascript-a64.cc
diff --git a/test/cctest/test-javascript-a64.cc b/test/cctest/test-javascript-a64.cc
index 1cae2ce76267a3bce45405235dc4c663446d5dcb..81e2ed92ecbf5560435a5110b1b3bdbb965e1b63 100644
--- a/test/cctest/test-javascript-a64.cc
+++ b/test/cctest/test-javascript-a64.cc
@@ -86,24 +86,24 @@ static void ExpectUndefined(Local<Value> result) {
// Tests are sorted by order of implementation.
TEST(simple_value) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun("0x271828;");
ExpectInt32(0x271828, result);
}
TEST(global_variable) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun("var my_global_var = 0x123; my_global_var;");
ExpectInt32(0x123, result);
}
TEST(simple_function_call) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function foo() { return 0x314; }"
"foo();");
@@ -112,8 +112,8 @@ TEST(simple_function_call) {
TEST(binary_op) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function foo() {"
" var a = 0x1200;"
@@ -175,8 +175,8 @@ static void if_comparison_helper(
TEST(if_comparison) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
if_comparison_helper("<", 1, 0, 0);
if_comparison_helper("<=", 1, 1, 0);
@@ -190,8 +190,8 @@ TEST(if_comparison) {
TEST(unary_plus) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result;
// SMI
result = CompileRun("var a = 1234; +a");
@@ -212,8 +212,8 @@ TEST(unary_plus) {
TEST(unary_minus) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result;
result = CompileRun("var a = 1234; -a");
ExpectInt32(-1234, result);
@@ -229,8 +229,8 @@ TEST(unary_minus) {
TEST(unary_void) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result;
result = CompileRun("var a = 1234; void (a);");
ExpectUndefined(result);
@@ -242,8 +242,8 @@ TEST(unary_void) {
TEST(unary_not) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result;
result = CompileRun("var a = 1234; !a");
ExpectBoolean(false, result);
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-js-a64-variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698