OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 112 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
113 CodeStubInterfaceDescriptor* descriptor) { | 113 CodeStubInterfaceDescriptor* descriptor) { |
114 static Register registers[] = { rcx, rbx, rax }; | 114 static Register registers[] = { rcx, rbx, rax }; |
115 descriptor->register_param_count_ = 3; | 115 descriptor->register_param_count_ = 3; |
116 descriptor->register_params_ = registers; | 116 descriptor->register_params_ = registers; |
117 descriptor->deoptimization_handler_ = | 117 descriptor->deoptimization_handler_ = |
118 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; | 118 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; |
119 } | 119 } |
120 | 120 |
121 | 121 |
| 122 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( |
| 123 CodeStubInterfaceDescriptor* descriptor) { |
| 124 static Register registers[] = { rdx, rax }; |
| 125 descriptor->register_param_count_ = 2; |
| 126 descriptor->register_params_ = registers; |
| 127 descriptor->deoptimization_handler_ = |
| 128 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry; |
| 129 } |
| 130 |
| 131 |
122 void LoadFieldStub::InitializeInterfaceDescriptor( | 132 void LoadFieldStub::InitializeInterfaceDescriptor( |
123 CodeStubInterfaceDescriptor* descriptor) { | 133 CodeStubInterfaceDescriptor* descriptor) { |
124 static Register registers[] = { rax }; | 134 static Register registers[] = { rax }; |
125 descriptor->register_param_count_ = 1; | 135 descriptor->register_param_count_ = 1; |
126 descriptor->register_params_ = registers; | 136 descriptor->register_params_ = registers; |
127 descriptor->deoptimization_handler_ = NULL; | 137 descriptor->deoptimization_handler_ = NULL; |
128 } | 138 } |
129 | 139 |
130 | 140 |
131 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | 141 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( |
(...skipping 4936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5068 return_value_operand, | 5078 return_value_operand, |
5069 NULL); | 5079 NULL); |
5070 } | 5080 } |
5071 | 5081 |
5072 | 5082 |
5073 #undef __ | 5083 #undef __ |
5074 | 5084 |
5075 } } // namespace v8::internal | 5085 } } // namespace v8::internal |
5076 | 5086 |
5077 #endif // V8_TARGET_ARCH_X64 | 5087 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |