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 static const int kMaxBackEdgeWeight = 127; | 120 static const int kMaxBackEdgeWeight = 127; |
121 | 121 |
122 #if V8_TARGET_ARCH_IA32 | 122 #if V8_TARGET_ARCH_IA32 |
123 static const int kBackEdgeDistanceUnit = 100; | 123 static const int kBackEdgeDistanceUnit = 100; |
124 #elif V8_TARGET_ARCH_X64 | 124 #elif V8_TARGET_ARCH_X64 |
125 static const int kBackEdgeDistanceUnit = 162; | 125 static const int kBackEdgeDistanceUnit = 162; |
126 #elif V8_TARGET_ARCH_ARM | 126 #elif V8_TARGET_ARCH_ARM |
127 static const int kBackEdgeDistanceUnit = 142; | 127 static const int kBackEdgeDistanceUnit = 142; |
128 #elif V8_TARGET_ARCH_MIPS | 128 #elif V8_TARGET_ARCH_MIPS |
129 static const int kBackEdgeDistanceUnit = 142; | 129 static const int kBackEdgeDistanceUnit = 142; |
130 #elif V8_TARGET_ARCH_SH4 | |
131 // TODO(STM): what is this for ? | |
Jakob Kummerow
2012/11/07 11:18:24
For estimating which functions are hot, the profil
remi.duraffort
2012/11/07 11:59:26
Thanks for the exaplnation.
For the moment crancks
| |
132 static const int kBackEdgeDistanceUnit = -1; | |
130 #else | 133 #else |
131 #error Unsupported target architecture. | 134 #error Unsupported target architecture. |
132 #endif | 135 #endif |
133 | 136 |
134 | 137 |
135 private: | 138 private: |
136 class Breakable; | 139 class Breakable; |
137 class Iteration; | 140 class Iteration; |
138 | 141 |
139 class TestContext; | 142 class TestContext; |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
838 } | 841 } |
839 | 842 |
840 private: | 843 private: |
841 Zone* zone_; | 844 Zone* zone_; |
842 }; | 845 }; |
843 | 846 |
844 | 847 |
845 } } // namespace v8::internal | 848 } } // namespace v8::internal |
846 | 849 |
847 #endif // V8_FULL_CODEGEN_H_ | 850 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |