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 "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 UNREACHABLE(); | 96 UNREACHABLE(); |
97 return NULL; | 97 return NULL; |
98 } | 98 } |
99 | 99 |
100 static const int kMaxBackEdgeWeight = 127; | 100 static const int kMaxBackEdgeWeight = 127; |
101 | 101 |
102 // Platform-specific code size multiplier. | 102 // Platform-specific code size multiplier. |
103 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 | 103 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
104 static const int kCodeSizeMultiplier = 105; | 104 static const int kCodeSizeMultiplier = 105; |
105 static const int kBootCodeSizeMultiplier = 100; | |
106 #elif V8_TARGET_ARCH_X64 | 105 #elif V8_TARGET_ARCH_X64 |
107 static const int kCodeSizeMultiplier = 170; | 106 static const int kCodeSizeMultiplier = 170; |
108 static const int kBootCodeSizeMultiplier = 140; | |
109 #elif V8_TARGET_ARCH_ARM | 107 #elif V8_TARGET_ARCH_ARM |
110 static const int kCodeSizeMultiplier = 149; | 108 static const int kCodeSizeMultiplier = 149; |
111 static const int kBootCodeSizeMultiplier = 110; | |
112 #elif V8_TARGET_ARCH_ARM64 | 109 #elif V8_TARGET_ARCH_ARM64 |
113 // TODO(all): Copied ARM value. Check this is sensible for ARM64. | 110 // TODO(all): Copied ARM value. Check this is sensible for ARM64. |
114 static const int kCodeSizeMultiplier = 149; | 111 static const int kCodeSizeMultiplier = 149; |
115 static const int kBootCodeSizeMultiplier = 110; | |
116 #elif V8_TARGET_ARCH_PPC64 | 112 #elif V8_TARGET_ARCH_PPC64 |
117 static const int kCodeSizeMultiplier = 200; | 113 static const int kCodeSizeMultiplier = 200; |
118 static const int kBootCodeSizeMultiplier = 120; | |
119 #elif V8_TARGET_ARCH_PPC | 114 #elif V8_TARGET_ARCH_PPC |
120 static const int kCodeSizeMultiplier = 200; | 115 static const int kCodeSizeMultiplier = 200; |
121 static const int kBootCodeSizeMultiplier = 120; | |
122 #elif V8_TARGET_ARCH_MIPS | 116 #elif V8_TARGET_ARCH_MIPS |
123 static const int kCodeSizeMultiplier = 149; | 117 static const int kCodeSizeMultiplier = 149; |
124 static const int kBootCodeSizeMultiplier = 120; | |
125 #elif V8_TARGET_ARCH_MIPS64 | 118 #elif V8_TARGET_ARCH_MIPS64 |
126 static const int kCodeSizeMultiplier = 149; | 119 static const int kCodeSizeMultiplier = 149; |
127 static const int kBootCodeSizeMultiplier = 170; | |
128 #else | 120 #else |
129 #error Unsupported target architecture. | 121 #error Unsupported target architecture. |
130 #endif | 122 #endif |
131 | 123 |
132 private: | 124 private: |
133 class Breakable; | 125 class Breakable; |
134 class Iteration; | 126 class Iteration; |
135 | 127 |
136 class TestContext; | 128 class TestContext; |
137 | 129 |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 | 1041 |
1050 Address start_; | 1042 Address start_; |
1051 Address instruction_start_; | 1043 Address instruction_start_; |
1052 uint32_t length_; | 1044 uint32_t length_; |
1053 }; | 1045 }; |
1054 | 1046 |
1055 | 1047 |
1056 } } // namespace v8::internal | 1048 } } // namespace v8::internal |
1057 | 1049 |
1058 #endif // V8_FULL_CODEGEN_H_ | 1050 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |