OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/builtins/builtins.h" | 5 #include "src/builtins/builtins.h" |
6 #include "src/builtins/builtins-utils.h" | 6 #include "src/builtins/builtins-utils.h" |
7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 void Builtins::Generate_KeyedLoadIC_Megamorphic(MacroAssembler* masm) { | 13 void Builtins::Generate_KeyedLoadIC_Megamorphic(MacroAssembler* masm) { |
14 KeyedLoadIC::GenerateMegamorphic(masm); | 14 KeyedLoadIC::GenerateMegamorphic(masm); |
15 } | 15 } |
16 | 16 |
17 void Builtins::Generate_KeyedLoadIC_Megamorphic_TF( | |
18 CodeStubAssembler* assembler) { | |
19 typedef compiler::Node Node; | |
20 typedef LoadWithVectorDescriptor Descriptor; | |
21 | |
22 Node* receiver = assembler->Parameter(Descriptor::kReceiver); | |
23 Node* name = assembler->Parameter(Descriptor::kName); | |
24 Node* slot = assembler->Parameter(Descriptor::kSlot); | |
25 Node* vector = assembler->Parameter(Descriptor::kVector); | |
26 Node* context = assembler->Parameter(Descriptor::kContext); | |
27 | |
28 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); | |
29 assembler->KeyedLoadICGeneric(&p); | |
30 } | |
31 | |
32 void Builtins::Generate_KeyedLoadIC_Miss(MacroAssembler* masm) { | 17 void Builtins::Generate_KeyedLoadIC_Miss(MacroAssembler* masm) { |
33 KeyedLoadIC::GenerateMiss(masm); | 18 KeyedLoadIC::GenerateMiss(masm); |
34 } | 19 } |
35 void Builtins::Generate_KeyedLoadIC_Slow(MacroAssembler* masm) { | 20 void Builtins::Generate_KeyedLoadIC_Slow(MacroAssembler* masm) { |
36 KeyedLoadIC::GenerateRuntimeGetProperty(masm); | 21 KeyedLoadIC::GenerateRuntimeGetProperty(masm); |
37 } | 22 } |
38 | 23 |
39 void Builtins::Generate_KeyedStoreIC_Megamorphic(MacroAssembler* masm) { | 24 void Builtins::Generate_KeyedStoreIC_Megamorphic(MacroAssembler* masm) { |
40 KeyedStoreIC::GenerateMegamorphic(masm, SLOPPY); | 25 KeyedStoreIC::GenerateMegamorphic(masm, SLOPPY); |
41 } | 26 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void Builtins::Generate_StoreIC_SlowSloppy(CodeStubAssembler* assembler) { | 139 void Builtins::Generate_StoreIC_SlowSloppy(CodeStubAssembler* assembler) { |
155 Generate_StoreIC_Slow(assembler, SLOPPY); | 140 Generate_StoreIC_Slow(assembler, SLOPPY); |
156 } | 141 } |
157 | 142 |
158 void Builtins::Generate_StoreIC_SlowStrict(CodeStubAssembler* assembler) { | 143 void Builtins::Generate_StoreIC_SlowStrict(CodeStubAssembler* assembler) { |
159 Generate_StoreIC_Slow(assembler, STRICT); | 144 Generate_StoreIC_Slow(assembler, STRICT); |
160 } | 145 } |
161 | 146 |
162 } // namespace internal | 147 } // namespace internal |
163 } // namespace v8 | 148 } // namespace v8 |
OLD | NEW |