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

Unified Diff: src/code-factory.cc

Issue 2604833004: [builtins] FastNewFunctionContextStub becomes a builtin (Closed)
Patch Set: REBASE. Created 4 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/builtins/builtins-constructor.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 7d48cb15e221e16cac4cae154da3de008e4c4f65..634f91e9b8c9975aa908b2ffe22abb4d903182b9 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -359,8 +359,8 @@ Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
// static
Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
ScopeType scope_type) {
- FastNewFunctionContextStub stub(isolate, scope_type);
- return make_callable(stub);
+ return Callable(isolate->builtins()->NewFunctionContext(scope_type),
+ FastNewFunctionContextDescriptor(isolate));
}
// static
« no previous file with comments | « src/builtins/builtins-constructor.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698