| 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 29 matching lines...) Expand all Loading... |
| 40 int32_t value_; | 40 int32_t value_; |
| 41 | 41 |
| 42 int32_t value() const { return value_; } | 42 int32_t value() const { return value_; } |
| 43 | 43 |
| 44 friend class Assembler; | 44 friend class Assembler; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 | 47 |
| 48 class Address : public ValueObject { | 48 class Address : public ValueObject { |
| 49 public: | 49 public: |
| 50 Address(Register base, int32_t offset = 0) | 50 explicit Address(Register base, int32_t offset = 0) |
| 51 : ValueObject(), base_(base), offset_(offset) { } | 51 : ValueObject(), base_(base), offset_(offset) { } |
| 52 | 52 |
| 53 Address(const Address& other) | 53 Address(const Address& other) |
| 54 : ValueObject(), base_(other.base_), offset_(other.offset_) { } | 54 : ValueObject(), base_(other.base_), offset_(other.offset_) { } |
| 55 Address& operator=(const Address& other) { | 55 Address& operator=(const Address& other) { |
| 56 base_ = other.base_; | 56 base_ = other.base_; |
| 57 offset_ = other.offset_; | 57 offset_ = other.offset_; |
| 58 return *this; | 58 return *this; |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 // Inlined allocation of an instance of class 'cls', code has no runtime | 208 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 209 // calls. Jump to 'failure' if the instance cannot be allocated here. | 209 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 210 // Allocated instance is returned in 'instance_reg'. | 210 // Allocated instance is returned in 'instance_reg'. |
| 211 // Only the tags field of the object is initialized. | 211 // Only the tags field of the object is initialized. |
| 212 void TryAllocate(const Class& cls, | 212 void TryAllocate(const Class& cls, |
| 213 Label* failure, | 213 Label* failure, |
| 214 Register instance_reg, | 214 Register instance_reg, |
| 215 Register temp_reg); | 215 Register temp_reg); |
| 216 | 216 |
| 217 void TryAllocateArray(intptr_t cid, |
| 218 intptr_t instance_size, |
| 219 Label* failure, |
| 220 Register instance, |
| 221 Register end_address, |
| 222 Register temp1, |
| 223 Register temp2); |
| 224 |
| 217 // Debugging and bringup support. | 225 // Debugging and bringup support. |
| 218 void Stop(const char* message); | 226 void Stop(const char* message); |
| 219 | 227 |
| 220 // TODO(zra): TraceSimMsg enables printing of helpful messages when | 228 // TODO(zra): TraceSimMsg enables printing of helpful messages when |
| 221 // --trace_sim is given. Eventually these calls will be changed to Comment. | 229 // --trace_sim is given. Eventually these calls will be changed to Comment. |
| 222 void TraceSimMsg(const char* message); | 230 void TraceSimMsg(const char* message); |
| 223 void Unimplemented(const char* message); | 231 void Unimplemented(const char* message); |
| 224 void Untested(const char* message); | 232 void Untested(const char* message); |
| 225 void Unreachable(const char* message); | 233 void Unreachable(const char* message); |
| 226 | 234 |
| (...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 Register value, | 1376 Register value, |
| 1369 Label* no_update); | 1377 Label* no_update); |
| 1370 | 1378 |
| 1371 DISALLOW_ALLOCATION(); | 1379 DISALLOW_ALLOCATION(); |
| 1372 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1380 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1373 }; | 1381 }; |
| 1374 | 1382 |
| 1375 } // namespace dart | 1383 } // namespace dart |
| 1376 | 1384 |
| 1377 #endif // VM_ASSEMBLER_MIPS_H_ | 1385 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |