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

Side by Side Diff: src/ic/x64/ic-x64.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/ic/s390/ic-s390.cc ('k') | src/ic/x87/ic-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // ----------------------------------------------------------------------------
16 // Static IC stub generators.
17 //
18
19 #define __ ACCESS_MASM(masm)
20
21 static void StoreIC_PushArgs(MacroAssembler* masm) {
22 Register receiver = StoreWithVectorDescriptor::ReceiverRegister();
23 Register name = StoreWithVectorDescriptor::NameRegister();
24 Register value = StoreWithVectorDescriptor::ValueRegister();
25 Register slot = StoreWithVectorDescriptor::SlotRegister();
26 Register vector = StoreWithVectorDescriptor::VectorRegister();
27 Register temp = r11;
28 DCHECK(!AreAliased(receiver, name, value, slot, vector, temp));
29
30 __ PopReturnAddressTo(temp);
31 __ Push(value);
32 __ Push(slot);
33 __ Push(vector);
34 __ Push(receiver);
35 __ Push(name);
36 __ PushReturnAddressFrom(temp);
37 }
38
39 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
40 // Return address is on the stack.
41 StoreIC_PushArgs(masm);
42
43 // Do tail-call to runtime routine.
44 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss);
45 }
46
47 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
48 // Return address is on the stack.
49 StoreIC_PushArgs(masm);
50
51 // Do tail-call to runtime routine.
52 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
53 }
54
55 #undef __
56
57 15
58 Condition CompareIC::ComputeCondition(Token::Value op) { 16 Condition CompareIC::ComputeCondition(Token::Value op) {
59 switch (op) { 17 switch (op) {
60 case Token::EQ_STRICT: 18 case Token::EQ_STRICT:
61 case Token::EQ: 19 case Token::EQ:
62 return equal; 20 return equal;
63 case Token::LT: 21 case Token::LT:
64 return less; 22 return less;
65 case Token::GT: 23 case Token::GT:
66 return greater; 24 return greater;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 Condition cc = 79 Condition cc =
122 (check == ENABLE_INLINED_SMI_CHECK) 80 (check == ENABLE_INLINED_SMI_CHECK)
123 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 81 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
124 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 82 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
125 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 83 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
126 } 84 }
127 } // namespace internal 85 } // namespace internal
128 } // namespace v8 86 } // namespace v8
129 87
130 #endif // V8_TARGET_ARCH_X64 88 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/s390/ic-s390.cc ('k') | src/ic/x87/ic-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698