| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 } | 411 } |
| 412 } else { | 412 } else { |
| 413 // Call stub, load IC data in register. The stub will update ICData if | 413 // Call stub, load IC data in register. The stub will update ICData if |
| 414 // necessary. | 414 // necessary. |
| 415 Register ic_data_reg = locs->temp(0).reg(); | 415 Register ic_data_reg = locs->temp(0).reg(); |
| 416 ASSERT(ic_data_reg == T0); // Stub depends on it. | 416 ASSERT(ic_data_reg == T0); // Stub depends on it. |
| 417 __ LoadObject(ic_data_reg, equality_ic_data); | 417 __ LoadObject(ic_data_reg, equality_ic_data); |
| 418 // Pass left in A1 and right in A0. | 418 // Pass left in A1 and right in A0. |
| 419 compiler->GenerateCall(token_pos, | 419 compiler->GenerateCall(token_pos, |
| 420 &StubCode::EqualityWithNullArgLabel(), | 420 &StubCode::EqualityWithNullArgLabel(), |
| 421 PcDescriptors::kEqualNull, | 421 PcDescriptors::kRuntimeCall, |
| 422 locs); | 422 locs); |
| 423 } | 423 } |
| 424 __ Bind(&check_ne); | 424 __ Bind(&check_ne); |
| 425 if (kind == Token::kNE) { | 425 if (kind == Token::kNE) { |
| 426 Label true_label, done; | 426 Label true_label, done; |
| 427 // Negate the condition: true label returns false and vice versa. | 427 // Negate the condition: true label returns false and vice versa. |
| 428 __ BranchEqual(V0, Bool::True(), &true_label); | 428 __ BranchEqual(V0, Bool::True(), &true_label); |
| 429 __ LoadObject(V0, Bool::True()); | 429 __ LoadObject(V0, Bool::True()); |
| 430 __ b(&done); | 430 __ b(&done); |
| 431 __ Bind(&true_label); | 431 __ Bind(&true_label); |
| (...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2893 compiler->GenerateCall(token_pos(), | 2893 compiler->GenerateCall(token_pos(), |
| 2894 &label, | 2894 &label, |
| 2895 PcDescriptors::kOther, | 2895 PcDescriptors::kOther, |
| 2896 locs()); | 2896 locs()); |
| 2897 __ Drop(2); // Discard type arguments and receiver. | 2897 __ Drop(2); // Discard type arguments and receiver. |
| 2898 } | 2898 } |
| 2899 | 2899 |
| 2900 } // namespace dart | 2900 } // namespace dart |
| 2901 | 2901 |
| 2902 #endif // defined TARGET_ARCH_MIPS | 2902 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |