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

Unified Diff: test/cctest/cctest.h

Issue 108783007: Reland r18383: More API cleanup. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | « src/extensions/statistics-extension.cc ('k') | test/cctest/profiler-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.h
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index 40e9b9a23454d34f7724dc0d5fd97fcaabb4810f..7b44a98fba1f2a5aae26ba156de30fb26adbf3dd 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -289,7 +289,7 @@ class LocalContext {
};
static inline v8::Local<v8::Value> v8_num(double x) {
- return v8::Number::New(x);
+ return v8::Number::New(v8::Isolate::GetCurrent(), x);
}
@@ -317,8 +317,8 @@ static inline v8::Local<v8::Value> CompileRunWithOrigin(const char* source,
int column_number) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::ScriptOrigin origin(v8::String::NewFromUtf8(isolate, origin_url),
- v8::Integer::New(line_number),
- v8::Integer::New(column_number));
+ v8::Integer::New(isolate, line_number),
+ v8::Integer::New(isolate, column_number));
return v8::Script::Compile(v8::String::NewFromUtf8(isolate, source), &origin)
->Run();
}
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | test/cctest/profiler-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698