Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: src/crankshaft/hydrogen-instructions.cc

Issue 1405363003: Move Hydrogen and Lithium to src/crankshaft/ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | src/crankshaft/hydrogen-load-elimination.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/hydrogen-instructions.h" 5 #include "src/crankshaft/hydrogen-instructions.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/safe_math.h"
9 #include "src/crankshaft/hydrogen-infer-representation.h"
8 #include "src/double.h" 10 #include "src/double.h"
9 #include "src/elements.h" 11 #include "src/elements.h"
10 #include "src/factory.h" 12 #include "src/factory.h"
11 #include "src/hydrogen-infer-representation.h"
12 13
13 #if V8_TARGET_ARCH_IA32 14 #if V8_TARGET_ARCH_IA32
14 #include "src/ia32/lithium-ia32.h" // NOLINT 15 #include "src/crankshaft/ia32/lithium-ia32.h" // NOLINT
15 #elif V8_TARGET_ARCH_X64 16 #elif V8_TARGET_ARCH_X64
16 #include "src/x64/lithium-x64.h" // NOLINT 17 #include "src/crankshaft/x64/lithium-x64.h" // NOLINT
17 #elif V8_TARGET_ARCH_ARM64 18 #elif V8_TARGET_ARCH_ARM64
18 #include "src/arm64/lithium-arm64.h" // NOLINT 19 #include "src/crankshaft/arm64/lithium-arm64.h" // NOLINT
19 #elif V8_TARGET_ARCH_ARM 20 #elif V8_TARGET_ARCH_ARM
20 #include "src/arm/lithium-arm.h" // NOLINT 21 #include "src/crankshaft/arm/lithium-arm.h" // NOLINT
21 #elif V8_TARGET_ARCH_PPC 22 #elif V8_TARGET_ARCH_PPC
22 #include "src/ppc/lithium-ppc.h" // NOLINT 23 #include "src/crankshaft/ppc/lithium-ppc.h" // NOLINT
23 #elif V8_TARGET_ARCH_MIPS 24 #elif V8_TARGET_ARCH_MIPS
24 #include "src/mips/lithium-mips.h" // NOLINT 25 #include "src/crankshaft/mips/lithium-mips.h" // NOLINT
25 #elif V8_TARGET_ARCH_MIPS64 26 #elif V8_TARGET_ARCH_MIPS64
26 #include "src/mips64/lithium-mips64.h" // NOLINT 27 #include "src/crankshaft/mips64/lithium-mips64.h" // NOLINT
27 #elif V8_TARGET_ARCH_X87 28 #elif V8_TARGET_ARCH_X87
28 #include "src/x87/lithium-x87.h" // NOLINT 29 #include "src/crankshaft/x87/lithium-x87.h" // NOLINT
29 #else 30 #else
30 #error Unsupported target architecture. 31 #error Unsupported target architecture.
31 #endif 32 #endif
32 33
33 #include "src/base/safe_math.h"
34
35 namespace v8 { 34 namespace v8 {
36 namespace internal { 35 namespace internal {
37 36
38 #define DEFINE_COMPILE(type) \ 37 #define DEFINE_COMPILE(type) \
39 LInstruction* H##type::CompileToLithium(LChunkBuilder* builder) { \ 38 LInstruction* H##type::CompileToLithium(LChunkBuilder* builder) { \
40 return builder->Do##type(this); \ 39 return builder->Do##type(this); \
41 } 40 }
42 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) 41 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE)
43 #undef DEFINE_COMPILE 42 #undef DEFINE_COMPILE
44 43
(...skipping 4662 matching lines...) Expand 10 before | Expand all | Expand 10 after
4707 case HObjectAccess::kExternalMemory: 4706 case HObjectAccess::kExternalMemory:
4708 os << "[external-memory]"; 4707 os << "[external-memory]";
4709 break; 4708 break;
4710 } 4709 }
4711 4710
4712 return os << "@" << access.offset(); 4711 return os << "@" << access.offset();
4713 } 4712 }
4714 4713
4715 } // namespace internal 4714 } // namespace internal
4716 } // namespace v8 4715 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | src/crankshaft/hydrogen-load-elimination.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698