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

Unified Diff: src/api.cc

Issue 12254007: Make the Isolate parameter mandatory for internal HandleScopes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 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 | « src/accessors.cc ('k') | src/bootstrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 305fbfb5c85ec863960a0beb2e65b27d62ed9010..5d4911bb5ade1070e44ca83fc47a700fd45cce98 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4560,7 +4560,6 @@ Persistent<Context> v8::Context::New(
// Create the environment.
env = isolate->bootstrapper()->CreateEnvironment(
- isolate,
Utils::OpenHandle(*global_object, true),
proxy_template,
extensions);
@@ -6558,8 +6557,10 @@ void Testing::PrepareStressRun(int run) {
}
+// TODO(svenpanne) Deprecate this.
void Testing::DeoptimizeAll() {
- i::HandleScope scope;
+ i::Isolate* isolate = i::Isolate::Current();
+ i::HandleScope scope(isolate);
internal::Deoptimizer::DeoptimizeAll();
}
« no previous file with comments | « src/accessors.cc ('k') | src/bootstrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698