| 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/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 247 } |
| 248 | 248 |
| 249 | 249 |
| 250 static Condition TokenKindToSmiCondition(Token::Kind kind) { | 250 static Condition TokenKindToSmiCondition(Token::Kind kind) { |
| 251 switch (kind) { | 251 switch (kind) { |
| 252 case Token::kEQ: return EQUAL; | 252 case Token::kEQ: return EQUAL; |
| 253 case Token::kNE: return NOT_EQUAL; | 253 case Token::kNE: return NOT_EQUAL; |
| 254 case Token::kLT: return LESS; | 254 case Token::kLT: return LESS; |
| 255 case Token::kGT: return GREATER; | 255 case Token::kGT: return GREATER; |
| 256 case Token::kLTE: return LESS_EQUAL; | 256 case Token::kLTE: return LESS_EQUAL; |
| 257 case Token::kGTE: return GREATER_EQUAL; | 257 case Token::kGTE: return GREATER_EQUAL; |
| 258 default: | 258 default: |
| 259 UNREACHABLE(); | 259 UNREACHABLE(); |
| 260 return OVERFLOW; | 260 return OVERFLOW; |
| 261 } | 261 } |
| 262 } | 262 } |
| 263 | 263 |
| 264 | 264 |
| 265 LocationSummary* EqualityCompareInstr::MakeLocationSummary() const { | 265 LocationSummary* EqualityCompareInstr::MakeLocationSummary() const { |
| 266 const intptr_t kNumInputs = 2; | 266 const intptr_t kNumInputs = 2; |
| 267 const bool is_checked_strict_equal = | 267 const bool is_checked_strict_equal = |
| (...skipping 3451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3719 PcDescriptors::kOther, | 3719 PcDescriptors::kOther, |
| 3720 locs()); | 3720 locs()); |
| 3721 __ Drop(2); // Discard type arguments and receiver. | 3721 __ Drop(2); // Discard type arguments and receiver. |
| 3722 } | 3722 } |
| 3723 | 3723 |
| 3724 } // namespace dart | 3724 } // namespace dart |
| 3725 | 3725 |
| 3726 #undef __ | 3726 #undef __ |
| 3727 | 3727 |
| 3728 #endif // defined TARGET_ARCH_IA32 | 3728 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |