| 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_X64) | 5 #if defined(DARTINO_TARGET_X64) |
| 6 | 6 |
| 7 #include <stdarg.h> // NOLINT we don't include assembler_x64.h | 7 #include <stdarg.h> // NOLINT we don't include assembler_x64.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 { kLongRegister = 'l', kQuadRegister = 'q' }; | 12 enum RegisterSize { kLongRegister = 'l', kQuadRegister = 'q' }; |
| 13 | 13 |
| 14 int Label::position_counter_ = 0; | 14 int Label::position_counter_ = 0; |
| 15 | 15 |
| 16 void Assembler::j(Condition condition, Label* label) { | 16 void Assembler::j(Condition condition, Label* label) { |
| 17 static const char* kConditionMnemonics[] = { | 17 static const char* kConditionMnemonics[] = { |
| 18 "o", // OVERFLOW | 18 "o", // OVERFLOW |
| 19 "no", // NO_OVERFLOW | 19 "no", // NO_OVERFLOW |
| 20 "b", // BELOW | 20 "b", // BELOW |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 "np", // PARITY_ODD | 212 "np", // PARITY_ODD |
| 213 "l", // LESS | 213 "l", // LESS |
| 214 "ge", // GREATER_EQUAL | 214 "ge", // GREATER_EQUAL |
| 215 "le", // LESS_EQUAL | 215 "le", // LESS_EQUAL |
| 216 "g" // GREATER | 216 "g" // GREATER |
| 217 }; | 217 }; |
| 218 ASSERT(static_cast<unsigned>(condition) < ARRAY_SIZE(kConditionMnemonics)); | 218 ASSERT(static_cast<unsigned>(condition) < ARRAY_SIZE(kConditionMnemonics)); |
| 219 return kConditionMnemonics[condition]; | 219 return kConditionMnemonics[condition]; |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace fletch | 222 } // namespace dartino |
| 223 | 223 |
| 224 #endif // defined FLETCH_TARGET_X64 | 224 #endif // defined DARTINO_TARGET_X64 |
| OLD | NEW |