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

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

Issue 2670863003: [stubs] Port KeyedStoreIC_Slow/Miss and StoreSlowElementStub to TF. (Closed)
Patch Set: Created 3 years, 10 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/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 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-utils.h" 5 #include "src/builtins/builtins-utils.h"
6 #include "src/builtins/builtins.h" 6 #include "src/builtins/builtins.h"
7 #include "src/code-stub-assembler.h" 7 #include "src/code-stub-assembler.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/keyed-store-generic.h" 10 #include "src/ic/keyed-store-generic.h"
(...skipping 27 matching lines...) Expand all
38 void Builtins::Generate_KeyedStoreIC_Megamorphic( 38 void Builtins::Generate_KeyedStoreIC_Megamorphic(
39 compiler::CodeAssemblerState* state) { 39 compiler::CodeAssemblerState* state) {
40 KeyedStoreGenericGenerator::Generate(state, SLOPPY); 40 KeyedStoreGenericGenerator::Generate(state, SLOPPY);
41 } 41 }
42 42
43 void Builtins::Generate_KeyedStoreIC_Megamorphic_Strict( 43 void Builtins::Generate_KeyedStoreIC_Megamorphic_Strict(
44 compiler::CodeAssemblerState* state) { 44 compiler::CodeAssemblerState* state) {
45 KeyedStoreGenericGenerator::Generate(state, STRICT); 45 KeyedStoreGenericGenerator::Generate(state, STRICT);
46 } 46 }
47 47
48 void Builtins::Generate_KeyedStoreIC_Miss(MacroAssembler* masm) { 48 TF_BUILTIN(KeyedStoreIC_Miss, CodeStubAssembler) {
49 KeyedStoreIC::GenerateMiss(masm); 49 typedef StoreWithVectorDescriptor Descriptor;
50
51 Node* receiver = Parameter(Descriptor::kReceiver);
52 Node* name = Parameter(Descriptor::kName);
53 Node* value = Parameter(Descriptor::kValue);
54 Node* slot = Parameter(Descriptor::kSlot);
55 Node* vector = Parameter(Descriptor::kVector);
56 Node* context = Parameter(Descriptor::kContext);
57
58 TailCallRuntime(Runtime::kKeyedStoreIC_Miss, context, value, slot, vector,
59 receiver, name);
50 } 60 }
51 61
52 void Builtins::Generate_KeyedStoreIC_Slow(MacroAssembler* masm) { 62 TF_BUILTIN(KeyedStoreIC_Slow, CodeStubAssembler) {
53 KeyedStoreIC::GenerateSlow(masm); 63 typedef StoreWithVectorDescriptor Descriptor;
64
65 Node* receiver = Parameter(Descriptor::kReceiver);
66 Node* name = Parameter(Descriptor::kName);
67 Node* value = Parameter(Descriptor::kValue);
68 Node* slot = Parameter(Descriptor::kSlot);
69 Node* vector = Parameter(Descriptor::kVector);
70 Node* context = Parameter(Descriptor::kContext);
71
72 // The slow case calls into the runtime to complete the store without causing
73 // an IC miss that would otherwise cause a transition to the generic stub.
74 TailCallRuntime(Runtime::kKeyedStoreIC_Slow, context, value, slot, vector,
75 receiver, name);
54 } 76 }
55 77
56 TF_BUILTIN(LoadGlobalIC_Miss, CodeStubAssembler) { 78 TF_BUILTIN(LoadGlobalIC_Miss, CodeStubAssembler) {
57 typedef LoadGlobalWithVectorDescriptor Descriptor; 79 typedef LoadGlobalWithVectorDescriptor Descriptor;
58 80
59 Node* name = Parameter(Descriptor::kName); 81 Node* name = Parameter(Descriptor::kName);
60 Node* slot = Parameter(Descriptor::kSlot); 82 Node* slot = Parameter(Descriptor::kSlot);
61 Node* vector = Parameter(Descriptor::kVector); 83 Node* vector = Parameter(Descriptor::kVector);
62 Node* context = Parameter(Descriptor::kContext); 84 Node* context = Parameter(Descriptor::kContext);
63 85
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 Generate_StoreIC_Slow(state, SLOPPY); 237 Generate_StoreIC_Slow(state, SLOPPY);
216 } 238 }
217 239
218 void Builtins::Generate_StoreIC_SlowStrict( 240 void Builtins::Generate_StoreIC_SlowStrict(
219 compiler::CodeAssemblerState* state) { 241 compiler::CodeAssemblerState* state) {
220 Generate_StoreIC_Slow(state, STRICT); 242 Generate_StoreIC_Slow(state, STRICT);
221 } 243 }
222 244
223 } // namespace internal 245 } // namespace internal
224 } // namespace v8 246 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698