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

Side by Side Diff: src/code-factory.cc

Issue 1489413006: Revert of Provide call counts for constructor calls, surface them as a vector IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // static 68 // static
69 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, 69 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc,
70 ConvertReceiverMode mode) { 70 ConvertReceiverMode mode) {
71 return Callable( 71 return Callable(
72 CallIC::initialize_stub_in_optimized_code(isolate, argc, mode), 72 CallIC::initialize_stub_in_optimized_code(isolate, argc, mode),
73 CallFunctionWithFeedbackAndVectorDescriptor(isolate)); 73 CallFunctionWithFeedbackAndVectorDescriptor(isolate));
74 } 74 }
75 75
76 76
77 // static 77 // static
78 Callable CodeFactory::ConstructIC(Isolate* isolate) {
79 ConstructICStub stub(isolate);
80 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
81 }
82
83
84 // static
85 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { 78 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) {
86 return Callable( 79 return Callable(
87 StoreIC::initialize_stub(isolate, language_mode, UNINITIALIZED), 80 StoreIC::initialize_stub(isolate, language_mode, UNINITIALIZED),
88 VectorStoreICTrampolineDescriptor(isolate)); 81 VectorStoreICTrampolineDescriptor(isolate));
89 } 82 }
90 83
91 84
92 // static 85 // static
93 Callable CodeFactory::StoreICInOptimizedCode( 86 Callable CodeFactory::StoreICInOptimizedCode(
94 Isolate* isolate, LanguageMode language_mode, 87 Isolate* isolate, LanguageMode language_mode,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { 336 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) {
344 // TODO(rmcilroy): Deal with runtime functions that return two values. 337 // TODO(rmcilroy): Deal with runtime functions that return two values.
345 // Note: If we ever use fpregs in the interpreter then we will need to 338 // Note: If we ever use fpregs in the interpreter then we will need to
346 // save fpregs too. 339 // save fpregs too.
347 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); 340 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister);
348 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 341 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
349 } 342 }
350 343
351 } // namespace internal 344 } // namespace internal
352 } // namespace v8 345 } // namespace v8
OLDNEW
« 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