| 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_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "v8.h" | 8 #include "v8.h" |
| 9 | 9 |
| 10 #include "allocation.h" | 10 #include "allocation.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 case NO_REGISTERS: return "NO_REGISTERS"; | 92 case NO_REGISTERS: return "NO_REGISTERS"; |
| 93 case TOS_REG: return "TOS_REG"; | 93 case TOS_REG: return "TOS_REG"; |
| 94 } | 94 } |
| 95 UNREACHABLE(); | 95 UNREACHABLE(); |
| 96 return NULL; | 96 return NULL; |
| 97 } | 97 } |
| 98 | 98 |
| 99 static const int kMaxBackEdgeWeight = 127; | 99 static const int kMaxBackEdgeWeight = 127; |
| 100 | 100 |
| 101 // Platform-specific code size multiplier. | 101 // Platform-specific code size multiplier. |
| 102 #if V8_TARGET_ARCH_IA32 | 102 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
| 103 static const int kCodeSizeMultiplier = 105; | 103 static const int kCodeSizeMultiplier = 105; |
| 104 static const int kBootCodeSizeMultiplier = 100; | 104 static const int kBootCodeSizeMultiplier = 100; |
| 105 #elif V8_TARGET_ARCH_X64 | 105 #elif V8_TARGET_ARCH_X64 |
| 106 static const int kCodeSizeMultiplier = 170; | 106 static const int kCodeSizeMultiplier = 170; |
| 107 static const int kBootCodeSizeMultiplier = 140; | 107 static const int kBootCodeSizeMultiplier = 140; |
| 108 #elif V8_TARGET_ARCH_ARM | 108 #elif V8_TARGET_ARCH_ARM |
| 109 static const int kCodeSizeMultiplier = 149; | 109 static const int kCodeSizeMultiplier = 149; |
| 110 static const int kBootCodeSizeMultiplier = 110; | 110 static const int kBootCodeSizeMultiplier = 110; |
| 111 #elif V8_TARGET_ARCH_ARM64 | 111 #elif V8_TARGET_ARCH_ARM64 |
| 112 // TODO(all): Copied ARM value. Check this is sensible for ARM64. | 112 // TODO(all): Copied ARM value. Check this is sensible for ARM64. |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 | 938 |
| 939 Address start_; | 939 Address start_; |
| 940 Address instruction_start_; | 940 Address instruction_start_; |
| 941 uint32_t length_; | 941 uint32_t length_; |
| 942 }; | 942 }; |
| 943 | 943 |
| 944 | 944 |
| 945 } } // namespace v8::internal | 945 } } // namespace v8::internal |
| 946 | 946 |
| 947 #endif // V8_FULL_CODEGEN_H_ | 947 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |