OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #if defined(FLETCH_TARGET_IA32) | 5 #if defined(DARTINO_TARGET_IA32) |
6 | 6 |
7 #include <stdarg.h> // NOLINT we don't include assembler_x86.h. | 7 #include <stdarg.h> // NOLINT we don't include assembler_x86.h. |
8 #include "src/vm/assembler.h" | 8 #include "src/vm/assembler.h" |
9 | 9 |
10 namespace fletch { | 10 namespace dartino { |
11 | 11 |
12 enum RegisterSize { | 12 enum RegisterSize { |
13 kLongRegister = 'l', | 13 kLongRegister = 'l', |
14 }; | 14 }; |
15 | 15 |
16 int Label::position_counter_ = 0; | 16 int Label::position_counter_ = 0; |
17 | 17 |
18 void Assembler::j(Condition condition, Label* label) { | 18 void Assembler::j(Condition condition, Label* label) { |
19 const char* mnemonic = ConditionMnemonic(condition); | 19 const char* mnemonic = ConditionMnemonic(condition); |
20 printf("\tj%s %s%d\n", mnemonic, kLocalLabelPrefix, label->position()); | 20 printf("\tj%s %s%d\n", mnemonic, kLocalLabelPrefix, label->position()); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 "np", // PARITY_ODD | 184 "np", // PARITY_ODD |
185 "l", // LESS | 185 "l", // LESS |
186 "ge", // GREATER_EQUAL | 186 "ge", // GREATER_EQUAL |
187 "le", // LESS_EQUAL | 187 "le", // LESS_EQUAL |
188 "g" // GREATER | 188 "g" // GREATER |
189 }; | 189 }; |
190 ASSERT(static_cast<unsigned>(condition) < ARRAY_SIZE(kConditionMnemonics)); | 190 ASSERT(static_cast<unsigned>(condition) < ARRAY_SIZE(kConditionMnemonics)); |
191 return kConditionMnemonics[condition]; | 191 return kConditionMnemonics[condition]; |
192 } | 192 } |
193 | 193 |
194 } // namespace fletch | 194 } // namespace dartino |
195 | 195 |
196 #endif // defined FLETCH_TARGET_IA32 | 196 #endif // defined DARTINO_TARGET_IA32 |
OLD | NEW |