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

Unified Diff: src/code-factory.cc

Issue 1436493002: [builtins] Introduce specialized Call/CallFunction builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-factory.h ('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 44fa32b394bbcea518f72c0157856fbd4240999d..ad6890bf2295ffcd64f38f110267a63571142a47 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -58,16 +58,19 @@ Callable CodeFactory::KeyedLoadICInOptimizedCode(
// static
-Callable CodeFactory::CallIC(Isolate* isolate, int argc) {
- return Callable(CallIC::initialize_stub(isolate, argc),
+Callable CodeFactory::CallIC(Isolate* isolate, int argc,
+ ConvertReceiverMode mode) {
+ return Callable(CallIC::initialize_stub(isolate, argc, mode),
CallFunctionWithFeedbackDescriptor(isolate));
}
// static
-Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc) {
- return Callable(CallIC::initialize_stub_in_optimized_code(isolate, argc),
- CallFunctionWithFeedbackAndVectorDescriptor(isolate));
+Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc,
+ ConvertReceiverMode mode) {
+ return Callable(
+ CallIC::initialize_stub_in_optimized_code(isolate, argc, mode),
+ CallFunctionWithFeedbackAndVectorDescriptor(isolate));
}
@@ -292,15 +295,15 @@ Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) {
// static
-Callable CodeFactory::Call(Isolate* isolate) {
- return Callable(isolate->builtins()->Call(),
+Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode) {
+ return Callable(isolate->builtins()->Call(mode),
CallTrampolineDescriptor(isolate));
}
// static
-Callable CodeFactory::CallFunction(Isolate* isolate) {
- return Callable(isolate->builtins()->CallFunction(),
+Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode) {
+ return Callable(isolate->builtins()->CallFunction(mode),
CallTrampolineDescriptor(isolate));
}
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698