| 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 #include "vm/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 8 #if defined(TARGET_ARCH_MIPS) | 8 #if defined(TARGET_ARCH_MIPS) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/instructions.h" | 10 #include "vm/instructions.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 char cur = *str++; | 72 char cur = *str++; |
| 73 while (cur != '\0' && (buffer_pos_ < (buffer_size_ - 1))) { | 73 while (cur != '\0' && (buffer_pos_ < (buffer_size_ - 1))) { |
| 74 buffer_[buffer_pos_++] = cur; | 74 buffer_[buffer_pos_++] = cur; |
| 75 cur = *str++; | 75 cur = *str++; |
| 76 } | 76 } |
| 77 buffer_[buffer_pos_] = '\0'; | 77 buffer_[buffer_pos_] = '\0'; |
| 78 } | 78 } |
| 79 | 79 |
| 80 | 80 |
| 81 static const char* reg_names[kNumberOfCpuRegisters] = { | 81 static const char* reg_names[kNumberOfCpuRegisters] = { |
| 82 "r0" , "r1" , "r2" , "r3" , "r4" , "r5" , "r6" , "r7" , | 82 "zr", "at", "v0", "v1" , "a0", "a1", "a2", "a3", |
| 83 "r8" , "r9" , "r10", "r11", "r12", "r13", "r14", "r15", | 83 "t0", "t1", "t2", "t3" , "t4", "t5", "t6", "t7", |
| 84 "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", | 84 "s0", "s1", "s2", "thr", "s4", "s5", "s6", "pp", |
| 85 "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31", | 85 "t8", "t9", "k0", "k1" , "gp", "sp", "fp", "ra", |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 static const char* freg_names[kNumberOfFRegisters] = { | 89 static const char* freg_names[kNumberOfFRegisters] = { |
| 90 "f0" , "f1" , "f2" , "f3" , "f4" , "f5" , "f6" , "f7" , | 90 "f0" , "f1" , "f2" , "f3" , "f4" , "f5" , "f6" , "f7" , |
| 91 "f8" , "f9" , "f10", "f11", "f12", "f13", "f14", "f15", | 91 "f8" , "f9" , "f10", "f11", "f12", "f13", "f14", "f15", |
| 92 "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", | 92 "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", |
| 93 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", | 93 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", |
| 94 }; | 94 }; |
| 95 | 95 |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 *object = NULL; | 796 *object = NULL; |
| 797 } | 797 } |
| 798 } | 798 } |
| 799 } | 799 } |
| 800 | 800 |
| 801 #endif // !PRODUCT | 801 #endif // !PRODUCT |
| 802 | 802 |
| 803 } // namespace dart | 803 } // namespace dart |
| 804 | 804 |
| 805 #endif // defined TARGET_ARCH_MIPS | 805 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |