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

Unified Diff: src/execution.cc

Issue 8044029: In Invoke get JSEntryStub and JSConstructEntryStub directly through roots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index aa154df179b762863abbc7eaa973296d413772ed..c1cb04380475c416384e92c06cdc96dbaa2051ce 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -88,11 +88,9 @@ static Handle<Object> Invoke(bool construct,
Handle<Code> code;
if (construct) {
- JSConstructEntryStub stub;
- code = stub.GetCode();
+ code = isolate->factory()->js_construct_entry_code();
} else {
- JSEntryStub stub;
- code = stub.GetCode();
+ code = isolate->factory()->js_entry_code();
}
// Convert calls on global objects to be calls on the global
« 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