| 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 #ifndef V8_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
| 6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 DCHECK(!stack_parameter_count_.is_valid()); | 424 DCHECK(!stack_parameter_count_.is_valid()); |
| 425 } | 425 } |
| 426 | 426 |
| 427 void set_call_descriptor(CallInterfaceDescriptor d) { call_descriptor_ = d; } | 427 void set_call_descriptor(CallInterfaceDescriptor d) { call_descriptor_ = d; } |
| 428 CallInterfaceDescriptor call_descriptor() const { return call_descriptor_; } | 428 CallInterfaceDescriptor call_descriptor() const { return call_descriptor_; } |
| 429 | 429 |
| 430 int GetEnvironmentParameterCount() const { | 430 int GetEnvironmentParameterCount() const { |
| 431 return call_descriptor().GetEnvironmentParameterCount(); | 431 return call_descriptor().GetEnvironmentParameterCount(); |
| 432 } | 432 } |
| 433 | 433 |
| 434 Representation GetEnvironmentParameterRepresentation(int index) const { | 434 Type* GetEnvironmentParameterType(int index) const { |
| 435 return call_descriptor().GetEnvironmentParameterRepresentation(index); | 435 return call_descriptor().GetEnvironmentParameterType(index); |
| 436 } | 436 } |
| 437 | 437 |
| 438 ExternalReference miss_handler() const { | 438 ExternalReference miss_handler() const { |
| 439 DCHECK(has_miss_handler_); | 439 DCHECK(has_miss_handler_); |
| 440 return miss_handler_; | 440 return miss_handler_; |
| 441 } | 441 } |
| 442 | 442 |
| 443 bool has_miss_handler() const { | 443 bool has_miss_handler() const { |
| 444 return has_miss_handler_; | 444 return has_miss_handler_; |
| 445 } | 445 } |
| (...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2966 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); | 2966 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); |
| 2967 }; | 2967 }; |
| 2968 | 2968 |
| 2969 | 2969 |
| 2970 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2970 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
| 2971 #undef DEFINE_PLATFORM_CODE_STUB | 2971 #undef DEFINE_PLATFORM_CODE_STUB |
| 2972 #undef DEFINE_HANDLER_CODE_STUB | 2972 #undef DEFINE_HANDLER_CODE_STUB |
| 2973 #undef DEFINE_HYDROGEN_CODE_STUB | 2973 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2974 #undef DEFINE_CODE_STUB | 2974 #undef DEFINE_CODE_STUB |
| 2975 #undef DEFINE_CODE_STUB_BASE | 2975 #undef DEFINE_CODE_STUB_BASE |
| 2976 |
| 2977 extern Representation RepresentationFromType(Type* type); |
| 2976 } } // namespace v8::internal | 2978 } } // namespace v8::internal |
| 2977 | 2979 |
| 2978 #endif // V8_CODE_STUBS_H_ | 2980 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |