| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 ASSERT(ic_data_reg == ECX); // Stub depends on it. | 401 ASSERT(ic_data_reg == ECX); // Stub depends on it. |
| 402 __ LoadObject(ic_data_reg, equality_ic_data); | 402 __ LoadObject(ic_data_reg, equality_ic_data); |
| 403 compiler->GenerateCall(token_pos, | 403 compiler->GenerateCall(token_pos, |
| 404 &StubCode::EqualityWithNullArgLabel(), | 404 &StubCode::EqualityWithNullArgLabel(), |
| 405 PcDescriptors::kOther, | 405 PcDescriptors::kOther, |
| 406 locs); | 406 locs); |
| 407 __ Drop(2); | 407 __ Drop(2); |
| 408 } | 408 } |
| 409 __ Bind(&check_ne); | 409 __ Bind(&check_ne); |
| 410 if (kind == Token::kNE) { | 410 if (kind == Token::kNE) { |
| 411 Label false_label, true_label, done; | 411 Label true_label, done; |
| 412 // Negate the condition: true label returns false and vice versa. | 412 // Negate the condition: true label returns false and vice versa. |
| 413 __ CompareObject(EAX, Bool::True()); | 413 __ CompareObject(EAX, Bool::True()); |
| 414 __ j(EQUAL, &true_label, Assembler::kNearJump); | 414 __ j(EQUAL, &true_label, Assembler::kNearJump); |
| 415 __ Bind(&false_label); | |
| 416 __ LoadObject(EAX, Bool::True()); | 415 __ LoadObject(EAX, Bool::True()); |
| 417 __ jmp(&done, Assembler::kNearJump); | 416 __ jmp(&done, Assembler::kNearJump); |
| 418 __ Bind(&true_label); | 417 __ Bind(&true_label); |
| 419 __ LoadObject(EAX, Bool::False()); | 418 __ LoadObject(EAX, Bool::False()); |
| 420 __ Bind(&done); | 419 __ Bind(&done); |
| 421 } | 420 } |
| 422 __ Bind(&equality_done); | 421 __ Bind(&equality_done); |
| 423 } | 422 } |
| 424 | 423 |
| 425 | 424 |
| (...skipping 3294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3720 PcDescriptors::kOther, | 3719 PcDescriptors::kOther, |
| 3721 locs()); | 3720 locs()); |
| 3722 __ Drop(2); // Discard type arguments and receiver. | 3721 __ Drop(2); // Discard type arguments and receiver. |
| 3723 } | 3722 } |
| 3724 | 3723 |
| 3725 } // namespace dart | 3724 } // namespace dart |
| 3726 | 3725 |
| 3727 #undef __ | 3726 #undef __ |
| 3728 | 3727 |
| 3729 #endif // defined TARGET_ARCH_IA32 | 3728 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |