OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 86 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
87 CodeStubInterfaceDescriptor* descriptor) { | 87 CodeStubInterfaceDescriptor* descriptor) { |
88 Register registers[] = { ecx, ebx, eax }; | 88 Register registers[] = { ecx, ebx, eax }; |
89 descriptor->Initialize( | 89 descriptor->Initialize( |
90 ARRAY_SIZE(registers), registers, | 90 ARRAY_SIZE(registers), registers, |
91 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); | 91 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 void LoadFieldStub::InitializeInterfaceDescriptor( | |
96 CodeStubInterfaceDescriptor* descriptor) { | |
97 Register registers[] = { edx }; | |
98 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
99 } | |
100 | |
101 | |
102 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | |
103 CodeStubInterfaceDescriptor* descriptor) { | |
104 Register registers[] = { edx }; | |
105 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
106 } | |
107 | |
108 | |
109 void StringLengthStub::InitializeInterfaceDescriptor( | |
110 CodeStubInterfaceDescriptor* descriptor) { | |
111 Register registers[] = { edx, ecx }; | |
112 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
113 } | |
114 | |
115 | |
116 void KeyedStringLengthStub::InitializeInterfaceDescriptor( | |
117 CodeStubInterfaceDescriptor* descriptor) { | |
118 Register registers[] = { edx, ecx }; | |
119 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
120 } | |
121 | |
122 | |
123 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( | 95 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( |
124 CodeStubInterfaceDescriptor* descriptor) { | 96 CodeStubInterfaceDescriptor* descriptor) { |
125 Register registers[] = { edx, ecx, eax }; | 97 Register registers[] = { edx, ecx, eax }; |
126 descriptor->Initialize( | 98 descriptor->Initialize( |
127 ARRAY_SIZE(registers), registers, | 99 ARRAY_SIZE(registers), registers, |
128 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); | 100 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); |
129 } | 101 } |
130 | 102 |
131 | 103 |
132 void TransitionElementsKindStub::InitializeInterfaceDescriptor( | 104 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
(...skipping 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4656 Operand(ebp, 7 * kPointerSize), | 4628 Operand(ebp, 7 * kPointerSize), |
4657 NULL); | 4629 NULL); |
4658 } | 4630 } |
4659 | 4631 |
4660 | 4632 |
4661 #undef __ | 4633 #undef __ |
4662 | 4634 |
4663 } } // namespace v8::internal | 4635 } } // namespace v8::internal |
4664 | 4636 |
4665 #endif // V8_TARGET_ARCH_X87 | 4637 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |