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 |
17 void Builtins::Generate_KeyedLoadIC_Miss(MacroAssembler* masm) { | 32 void Builtins::Generate_KeyedLoadIC_Miss(MacroAssembler* masm) { |
18 KeyedLoadIC::GenerateMiss(masm); | 33 KeyedLoadIC::GenerateMiss(masm); |
19 } | 34 } |
20 void Builtins::Generate_KeyedLoadIC_Slow(MacroAssembler* masm) { | 35 void Builtins::Generate_KeyedLoadIC_Slow(MacroAssembler* masm) { |
21 KeyedLoadIC::GenerateRuntimeGetProperty(masm); | 36 KeyedLoadIC::GenerateRuntimeGetProperty(masm); |
22 } | 37 } |
23 | 38 |
24 void Builtins::Generate_KeyedStoreIC_Megamorphic(MacroAssembler* masm) { | 39 void Builtins::Generate_KeyedStoreIC_Megamorphic(MacroAssembler* masm) { |
25 KeyedStoreIC::GenerateMegamorphic(masm, SLOPPY); | 40 KeyedStoreIC::GenerateMegamorphic(masm, SLOPPY); |
26 } | 41 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void Builtins::Generate_StoreIC_SlowSloppy(CodeStubAssembler* assembler) { | 154 void Builtins::Generate_StoreIC_SlowSloppy(CodeStubAssembler* assembler) { |
140 Generate_StoreIC_Slow(assembler, SLOPPY); | 155 Generate_StoreIC_Slow(assembler, SLOPPY); |
141 } | 156 } |
142 | 157 |
143 void Builtins::Generate_StoreIC_SlowStrict(CodeStubAssembler* assembler) { | 158 void Builtins::Generate_StoreIC_SlowStrict(CodeStubAssembler* assembler) { |
144 Generate_StoreIC_Slow(assembler, STRICT); | 159 Generate_StoreIC_Slow(assembler, STRICT); |
145 } | 160 } |
146 | 161 |
147 } // namespace internal | 162 } // namespace internal |
148 } // namespace v8 | 163 } // namespace v8 |
OLD | NEW |