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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/hydrogen.h" | 7 #include "src/hydrogen.h" |
| 8 #include "src/lithium-inl.h" |
8 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
9 #include "src/string-stream.h" | 10 #include "src/string-stream.h" |
10 | 11 |
11 #if V8_TARGET_ARCH_IA32 | |
12 #include "src/ia32/lithium-ia32.h" // NOLINT | |
13 #elif V8_TARGET_ARCH_X64 | |
14 #include "src/x64/lithium-x64.h" // NOLINT | |
15 #elif V8_TARGET_ARCH_ARM64 | |
16 #include "src/arm64/lithium-arm64.h" // NOLINT | |
17 #elif V8_TARGET_ARCH_ARM | |
18 #include "src/arm/lithium-arm.h" // NOLINT | |
19 #elif V8_TARGET_ARCH_MIPS | |
20 #include "src/mips/lithium-mips.h" // NOLINT | |
21 #elif V8_TARGET_ARCH_MIPS64 | |
22 #include "src/mips64/lithium-mips64.h" // NOLINT | |
23 #elif V8_TARGET_ARCH_X87 | |
24 #include "src/x87/lithium-x87.h" // NOLINT | |
25 #else | |
26 #error "Unknown architecture." | |
27 #endif | |
28 | |
29 namespace v8 { | 12 namespace v8 { |
30 namespace internal { | 13 namespace internal { |
31 | 14 |
32 static inline LifetimePosition Min(LifetimePosition a, LifetimePosition b) { | 15 static inline LifetimePosition Min(LifetimePosition a, LifetimePosition b) { |
33 return a.Value() < b.Value() ? a : b; | 16 return a.Value() < b.Value() ? a : b; |
34 } | 17 } |
35 | 18 |
36 | 19 |
37 static inline LifetimePosition Max(LifetimePosition a, LifetimePosition b) { | 20 static inline LifetimePosition Max(LifetimePosition a, LifetimePosition b) { |
38 return a.Value() > b.Value() ? a : b; | 21 return a.Value() > b.Value() ? a : b; |
(...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2202 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
2203 } | 2186 } |
2204 | 2187 |
2205 #ifdef DEBUG | 2188 #ifdef DEBUG |
2206 if (allocator_ != NULL) allocator_->Verify(); | 2189 if (allocator_ != NULL) allocator_->Verify(); |
2207 #endif | 2190 #endif |
2208 } | 2191 } |
2209 | 2192 |
2210 | 2193 |
2211 } } // namespace v8::internal | 2194 } } // namespace v8::internal |
OLD | NEW |