OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_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/frames.h" | 10 #include "src/frames.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 #endif | 107 #endif |
108 | 108 |
109 | 109 |
110 // MacroAssembler implements a collection of frequently used macros. | 110 // MacroAssembler implements a collection of frequently used macros. |
111 class MacroAssembler : public Assembler { | 111 class MacroAssembler : public Assembler { |
112 public: | 112 public: |
113 // The isolate parameter can be NULL if the macro assembler should | 113 // The isolate parameter can be NULL if the macro assembler should |
114 // not use isolate-dependent functionality. In this case, it's the | 114 // not use isolate-dependent functionality. In this case, it's the |
115 // responsibility of the caller to never invoke such function on the | 115 // responsibility of the caller to never invoke such function on the |
116 // macro assembler. | 116 // macro assembler. |
117 MacroAssembler(Isolate* isolate, void* buffer, int size); | 117 MacroAssembler(Isolate* isolate, void* buffer, int size, |
| 118 CodeObjectRequired create_code_object); |
118 | 119 |
119 | 120 |
120 // Returns the size of a call in instructions. Note, the value returned is | 121 // Returns the size of a call in instructions. Note, the value returned is |
121 // only valid as long as no entries are added to the constant pool between | 122 // only valid as long as no entries are added to the constant pool between |
122 // checking the call size and emitting the actual call. | 123 // checking the call size and emitting the actual call. |
123 static int CallSize(Register target); | 124 static int CallSize(Register target); |
124 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al); | 125 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al); |
125 static int CallSizeNotPredictableCodeSize(Address target, | 126 static int CallSizeNotPredictableCodeSize(Address target, |
126 RelocInfo::Mode rmode, | 127 RelocInfo::Mode rmode, |
127 Condition cond = al); | 128 Condition cond = al); |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 #define ACCESS_MASM(masm) \ | 1585 #define ACCESS_MASM(masm) \ |
1585 masm->stop(__FILE_LINE__); \ | 1586 masm->stop(__FILE_LINE__); \ |
1586 masm-> | 1587 masm-> |
1587 #else | 1588 #else |
1588 #define ACCESS_MASM(masm) masm-> | 1589 #define ACCESS_MASM(masm) masm-> |
1589 #endif | 1590 #endif |
1590 } // namespace internal | 1591 } // namespace internal |
1591 } // namespace v8 | 1592 } // namespace v8 |
1592 | 1593 |
1593 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1594 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |