OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 116 } |
117 UNREACHABLE(); | 117 UNREACHABLE(); |
118 return NULL; | 118 return NULL; |
119 } | 119 } |
120 | 120 |
121 static const int kMaxBackEdgeWeight = 127; | 121 static const int kMaxBackEdgeWeight = 127; |
122 | 122 |
123 // Platform-specific code size multiplier. | 123 // Platform-specific code size multiplier. |
124 #if V8_TARGET_ARCH_IA32 | 124 #if V8_TARGET_ARCH_IA32 |
125 static const int kCodeSizeMultiplier = 100; | 125 static const int kCodeSizeMultiplier = 100; |
| 126 static const int kBootCodeSizeMultiplier = 100; |
126 #elif V8_TARGET_ARCH_X64 | 127 #elif V8_TARGET_ARCH_X64 |
127 static const int kCodeSizeMultiplier = 162; | 128 static const int kCodeSizeMultiplier = 162; |
| 129 static const int kBootCodeSizeMultiplier = 140; |
128 #elif V8_TARGET_ARCH_ARM | 130 #elif V8_TARGET_ARCH_ARM |
129 static const int kCodeSizeMultiplier = 142; | 131 static const int kCodeSizeMultiplier = 142; |
| 132 static const int kBootCodeSizeMultiplier = 110; |
130 #elif V8_TARGET_ARCH_ARM64 | 133 #elif V8_TARGET_ARCH_ARM64 |
131 // TODO(all): Copied ARM value. Check this is sensible for ARM64. | 134 // TODO(all): Copied ARM value. Check this is sensible for ARM64. |
132 static const int kCodeSizeMultiplier = 142; | 135 static const int kCodeSizeMultiplier = 142; |
| 136 static const int kBootCodeSizeMultiplier = 110; |
133 #elif V8_TARGET_ARCH_MIPS | 137 #elif V8_TARGET_ARCH_MIPS |
134 static const int kCodeSizeMultiplier = 142; | 138 static const int kCodeSizeMultiplier = 142; |
| 139 static const int kBootCodeSizeMultiplier = 120; |
135 #else | 140 #else |
136 #error Unsupported target architecture. | 141 #error Unsupported target architecture. |
137 #endif | 142 #endif |
138 | 143 |
139 private: | 144 private: |
140 class Breakable; | 145 class Breakable; |
141 class Iteration; | 146 class Iteration; |
142 | 147 |
143 class TestContext; | 148 class TestContext; |
144 | 149 |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 965 |
961 Address start_; | 966 Address start_; |
962 Address instruction_start_; | 967 Address instruction_start_; |
963 uint32_t length_; | 968 uint32_t length_; |
964 }; | 969 }; |
965 | 970 |
966 | 971 |
967 } } // namespace v8::internal | 972 } } // namespace v8::internal |
968 | 973 |
969 #endif // V8_FULL_CODEGEN_H_ | 974 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |