OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "hydrogen.h" | 5 #include "src/hydrogen.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "v8.h" | 9 #include "src/v8.h" |
10 #include "allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
11 #include "codegen.h" | 11 #include "src/codegen.h" |
12 #include "full-codegen.h" | 12 #include "src/full-codegen.h" |
13 #include "hashmap.h" | 13 #include "src/hashmap.h" |
14 #include "hydrogen-bce.h" | 14 #include "src/hydrogen-bce.h" |
15 #include "hydrogen-bch.h" | 15 #include "src/hydrogen-bch.h" |
16 #include "hydrogen-canonicalize.h" | 16 #include "src/hydrogen-canonicalize.h" |
17 #include "hydrogen-check-elimination.h" | 17 #include "src/hydrogen-check-elimination.h" |
18 #include "hydrogen-dce.h" | 18 #include "src/hydrogen-dce.h" |
19 #include "hydrogen-dehoist.h" | 19 #include "src/hydrogen-dehoist.h" |
20 #include "hydrogen-environment-liveness.h" | 20 #include "src/hydrogen-environment-liveness.h" |
21 #include "hydrogen-escape-analysis.h" | 21 #include "src/hydrogen-escape-analysis.h" |
22 #include "hydrogen-infer-representation.h" | 22 #include "src/hydrogen-infer-representation.h" |
23 #include "hydrogen-infer-types.h" | 23 #include "src/hydrogen-infer-types.h" |
24 #include "hydrogen-load-elimination.h" | 24 #include "src/hydrogen-load-elimination.h" |
25 #include "hydrogen-gvn.h" | 25 #include "src/hydrogen-gvn.h" |
26 #include "hydrogen-mark-deoptimize.h" | 26 #include "src/hydrogen-mark-deoptimize.h" |
27 #include "hydrogen-mark-unreachable.h" | 27 #include "src/hydrogen-mark-unreachable.h" |
28 #include "hydrogen-osr.h" | 28 #include "src/hydrogen-osr.h" |
29 #include "hydrogen-range-analysis.h" | 29 #include "src/hydrogen-range-analysis.h" |
30 #include "hydrogen-redundant-phi.h" | 30 #include "src/hydrogen-redundant-phi.h" |
31 #include "hydrogen-removable-simulates.h" | 31 #include "src/hydrogen-removable-simulates.h" |
32 #include "hydrogen-representation-changes.h" | 32 #include "src/hydrogen-representation-changes.h" |
33 #include "hydrogen-sce.h" | 33 #include "src/hydrogen-sce.h" |
34 #include "hydrogen-store-elimination.h" | 34 #include "src/hydrogen-store-elimination.h" |
35 #include "hydrogen-uint32-analysis.h" | 35 #include "src/hydrogen-uint32-analysis.h" |
36 #include "lithium-allocator.h" | 36 #include "src/lithium-allocator.h" |
37 #include "parser.h" | 37 #include "src/parser.h" |
38 #include "runtime.h" | 38 #include "src/runtime.h" |
39 #include "scopeinfo.h" | 39 #include "src/scopeinfo.h" |
40 #include "scopes.h" | 40 #include "src/scopes.h" |
41 #include "stub-cache.h" | 41 #include "src/stub-cache.h" |
42 #include "typing.h" | 42 #include "src/typing.h" |
43 | 43 |
44 #if V8_TARGET_ARCH_IA32 | 44 #if V8_TARGET_ARCH_IA32 |
45 #include "ia32/lithium-codegen-ia32.h" | 45 #include "src/ia32/lithium-codegen-ia32.h" |
46 #elif V8_TARGET_ARCH_X64 | 46 #elif V8_TARGET_ARCH_X64 |
47 #include "x64/lithium-codegen-x64.h" | 47 #include "src/x64/lithium-codegen-x64.h" |
48 #elif V8_TARGET_ARCH_ARM64 | 48 #elif V8_TARGET_ARCH_ARM64 |
49 #include "arm64/lithium-codegen-arm64.h" | 49 #include "src/arm64/lithium-codegen-arm64.h" |
50 #elif V8_TARGET_ARCH_ARM | 50 #elif V8_TARGET_ARCH_ARM |
51 #include "arm/lithium-codegen-arm.h" | 51 #include "src/arm/lithium-codegen-arm.h" |
52 #elif V8_TARGET_ARCH_MIPS | 52 #elif V8_TARGET_ARCH_MIPS |
53 #include "mips/lithium-codegen-mips.h" | 53 #include "src/mips/lithium-codegen-mips.h" |
54 #elif V8_TARGET_ARCH_X87 | 54 #elif V8_TARGET_ARCH_X87 |
55 #include "x87/lithium-codegen-x87.h" | 55 #include "src/x87/lithium-codegen-x87.h" |
56 #else | 56 #else |
57 #error Unsupported target architecture. | 57 #error Unsupported target architecture. |
58 #endif | 58 #endif |
59 | 59 |
60 namespace v8 { | 60 namespace v8 { |
61 namespace internal { | 61 namespace internal { |
62 | 62 |
63 HBasicBlock::HBasicBlock(HGraph* graph) | 63 HBasicBlock::HBasicBlock(HGraph* graph) |
64 : block_id_(graph->GetNextBlockID()), | 64 : block_id_(graph->GetNextBlockID()), |
65 graph_(graph), | 65 graph_(graph), |
(...skipping 11810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11876 if (ShouldProduceTraceOutput()) { | 11876 if (ShouldProduceTraceOutput()) { |
11877 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11877 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
11878 } | 11878 } |
11879 | 11879 |
11880 #ifdef DEBUG | 11880 #ifdef DEBUG |
11881 graph_->Verify(false); // No full verify. | 11881 graph_->Verify(false); // No full verify. |
11882 #endif | 11882 #endif |
11883 } | 11883 } |
11884 | 11884 |
11885 } } // namespace v8::internal | 11885 } } // namespace v8::internal |
OLD | NEW |