| 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 __ jmp(&equality_done); | 401 __ jmp(&equality_done); |
| 402 } | 402 } |
| 403 } else { | 403 } else { |
| 404 // Call stub, load IC data in register. The stub will update ICData if | 404 // Call stub, load IC data in register. The stub will update ICData if |
| 405 // necessary. | 405 // necessary. |
| 406 Register ic_data_reg = locs->temp(0).reg(); | 406 Register ic_data_reg = locs->temp(0).reg(); |
| 407 ASSERT(ic_data_reg == ECX); // Stub depends on it. | 407 ASSERT(ic_data_reg == ECX); // Stub depends on it. |
| 408 __ LoadObject(ic_data_reg, equality_ic_data); | 408 __ LoadObject(ic_data_reg, equality_ic_data); |
| 409 compiler->GenerateCall(token_pos, | 409 compiler->GenerateCall(token_pos, |
| 410 &StubCode::EqualityWithNullArgLabel(), | 410 &StubCode::EqualityWithNullArgLabel(), |
| 411 PcDescriptors::kEqualNull, | 411 PcDescriptors::kRuntimeCall, |
| 412 locs); | 412 locs); |
| 413 __ Drop(2); | 413 __ Drop(2); |
| 414 } | 414 } |
| 415 __ Bind(&check_ne); | 415 __ Bind(&check_ne); |
| 416 if (kind == Token::kNE) { | 416 if (kind == Token::kNE) { |
| 417 Label true_label, done; | 417 Label true_label, done; |
| 418 // Negate the condition: true label returns false and vice versa. | 418 // Negate the condition: true label returns false and vice versa. |
| 419 __ CompareObject(EAX, Bool::True()); | 419 __ CompareObject(EAX, Bool::True()); |
| 420 __ j(EQUAL, &true_label, Assembler::kNearJump); | 420 __ j(EQUAL, &true_label, Assembler::kNearJump); |
| 421 __ LoadObject(EAX, Bool::True()); | 421 __ LoadObject(EAX, Bool::True()); |
| (...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4685 PcDescriptors::kOther, | 4685 PcDescriptors::kOther, |
| 4686 locs()); | 4686 locs()); |
| 4687 __ Drop(2); // Discard type arguments and receiver. | 4687 __ Drop(2); // Discard type arguments and receiver. |
| 4688 } | 4688 } |
| 4689 | 4689 |
| 4690 } // namespace dart | 4690 } // namespace dart |
| 4691 | 4691 |
| 4692 #undef __ | 4692 #undef __ |
| 4693 | 4693 |
| 4694 #endif // defined TARGET_ARCH_IA32 | 4694 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |