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/lithium-codegen.h" | 5 #include "src/crankshaft/lithium-codegen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 #include "src/ia32/lithium-ia32.h" // NOLINT | 10 #include "src/crankshaft/ia32/lithium-ia32.h" // NOLINT |
11 #include "src/ia32/lithium-codegen-ia32.h" // NOLINT | 11 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" // NOLINT |
12 #elif V8_TARGET_ARCH_X64 | 12 #elif V8_TARGET_ARCH_X64 |
13 #include "src/x64/lithium-x64.h" // NOLINT | 13 #include "src/crankshaft/x64/lithium-x64.h" // NOLINT |
14 #include "src/x64/lithium-codegen-x64.h" // NOLINT | 14 #include "src/crankshaft/x64/lithium-codegen-x64.h" // NOLINT |
15 #elif V8_TARGET_ARCH_ARM | 15 #elif V8_TARGET_ARCH_ARM |
16 #include "src/arm/lithium-arm.h" // NOLINT | 16 #include "src/crankshaft/arm/lithium-arm.h" // NOLINT |
17 #include "src/arm/lithium-codegen-arm.h" // NOLINT | 17 #include "src/crankshaft/arm/lithium-codegen-arm.h" // NOLINT |
18 #elif V8_TARGET_ARCH_ARM64 | 18 #elif V8_TARGET_ARCH_ARM64 |
19 #include "src/arm64/lithium-arm64.h" // NOLINT | 19 #include "src/crankshaft/arm64/lithium-arm64.h" // NOLINT |
20 #include "src/arm64/lithium-codegen-arm64.h" // NOLINT | 20 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" // NOLINT |
21 #elif V8_TARGET_ARCH_MIPS | 21 #elif V8_TARGET_ARCH_MIPS |
22 #include "src/mips/lithium-mips.h" // NOLINT | 22 #include "src/crankshaft/mips/lithium-mips.h" // NOLINT |
23 #include "src/mips/lithium-codegen-mips.h" // NOLINT | 23 #include "src/crankshaft/mips/lithium-codegen-mips.h" // NOLINT |
24 #elif V8_TARGET_ARCH_MIPS64 | 24 #elif V8_TARGET_ARCH_MIPS64 |
25 #include "src/mips64/lithium-mips64.h" // NOLINT | 25 #include "src/crankshaft/mips64/lithium-mips64.h" // NOLINT |
26 #include "src/mips64/lithium-codegen-mips64.h" // NOLINT | 26 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" // NOLINT |
27 #elif V8_TARGET_ARCH_X87 | 27 #elif V8_TARGET_ARCH_X87 |
28 #include "src/x87/lithium-x87.h" // NOLINT | 28 #include "src/crankshaft/x87/lithium-x87.h" // NOLINT |
29 #include "src/x87/lithium-codegen-x87.h" // NOLINT | 29 #include "src/crankshaft/x87/lithium-codegen-x87.h" // NOLINT |
30 #elif V8_TARGET_ARCH_PPC | 30 #elif V8_TARGET_ARCH_PPC |
31 #include "src/ppc/lithium-ppc.h" // NOLINT | 31 #include "src/crankshaft/ppc/lithium-ppc.h" // NOLINT |
32 #include "src/ppc/lithium-codegen-ppc.h" // NOLINT | 32 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" // NOLINT |
33 #else | 33 #else |
34 #error Unsupported target architecture. | 34 #error Unsupported target architecture. |
35 #endif | 35 #endif |
36 | 36 |
37 namespace v8 { | 37 namespace v8 { |
38 namespace internal { | 38 namespace internal { |
39 | 39 |
40 | 40 |
41 HGraph* LCodeGenBase::graph() const { | 41 HGraph* LCodeGenBase::graph() const { |
42 return chunk()->graph(); | 42 return chunk()->graph(); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 Deoptimizer::DeoptInfo LCodeGenBase::MakeDeoptInfo( | 283 Deoptimizer::DeoptInfo LCodeGenBase::MakeDeoptInfo( |
284 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason) { | 284 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason) { |
285 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), | 285 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
286 instr->Mnemonic(), deopt_reason); | 286 instr->Mnemonic(), deopt_reason); |
287 HEnterInlined* enter_inlined = instr->environment()->entry(); | 287 HEnterInlined* enter_inlined = instr->environment()->entry(); |
288 deopt_info.inlining_id = enter_inlined ? enter_inlined->inlining_id() : 0; | 288 deopt_info.inlining_id = enter_inlined ? enter_inlined->inlining_id() : 0; |
289 return deopt_info; | 289 return deopt_info; |
290 } | 290 } |
291 } // namespace internal | 291 } // namespace internal |
292 } // namespace v8 | 292 } // namespace v8 |
OLD | NEW |