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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 Zone* zone() const { return zone_; } | 122 Zone* zone() const { return zone_; } |
123 | 123 |
124 static const int kMaxBackEdgeWeight = 127; | 124 static const int kMaxBackEdgeWeight = 127; |
125 | 125 |
126 // Platform-specific code size multiplier. | 126 // Platform-specific code size multiplier. |
127 #if V8_TARGET_ARCH_IA32 | 127 #if V8_TARGET_ARCH_IA32 |
128 static const int kCodeSizeMultiplier = 100; | 128 static const int kCodeSizeMultiplier = 100; |
129 #elif V8_TARGET_ARCH_X64 | 129 #elif V8_TARGET_ARCH_X64 |
130 static const int kCodeSizeMultiplier = 162; | 130 static const int kCodeSizeMultiplier = 162; |
| 131 #elif V8_TARGET_ARCH_X32 |
| 132 static const int kCodeSizeMultiplier = 162; |
131 #elif V8_TARGET_ARCH_ARM | 133 #elif V8_TARGET_ARCH_ARM |
132 static const int kCodeSizeMultiplier = 142; | 134 static const int kCodeSizeMultiplier = 142; |
133 #elif V8_TARGET_ARCH_MIPS | 135 #elif V8_TARGET_ARCH_MIPS |
134 static const int kCodeSizeMultiplier = 142; | 136 static const int kCodeSizeMultiplier = 142; |
135 #else | 137 #else |
136 #error Unsupported target architecture. | 138 #error Unsupported target architecture. |
137 #endif | 139 #endif |
138 | 140 |
139 static const int kBackEdgeEntrySize = 2 * kIntSize + kOneByteSize; | 141 static const int kBackEdgeEntrySize = 2 * kIntSize + kOneByteSize; |
140 | 142 |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 } | 880 } |
879 | 881 |
880 private: | 882 private: |
881 Zone* zone_; | 883 Zone* zone_; |
882 }; | 884 }; |
883 | 885 |
884 | 886 |
885 } } // namespace v8::internal | 887 } } // namespace v8::internal |
886 | 888 |
887 #endif // V8_FULL_CODEGEN_H_ | 889 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |