OLD | NEW |
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 | 8 |
9 // Helper types to make boolean flag easier to read at call-site. | 9 // Helper types to make boolean flag easier to read at call-site. |
10 enum InvokeFlag { | 10 enum InvokeFlag { |
(...skipping 20 matching lines...) Expand all Loading... |
31 PRETENURE_OLD_POINTER_SPACE = 1 << 4, | 31 PRETENURE_OLD_POINTER_SPACE = 1 << 4, |
32 // Directly allocate in old data space | 32 // Directly allocate in old data space |
33 PRETENURE_OLD_DATA_SPACE = 1 << 5 | 33 PRETENURE_OLD_DATA_SPACE = 1 << 5 |
34 }; | 34 }; |
35 | 35 |
36 | 36 |
37 // Invalid depth in prototype chain. | 37 // Invalid depth in prototype chain. |
38 const int kInvalidProtoDepth = -1; | 38 const int kInvalidProtoDepth = -1; |
39 | 39 |
40 #if V8_TARGET_ARCH_IA32 | 40 #if V8_TARGET_ARCH_IA32 |
41 #include "assembler.h" | 41 #include "src/assembler.h" |
42 #include "ia32/assembler-ia32.h" | 42 #include "src/ia32/assembler-ia32.h" |
43 #include "ia32/assembler-ia32-inl.h" | 43 #include "src/ia32/assembler-ia32-inl.h" |
44 #include "code.h" // must be after assembler_*.h | 44 #include "src/code.h" // must be after assembler_*.h |
45 #include "ia32/macro-assembler-ia32.h" | 45 #include "src/ia32/macro-assembler-ia32.h" |
46 #elif V8_TARGET_ARCH_X64 | 46 #elif V8_TARGET_ARCH_X64 |
47 #include "assembler.h" | 47 #include "src/assembler.h" |
48 #include "x64/assembler-x64.h" | 48 #include "src/x64/assembler-x64.h" |
49 #include "x64/assembler-x64-inl.h" | 49 #include "src/x64/assembler-x64-inl.h" |
50 #include "code.h" // must be after assembler_*.h | 50 #include "src/code.h" // must be after assembler_*.h |
51 #include "x64/macro-assembler-x64.h" | 51 #include "src/x64/macro-assembler-x64.h" |
52 #elif V8_TARGET_ARCH_ARM64 | 52 #elif V8_TARGET_ARCH_ARM64 |
53 #include "arm64/constants-arm64.h" | 53 #include "src/arm64/constants-arm64.h" |
54 #include "assembler.h" | 54 #include "src/assembler.h" |
55 #include "arm64/assembler-arm64.h" | 55 #include "src/arm64/assembler-arm64.h" |
56 #include "arm64/assembler-arm64-inl.h" | 56 #include "src/arm64/assembler-arm64-inl.h" |
57 #include "code.h" // must be after assembler_*.h | 57 #include "src/code.h" // must be after assembler_*.h |
58 #include "arm64/macro-assembler-arm64.h" | 58 #include "src/arm64/macro-assembler-arm64.h" |
59 #include "arm64/macro-assembler-arm64-inl.h" | 59 #include "src/arm64/macro-assembler-arm64-inl.h" |
60 #elif V8_TARGET_ARCH_ARM | 60 #elif V8_TARGET_ARCH_ARM |
61 #include "arm/constants-arm.h" | 61 #include "src/arm/constants-arm.h" |
62 #include "assembler.h" | 62 #include "src/assembler.h" |
63 #include "arm/assembler-arm.h" | 63 #include "src/arm/assembler-arm.h" |
64 #include "arm/assembler-arm-inl.h" | 64 #include "src/arm/assembler-arm-inl.h" |
65 #include "code.h" // must be after assembler_*.h | 65 #include "src/code.h" // must be after assembler_*.h |
66 #include "arm/macro-assembler-arm.h" | 66 #include "src/arm/macro-assembler-arm.h" |
67 #elif V8_TARGET_ARCH_MIPS | 67 #elif V8_TARGET_ARCH_MIPS |
68 #include "mips/constants-mips.h" | 68 #include "src/mips/constants-mips.h" |
69 #include "assembler.h" | 69 #include "src/assembler.h" |
70 #include "mips/assembler-mips.h" | 70 #include "src/mips/assembler-mips.h" |
71 #include "mips/assembler-mips-inl.h" | 71 #include "src/mips/assembler-mips-inl.h" |
72 #include "code.h" // must be after assembler_*.h | 72 #include "src/code.h" // must be after assembler_*.h |
73 #include "mips/macro-assembler-mips.h" | 73 #include "src/mips/macro-assembler-mips.h" |
74 #elif V8_TARGET_ARCH_X87 | 74 #elif V8_TARGET_ARCH_X87 |
75 #include "assembler.h" | 75 #include "src/assembler.h" |
76 #include "x87/assembler-x87.h" | 76 #include "src/x87/assembler-x87.h" |
77 #include "x87/assembler-x87-inl.h" | 77 #include "src/x87/assembler-x87-inl.h" |
78 #include "code.h" // must be after assembler_*.h | 78 #include "src/code.h" // must be after assembler_*.h |
79 #include "x87/macro-assembler-x87.h" | 79 #include "src/x87/macro-assembler-x87.h" |
80 #else | 80 #else |
81 #error Unsupported target architecture. | 81 #error Unsupported target architecture. |
82 #endif | 82 #endif |
83 | 83 |
84 namespace v8 { | 84 namespace v8 { |
85 namespace internal { | 85 namespace internal { |
86 | 86 |
87 class FrameScope { | 87 class FrameScope { |
88 public: | 88 public: |
89 explicit FrameScope(MacroAssembler* masm, StackFrame::Type type) | 89 explicit FrameScope(MacroAssembler* masm, StackFrame::Type type) |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 isolate); | 189 isolate); |
190 } | 190 } |
191 return ExternalReference::new_space_allocation_limit_address(isolate); | 191 return ExternalReference::new_space_allocation_limit_address(isolate); |
192 } | 192 } |
193 }; | 193 }; |
194 | 194 |
195 | 195 |
196 } } // namespace v8::internal | 196 } } // namespace v8::internal |
197 | 197 |
198 #endif // V8_MACRO_ASSEMBLER_H_ | 198 #endif // V8_MACRO_ASSEMBLER_H_ |
OLD | NEW |