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_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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 | 256 |
257 | 257 |
258 static Condition TokenKindToSmiCondition(Token::Kind kind) { | 258 static Condition TokenKindToSmiCondition(Token::Kind kind) { |
259 switch (kind) { | 259 switch (kind) { |
260 case Token::kEQ: return EQUAL; | 260 case Token::kEQ: return EQUAL; |
261 case Token::kNE: return NOT_EQUAL; | 261 case Token::kNE: return NOT_EQUAL; |
262 case Token::kLT: return LESS; | 262 case Token::kLT: return LESS; |
263 case Token::kGT: return GREATER; | 263 case Token::kGT: return GREATER; |
264 case Token::kLTE: return LESS_EQUAL; | 264 case Token::kLTE: return LESS_EQUAL; |
265 case Token::kGTE: return GREATER_EQUAL; | 265 case Token::kGTE: return GREATER_EQUAL; |
266 default: | 266 default: |
267 UNREACHABLE(); | 267 UNREACHABLE(); |
268 return OVERFLOW; | 268 return OVERFLOW; |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 | 272 |
273 LocationSummary* EqualityCompareInstr::MakeLocationSummary() const { | 273 LocationSummary* EqualityCompareInstr::MakeLocationSummary() const { |
274 const intptr_t kNumInputs = 2; | 274 const intptr_t kNumInputs = 2; |
275 const bool is_checked_strict_equal = | 275 const bool is_checked_strict_equal = |
(...skipping 3080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 PcDescriptors::kOther, | 3356 PcDescriptors::kOther, |
3357 locs()); | 3357 locs()); |
3358 __ Drop(2); // Discard type arguments and receiver. | 3358 __ Drop(2); // Discard type arguments and receiver. |
3359 } | 3359 } |
3360 | 3360 |
3361 } // namespace dart | 3361 } // namespace dart |
3362 | 3362 |
3363 #undef __ | 3363 #undef __ |
3364 | 3364 |
3365 #endif // defined TARGET_ARCH_X64 | 3365 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |