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

Unified Diff: src/code-factory.cc

Issue 2604833004: [builtins] FastNewFunctionContextStub becomes a builtin (Closed)
Patch Set: That was unnecessary, reverted :) 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
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 12eb8ac19ffc7c54a6f798f7c82803bede3429f4..5f75ad3c450723ad573bd08fcf85a166a898a938 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -371,8 +371,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

Powered by Google App Engine
This is Rietveld 408576698