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

Unified Diff: tools/parser-shell.cc

Issue 1123203003: Remove unnecessary call to Isolate::Current in parser-shell (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/parser-shell.cc
diff --git a/tools/parser-shell.cc b/tools/parser-shell.cc
index 7e33d8c568cc2afbf07d715575cbaa8291928f54..8abe768a36bbb0f778f9f99394ea99bd23844cfc 100644
--- a/tools/parser-shell.cc
+++ b/tools/parser-shell.cc
@@ -93,8 +93,9 @@ std::pair<v8::base::TimeDelta, v8::base::TimeDelta> RunBaselineParser(
}
}
v8::base::TimeDelta parse_time1, parse_time2;
- Handle<Script> script = Isolate::Current()->factory()->NewScript(
- v8::Utils::OpenHandle(*source_handle));
+ Handle<Script> script =
+ reinterpret_cast<i::Isolate*>(isolate)->factory()->NewScript(
+ v8::Utils::OpenHandle(*source_handle));
i::ScriptData* cached_data_impl = NULL;
// First round of parsing (produce data to cache).
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698