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

Unified Diff: src/factory.cc

Issue 847913005: move HandleApiCall builtin to assembly (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 11 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/code-stubs.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index aabfc7302963912cbd71f341c9438a8e849a8370..a20ce5f84c7ba7ea214f18d845c6dac8f33c2115 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -6,6 +6,7 @@
#include "src/allocation-site-scopes.h"
#include "src/base/bits.h"
+#include "src/code-stubs.h"
#include "src/conversions.h"
#include "src/isolate-inl.h"
#include "src/macro-assembler.h"
@@ -2240,7 +2241,11 @@ Handle<JSFunction> Factory::CreateApiFunction(
Handle<FunctionTemplateInfo> obj,
Handle<Object> prototype,
ApiInstanceType instance_type) {
- Handle<Code> code = isolate()->builtins()->HandleApiCall();
+ Handle<Code> code;
+ {
+ JSApiFunctionStub stub(isolate(), obj);
+ code = stub.GetCode();
+ }
Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi();
Handle<JSFunction> result;
« no previous file with comments | « src/code-stubs.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698