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

Unified Diff: test/cctest/test-js-a64-variables.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-javascript-a64.cc ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-js-a64-variables.cc
diff --git a/test/cctest/test-js-a64-variables.cc b/test/cctest/test-js-a64-variables.cc
index 670b5cdfe1b94f9b3e61621922bd141626d4083f..df3f4a8295bf4ed79b3bd5c48159cb94dbb51e29 100644
--- a/test/cctest/test-js-a64-variables.cc
+++ b/test/cctest/test-js-a64-variables.cc
@@ -70,8 +70,8 @@ static void ExpectInt32(int32_t expected, Local<Value> result) {
// Global variables.
TEST(global_variables) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"var x = 0;"
"function f0() { return x; }"
@@ -82,8 +82,8 @@ TEST(global_variables) {
// Parameters.
TEST(parameters) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function f1(x) { return x; }"
"f1(1);");
@@ -93,8 +93,8 @@ TEST(parameters) {
// Stack-allocated locals.
TEST(stack_allocated_locals) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function f2() { var x = 2; return x; }"
"f2();");
@@ -104,8 +104,8 @@ TEST(stack_allocated_locals) {
// Context-allocated locals. Local function forces x into f3's context.
TEST(context_allocated_locals) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function f3(x) {"
" function g() { return x; }"
@@ -118,8 +118,8 @@ TEST(context_allocated_locals) {
// Local function reads x from an outer context.
TEST(read_from_outer_context) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function f4(x) {"
" function g() { return x; }"
@@ -132,8 +132,8 @@ TEST(read_from_outer_context) {
// Local function reads x from an outer context.
TEST(lookup_slots) {
- v8::HandleScope scope;
LocalContext env;
+ v8::HandleScope scope(env->GetIsolate());
Local<Value> result = CompileRun(
"function f5(x) {"
" with ({}) return x;"
« no previous file with comments | « test/cctest/test-javascript-a64.cc ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698