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

Side by Side Diff: src/macro-assembler.h

Issue 1306023002: Simplify macro-assembler.h include dance. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-code
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | 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 #ifndef V8_MACRO_ASSEMBLER_H_ 5 #ifndef V8_MACRO_ASSEMBLER_H_
6 #define V8_MACRO_ASSEMBLER_H_ 6 #define V8_MACRO_ASSEMBLER_H_
7 7
8 #include "src/assembler.h"
9
8 10
9 // Helper types to make boolean flag easier to read at call-site. 11 // Helper types to make boolean flag easier to read at call-site.
10 enum InvokeFlag { 12 enum InvokeFlag {
11 CALL_FUNCTION, 13 CALL_FUNCTION,
12 JUMP_FUNCTION 14 JUMP_FUNCTION
13 }; 15 };
14 16
15 17
16 // Flags used for the AllocateInNewSpace functions. 18 // Flags used for the AllocateInNewSpace functions.
17 enum AllocationFlags { 19 enum AllocationFlags {
18 // No special flags. 20 // No special flags.
19 NO_ALLOCATION_FLAGS = 0, 21 NO_ALLOCATION_FLAGS = 0,
20 // Return the pointer to the allocated already tagged as a heap object. 22 // Return the pointer to the allocated already tagged as a heap object.
21 TAG_OBJECT = 1 << 0, 23 TAG_OBJECT = 1 << 0,
22 // The content of the result register already contains the allocation top in 24 // The content of the result register already contains the allocation top in
23 // new space. 25 // new space.
24 RESULT_CONTAINS_TOP = 1 << 1, 26 RESULT_CONTAINS_TOP = 1 << 1,
25 // Specify that the requested size of the space to allocate is specified in 27 // Specify that the requested size of the space to allocate is specified in
26 // words instead of bytes. 28 // words instead of bytes.
27 SIZE_IN_WORDS = 1 << 2, 29 SIZE_IN_WORDS = 1 << 2,
28 // Align the allocation to a multiple of kDoubleSize 30 // Align the allocation to a multiple of kDoubleSize
29 DOUBLE_ALIGNMENT = 1 << 3, 31 DOUBLE_ALIGNMENT = 1 << 3,
30 // Directly allocate in old space 32 // Directly allocate in old space
31 PRETENURE = 1 << 4, 33 PRETENURE = 1 << 4,
32 }; 34 };
33 35
34 36
35 // Invalid depth in prototype chain.
36 const int kInvalidProtoDepth = -1;
37
38 #if V8_TARGET_ARCH_IA32 37 #if V8_TARGET_ARCH_IA32
39 #include "src/assembler.h"
40 #include "src/ia32/assembler-ia32.h" 38 #include "src/ia32/assembler-ia32.h"
41 #include "src/ia32/assembler-ia32-inl.h" 39 #include "src/ia32/assembler-ia32-inl.h"
42 #include "src/ia32/macro-assembler-ia32.h" 40 #include "src/ia32/macro-assembler-ia32.h"
43 #elif V8_TARGET_ARCH_X64 41 #elif V8_TARGET_ARCH_X64
44 #include "src/assembler.h"
45 #include "src/x64/assembler-x64.h" 42 #include "src/x64/assembler-x64.h"
46 #include "src/x64/assembler-x64-inl.h" 43 #include "src/x64/assembler-x64-inl.h"
47 #include "src/x64/macro-assembler-x64.h" 44 #include "src/x64/macro-assembler-x64.h"
48 #elif V8_TARGET_ARCH_ARM64 45 #elif V8_TARGET_ARCH_ARM64
46 #include "src/arm64/assembler-arm64.h"
47 #include "src/arm64/assembler-arm64-inl.h"
49 #include "src/arm64/constants-arm64.h" 48 #include "src/arm64/constants-arm64.h"
50 #include "src/assembler.h" 49 #include "src/arm64/macro-assembler-arm64.h"
51 #include "src/arm64/assembler-arm64.h" // NOLINT
52 #include "src/arm64/assembler-arm64-inl.h"
53 #include "src/arm64/macro-assembler-arm64.h" // NOLINT
54 #include "src/arm64/macro-assembler-arm64-inl.h" 50 #include "src/arm64/macro-assembler-arm64-inl.h"
55 #elif V8_TARGET_ARCH_ARM 51 #elif V8_TARGET_ARCH_ARM
52 #include "src/arm/assembler-arm.h"
53 #include "src/arm/assembler-arm-inl.h"
56 #include "src/arm/constants-arm.h" 54 #include "src/arm/constants-arm.h"
57 #include "src/assembler.h" 55 #include "src/arm/macro-assembler-arm.h"
58 #include "src/arm/assembler-arm.h" // NOLINT
59 #include "src/arm/assembler-arm-inl.h"
60 #include "src/arm/macro-assembler-arm.h" // NOLINT
61 #elif V8_TARGET_ARCH_PPC 56 #elif V8_TARGET_ARCH_PPC
57 #include "src/ppc/assembler-ppc.h"
58 #include "src/ppc/assembler-ppc-inl.h"
62 #include "src/ppc/constants-ppc.h" 59 #include "src/ppc/constants-ppc.h"
63 #include "src/assembler.h" // NOLINT
64 #include "src/ppc/assembler-ppc.h" // NOLINT
65 #include "src/ppc/assembler-ppc-inl.h"
66 #include "src/ppc/macro-assembler-ppc.h" 60 #include "src/ppc/macro-assembler-ppc.h"
67 #elif V8_TARGET_ARCH_MIPS 61 #elif V8_TARGET_ARCH_MIPS
62 #include "src/mips/assembler-mips.h"
63 #include "src/mips/assembler-mips-inl.h"
68 #include "src/mips/constants-mips.h" 64 #include "src/mips/constants-mips.h"
69 #include "src/assembler.h" // NOLINT
70 #include "src/mips/assembler-mips.h" // NOLINT
71 #include "src/mips/assembler-mips-inl.h"
72 #include "src/mips/macro-assembler-mips.h" 65 #include "src/mips/macro-assembler-mips.h"
73 #elif V8_TARGET_ARCH_MIPS64 66 #elif V8_TARGET_ARCH_MIPS64
67 #include "src/mips64/assembler-mips64.h"
68 #include "src/mips64/assembler-mips64-inl.h"
74 #include "src/mips64/constants-mips64.h" 69 #include "src/mips64/constants-mips64.h"
75 #include "src/assembler.h" // NOLINT
76 #include "src/mips64/assembler-mips64.h" // NOLINT
77 #include "src/mips64/assembler-mips64-inl.h"
78 #include "src/mips64/macro-assembler-mips64.h" 70 #include "src/mips64/macro-assembler-mips64.h"
79 #elif V8_TARGET_ARCH_X87 71 #elif V8_TARGET_ARCH_X87
80 #include "src/assembler.h"
81 #include "src/x87/assembler-x87.h" 72 #include "src/x87/assembler-x87.h"
82 #include "src/x87/assembler-x87-inl.h" 73 #include "src/x87/assembler-x87-inl.h"
83 #include "src/x87/macro-assembler-x87.h" 74 #include "src/x87/macro-assembler-x87.h"
84 #else 75 #else
85 #error Unsupported target architecture. 76 #error Unsupported target architecture.
86 #endif 77 #endif
87 78
88 namespace v8 { 79 namespace v8 {
89 namespace internal { 80 namespace internal {
90 81
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return ExternalReference::old_space_allocation_limit_address(isolate); 274 return ExternalReference::old_space_allocation_limit_address(isolate);
284 } 275 }
285 return ExternalReference::new_space_allocation_limit_address(isolate); 276 return ExternalReference::new_space_allocation_limit_address(isolate);
286 } 277 }
287 }; 278 };
288 279
289 280
290 } } // namespace v8::internal 281 } } // namespace v8::internal
291 282
292 #endif // V8_MACRO_ASSEMBLER_H_ 283 #endif // V8_MACRO_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698