| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 | 314 |
| 315 | 315 |
| 316 static Condition TokenKindToDoubleCondition(Token::Kind kind) { | 316 static Condition TokenKindToDoubleCondition(Token::Kind kind) { |
| 317 switch (kind) { | 317 switch (kind) { |
| 318 case Token::kEQ: return EQUAL; | 318 case Token::kEQ: return EQUAL; |
| 319 case Token::kLT: return BELOW; | 319 case Token::kLT: return BELOW; |
| 320 case Token::kGT: return ABOVE; | 320 case Token::kGT: return ABOVE; |
| 321 case Token::kLTE: return BELOW_EQUAL; | 321 case Token::kLTE: return BELOW_EQUAL; |
| 322 case Token::kGTE: return ABOVE_EQUAL; |
| 322 default: | 323 default: |
| 323 UNREACHABLE(); | 324 UNREACHABLE(); |
| 324 return OVERFLOW; | 325 return OVERFLOW; |
| 325 } | 326 } |
| 326 } | 327 } |
| 327 | 328 |
| 328 | 329 |
| 329 static void EmitDoubleRelationalOp(FlowGraphCompiler* compiler, | 330 static void EmitDoubleRelationalOp(FlowGraphCompiler* compiler, |
| 330 RelationalOpComp* comp) { | 331 RelationalOpComp* comp) { |
| 331 Register left = comp->locs()->in(0).reg(); | 332 Register left = comp->locs()->in(0).reg(); |
| (...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 } else { | 1389 } else { |
| 1389 UNREACHABLE(); | 1390 UNREACHABLE(); |
| 1390 } | 1391 } |
| 1391 } | 1392 } |
| 1392 | 1393 |
| 1393 } // namespace dart | 1394 } // namespace dart |
| 1394 | 1395 |
| 1395 #undef __ | 1396 #undef __ |
| 1396 | 1397 |
| 1397 #endif // defined TARGET_ARCH_X64 | 1398 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |