| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ASSEMBLER_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
| 6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 // to this frame. | 1120 // to this frame. |
| 1121 void EnterDartFrame(intptr_t frame_size); | 1121 void EnterDartFrame(intptr_t frame_size); |
| 1122 void LeaveDartFrame(); | 1122 void LeaveDartFrame(); |
| 1123 void LeaveDartFrameAndReturn(); | 1123 void LeaveDartFrameAndReturn(); |
| 1124 | 1124 |
| 1125 // Set up a Dart frame for a function compiled for on-stack replacement. | 1125 // Set up a Dart frame for a function compiled for on-stack replacement. |
| 1126 // The frame layout is a normal Dart frame, but the frame is partially set | 1126 // The frame layout is a normal Dart frame, but the frame is partially set |
| 1127 // up on entry (it is the frame of the unoptimized code). | 1127 // up on entry (it is the frame of the unoptimized code). |
| 1128 void EnterOsrFrame(intptr_t extra_size); | 1128 void EnterOsrFrame(intptr_t extra_size); |
| 1129 | 1129 |
| 1130 // On some other platforms, we draw a distinction between safe and unsafe | |
| 1131 // smis. | |
| 1132 static bool IsSafe(const Object& object) { return true; } | |
| 1133 static bool IsSafeSmi(const Object& object) { return true; } | |
| 1134 | |
| 1135 private: | 1130 private: |
| 1136 AssemblerBuffer buffer_; | 1131 AssemblerBuffer buffer_; |
| 1137 GrowableObjectArray& object_pool_; // Objects and patchable jump targets. | 1132 GrowableObjectArray& object_pool_; // Objects and patchable jump targets. |
| 1138 intptr_t prologue_offset_; | 1133 intptr_t prologue_offset_; |
| 1139 | 1134 |
| 1140 const bool use_far_branches_; | 1135 const bool use_far_branches_; |
| 1141 bool delay_slot_available_; | 1136 bool delay_slot_available_; |
| 1142 bool in_delay_slot_; | 1137 bool in_delay_slot_; |
| 1143 | 1138 |
| 1144 int32_t AddObject(const Object& obj); | 1139 int32_t AddObject(const Object& obj); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 Register value, | 1255 Register value, |
| 1261 Label* no_update); | 1256 Label* no_update); |
| 1262 | 1257 |
| 1263 DISALLOW_ALLOCATION(); | 1258 DISALLOW_ALLOCATION(); |
| 1264 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1259 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1265 }; | 1260 }; |
| 1266 | 1261 |
| 1267 } // namespace dart | 1262 } // namespace dart |
| 1268 | 1263 |
| 1269 #endif // VM_ASSEMBLER_MIPS_H_ | 1264 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |