OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ | 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ |
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ | 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return GetParameterRepresentation(index + 1); | 156 return GetParameterRepresentation(index + 1); |
157 } | 157 } |
158 | 158 |
159 // Some platforms have extra information to associate with the descriptor. | 159 // Some platforms have extra information to associate with the descriptor. |
160 PlatformInterfaceDescriptor* platform_specific_descriptor() const { | 160 PlatformInterfaceDescriptor* platform_specific_descriptor() const { |
161 return data()->platform_specific_descriptor(); | 161 return data()->platform_specific_descriptor(); |
162 } | 162 } |
163 | 163 |
164 static const Register ContextRegister(); | 164 static const Register ContextRegister(); |
165 | 165 |
166 const char* DebugName(Isolate* isolate); | 166 const char* DebugName(Isolate* isolate) const; |
167 | 167 |
168 protected: | 168 protected: |
169 const CallInterfaceDescriptorData* data() const { return data_; } | 169 const CallInterfaceDescriptorData* data() const { return data_; } |
170 | 170 |
171 private: | 171 private: |
172 const CallInterfaceDescriptorData* data_; | 172 const CallInterfaceDescriptorData* data_; |
173 }; | 173 }; |
174 | 174 |
175 | 175 |
176 #define DECLARE_DESCRIPTOR(name, base) \ | 176 #define DECLARE_DESCRIPTOR(name, base) \ |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } // namespace v8::internal | 494 } // namespace v8::internal |
495 | 495 |
496 | 496 |
497 #if V8_TARGET_ARCH_ARM64 | 497 #if V8_TARGET_ARCH_ARM64 |
498 #include "src/arm64/interface-descriptors-arm64.h" | 498 #include "src/arm64/interface-descriptors-arm64.h" |
499 #elif V8_TARGET_ARCH_ARM | 499 #elif V8_TARGET_ARCH_ARM |
500 #include "src/arm/interface-descriptors-arm.h" | 500 #include "src/arm/interface-descriptors-arm.h" |
501 #endif | 501 #endif |
502 | 502 |
503 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 503 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |