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

Unified Diff: src/code-stubs.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.h ('k') | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 895569d41357ca34acea2c232dc406044a8cd64d..fa133068c24145076e7c09d4995c11a82e9104da 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -971,4 +971,20 @@ InternalArrayConstructorStub::InternalArrayConstructorStub(
}
+JSApiFunctionStub::JSApiFunctionStub(Isolate* isolate,
+ Handle<FunctionTemplateInfo> info)
+ : PlatformCodeStub(isolate) {
+ // TODO(dcarney): CHECK if these properties are changes after first
+ // instantiation.
+ bool has_call_code = !info->call_code()->IsUndefined();
+ bool call_data_undefined = true;
+ bool has_signature = !info->signature()->IsUndefined();
+ if (has_call_code) {
+ auto handler = handle(CallHandlerInfo::cast(info->call_code()));
+ call_data_undefined = handler->data()->IsUndefined();
+ }
+ minor_key_ = CallDataUndefinedBits::encode(call_data_undefined) |
+ HasCallCodeBits::encode(has_call_code) |
+ HasSignatureBits::encode(has_signature);
+}
} } // namespace v8::internal
« no previous file with comments | « src/code-stubs.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698