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

Side by Side Diff: src/builtins/builtins-handler.cc

Issue 2313683002: Reland of [stubs] Port KeyedLoadIC_Generic stub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 3 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 | « src/builtins/builtins.h ('k') | src/builtins/builtins-sharedarraybuffer.cc » ('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 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
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
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-sharedarraybuffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698