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