| 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_CONSTANTS_MIPS_H_ | 5 #ifndef VM_CONSTANTS_MIPS_H_ |
| 6 #define VM_CONSTANTS_MIPS_H_ | 6 #define VM_CONSTANTS_MIPS_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 public: | 460 public: |
| 461 enum { | 461 enum { |
| 462 kInstrSize = 4, | 462 kInstrSize = 4, |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 static const int32_t kNopInstruction = 0; | 465 static const int32_t kNopInstruction = 0; |
| 466 | 466 |
| 467 // Reserved break instruction codes. | 467 // Reserved break instruction codes. |
| 468 static const int32_t kBreakPointCode = 0xdeb0; // For breakpoint. | 468 static const int32_t kBreakPointCode = 0xdeb0; // For breakpoint. |
| 469 static const int32_t kStopMessageCode = 0xdeb1; // For Stop(message). | 469 static const int32_t kStopMessageCode = 0xdeb1; // For Stop(message). |
| 470 static const int32_t kSimulatorMessageCode = 0xdeb2; // For trace msg in sim. | 470 static const int32_t kSimulatorBreakCode = 0xdeb2; // For breakpoint in sim. |
| 471 static const int32_t kSimulatorBreakCode = 0xdeb3; // For breakpoint in sim. | |
| 472 static const int32_t kSimulatorRedirectCode = 0xca11; // For redirection. | 471 static const int32_t kSimulatorRedirectCode = 0xca11; // For redirection. |
| 473 | 472 |
| 474 static const int32_t kBreakPointZeroInstruction = | 473 static const int32_t kBreakPointZeroInstruction = |
| 475 (SPECIAL << kOpcodeShift) | (BREAK << kFunctionShift); | 474 (SPECIAL << kOpcodeShift) | (BREAK << kFunctionShift); |
| 476 | 475 |
| 477 // Breakpoint instruction filling assembler code buffers in debug mode. | 476 // Breakpoint instruction filling assembler code buffers in debug mode. |
| 478 static const int32_t kBreakPointInstruction = | 477 static const int32_t kBreakPointInstruction = |
| 479 kBreakPointZeroInstruction | (kBreakPointCode << kBreakCodeShift); | 478 kBreakPointZeroInstruction | (kBreakPointCode << kBreakCodeShift); |
| 480 | 479 |
| 481 // Breakpoint instruction used by the simulator. | 480 // Breakpoint instruction used by the simulator. |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 #endif // defined(DEBUG) | 638 #endif // defined(DEBUG) |
| 640 | 639 |
| 641 private: | 640 private: |
| 642 DISALLOW_ALLOCATION(); | 641 DISALLOW_ALLOCATION(); |
| 643 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 642 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 644 }; | 643 }; |
| 645 | 644 |
| 646 } // namespace dart | 645 } // namespace dart |
| 647 | 646 |
| 648 #endif // VM_CONSTANTS_MIPS_H_ | 647 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |