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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #elif V8_TARGET_ARCH_X64 | 126 #elif V8_TARGET_ARCH_X64 |
127 static const int kCodeSizeMultiplier = 162; | 127 static const int kCodeSizeMultiplier = 162; |
128 #elif V8_TARGET_ARCH_ARM | 128 #elif V8_TARGET_ARCH_ARM |
129 static const int kCodeSizeMultiplier = 142; | 129 static const int kCodeSizeMultiplier = 142; |
| 130 #elif V8_TARGET_ARCH_A64 |
| 131 // TODO(all): Copied ARM value. Check this is sensible for A64. |
| 132 static const int kCodeSizeMultiplier = 142; |
130 #elif V8_TARGET_ARCH_MIPS | 133 #elif V8_TARGET_ARCH_MIPS |
131 static const int kCodeSizeMultiplier = 142; | 134 static const int kCodeSizeMultiplier = 142; |
132 #else | 135 #else |
133 #error Unsupported target architecture. | 136 #error Unsupported target architecture. |
134 #endif | 137 #endif |
135 | 138 |
136 private: | 139 private: |
137 class Breakable; | 140 class Breakable; |
138 class Iteration; | 141 class Iteration; |
139 | 142 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 | 960 |
958 Address start_; | 961 Address start_; |
959 Address instruction_start_; | 962 Address instruction_start_; |
960 uint32_t length_; | 963 uint32_t length_; |
961 }; | 964 }; |
962 | 965 |
963 | 966 |
964 } } // namespace v8::internal | 967 } } // namespace v8::internal |
965 | 968 |
966 #endif // V8_FULL_CODEGEN_H_ | 969 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |