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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 : reg(index_register), | 78 : reg(index_register), |
79 scale(scale) {} | 79 scale(scale) {} |
80 Register reg; | 80 Register reg; |
81 ScaleFactor scale; | 81 ScaleFactor scale; |
82 }; | 82 }; |
83 | 83 |
84 | 84 |
85 // MacroAssembler implements a collection of frequently used macros. | 85 // MacroAssembler implements a collection of frequently used macros. |
86 class MacroAssembler: public Assembler { | 86 class MacroAssembler: public Assembler { |
87 public: | 87 public: |
88 // The isolate parameter can be NULL if the macro assembler should | 88 MacroAssembler(Isolate* isolate, void* buffer, int size, |
89 // not use isolate-dependent functionality. In this case, it's the | 89 CodeObjectRequired create_code_object); |
90 // responsibility of the caller to never invoke such function on the | |
91 // macro assembler. | |
92 MacroAssembler(Isolate* isolate, void* buffer, int size); | |
93 | 90 |
94 // Prevent the use of the RootArray during the lifetime of this | 91 // Prevent the use of the RootArray during the lifetime of this |
95 // scope object. | 92 // scope object. |
96 class NoRootArrayScope BASE_EMBEDDED { | 93 class NoRootArrayScope BASE_EMBEDDED { |
97 public: | 94 public: |
98 explicit NoRootArrayScope(MacroAssembler* assembler) | 95 explicit NoRootArrayScope(MacroAssembler* assembler) |
99 : variable_(&assembler->root_array_available_), | 96 : variable_(&assembler->root_array_available_), |
100 old_value_(assembler->root_array_available_) { | 97 old_value_(assembler->root_array_available_) { |
101 assembler->root_array_available_ = false; | 98 assembler->root_array_available_ = false; |
102 } | 99 } |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 } \ | 1731 } \ |
1735 masm-> | 1732 masm-> |
1736 #else | 1733 #else |
1737 #define ACCESS_MASM(masm) masm-> | 1734 #define ACCESS_MASM(masm) masm-> |
1738 #endif | 1735 #endif |
1739 | 1736 |
1740 } // namespace internal | 1737 } // namespace internal |
1741 } // namespace v8 | 1738 } // namespace v8 |
1742 | 1739 |
1743 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1740 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |