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

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

Issue 2182103002: [KeyedLoadIC] Support Smi "handlers" for simple field loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: preparatory refactoring Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/code-stub-assembler.h » ('j') | src/code-stub-assembler.cc » ('J')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // static 50 // static
51 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { 51 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
52 KeyedLoadICTrampolineStub stub(isolate); 52 KeyedLoadICTrampolineStub stub(isolate);
53 return Callable(stub.GetCode(), LoadDescriptor(isolate)); 53 return Callable(stub.GetCode(), LoadDescriptor(isolate));
54 } 54 }
55 55
56 56
57 // static 57 // static
58 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { 58 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
59 auto code = 59 auto code = KeyedLoadIC::initialize_stub_in_optimized_code(isolate);
60 KeyedLoadIC::initialize_stub_in_optimized_code(isolate, kNoExtraICState);
61 return Callable(code, LoadWithVectorDescriptor(isolate)); 60 return Callable(code, LoadWithVectorDescriptor(isolate));
62 } 61 }
63 62
64 63
65 // static 64 // static
66 Callable CodeFactory::CallIC(Isolate* isolate, int argc, 65 Callable CodeFactory::CallIC(Isolate* isolate, int argc,
67 ConvertReceiverMode mode, 66 ConvertReceiverMode mode,
68 TailCallMode tail_call_mode) { 67 TailCallMode tail_call_mode) {
69 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode)); 68 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode));
70 return Callable(stub.GetCode(), CallFunctionWithFeedbackDescriptor(isolate)); 69 return Callable(stub.GetCode(), CallFunctionWithFeedbackDescriptor(isolate));
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 // static 595 // static
597 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 596 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
598 // Note: If we ever use fpregs in the interpreter then we will need to 597 // Note: If we ever use fpregs in the interpreter then we will need to
599 // save fpregs too. 598 // save fpregs too.
600 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 599 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
601 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 600 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
602 } 601 }
603 602
604 } // namespace internal 603 } // namespace internal
605 } // namespace v8 604 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.h » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698