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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( | 83 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( |
84 CodeStubInterfaceDescriptor* descriptor) { | 84 CodeStubInterfaceDescriptor* descriptor) { |
85 static Register registers[] = { rbx, rdx }; | 85 static Register registers[] = { rbx, rdx }; |
86 descriptor->register_param_count_ = 2; | 86 descriptor->register_param_count_ = 2; |
87 descriptor->register_params_ = registers; | 87 descriptor->register_params_ = registers; |
88 descriptor->deoptimization_handler_ = NULL; | 88 descriptor->deoptimization_handler_ = NULL; |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( | |
93 CodeStubInterfaceDescriptor* descriptor) { | |
94 static Register registers[] = { rdx, rax }; | |
95 descriptor->register_param_count_ = 2; | |
96 descriptor->register_params_ = registers; | |
97 descriptor->deoptimization_handler_ = | |
98 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
99 } | |
100 | |
101 | |
102 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor( | |
103 CodeStubInterfaceDescriptor* descriptor) { | |
104 static Register registers[] = { rdx, rax }; | |
105 descriptor->register_param_count_ = 2; | |
106 descriptor->register_params_ = registers; | |
107 descriptor->deoptimization_handler_ = | |
108 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
109 } | |
110 | |
111 | |
112 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 92 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
113 CodeStubInterfaceDescriptor* descriptor) { | 93 CodeStubInterfaceDescriptor* descriptor) { |
114 static Register registers[] = { rcx, rbx, rax }; | 94 static Register registers[] = { rcx, rbx, rax }; |
115 descriptor->register_param_count_ = 3; | 95 descriptor->register_param_count_ = 3; |
116 descriptor->register_params_ = registers; | 96 descriptor->register_params_ = registers; |
117 descriptor->deoptimization_handler_ = | 97 descriptor->deoptimization_handler_ = |
118 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; | 98 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; |
119 } | 99 } |
120 | 100 |
121 | 101 |
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 | |
132 void LoadFieldStub::InitializeInterfaceDescriptor( | 102 void LoadFieldStub::InitializeInterfaceDescriptor( |
133 CodeStubInterfaceDescriptor* descriptor) { | 103 CodeStubInterfaceDescriptor* descriptor) { |
134 static Register registers[] = { rax }; | 104 static Register registers[] = { rax }; |
135 descriptor->register_param_count_ = 1; | 105 descriptor->register_param_count_ = 1; |
136 descriptor->register_params_ = registers; | 106 descriptor->register_params_ = registers; |
137 descriptor->deoptimization_handler_ = NULL; | 107 descriptor->deoptimization_handler_ = NULL; |
138 } | 108 } |
139 | 109 |
140 | 110 |
141 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | 111 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( |
(...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5046 return_value_operand, | 5016 return_value_operand, |
5047 NULL); | 5017 NULL); |
5048 } | 5018 } |
5049 | 5019 |
5050 | 5020 |
5051 #undef __ | 5021 #undef __ |
5052 | 5022 |
5053 } } // namespace v8::internal | 5023 } } // namespace v8::internal |
5054 | 5024 |
5055 #endif // V8_TARGET_ARCH_X64 | 5025 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |