| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 ASSERT(locs->always_calls()); | 241 ASSERT(locs->always_calls()); |
| 242 Label done; | 242 Label done; |
| 243 __ CompareObject(reg, Bool::True()); | 243 __ CompareObject(reg, Bool::True()); |
| 244 __ b(&done, EQ); | 244 __ b(&done, EQ); |
| 245 __ CompareObject(reg, Bool::False()); | 245 __ CompareObject(reg, Bool::False()); |
| 246 __ b(&done, EQ); | 246 __ b(&done, EQ); |
| 247 | 247 |
| 248 __ Push(reg); // Push the source object. | 248 __ Push(reg); // Push the source object. |
| 249 compiler->GenerateRuntimeCall(token_pos, | 249 compiler->GenerateRuntimeCall(token_pos, |
| 250 deopt_id, | 250 deopt_id, |
| 251 kConditionTypeErrorRuntimeEntry, | 251 kNonBoolTypeErrorRuntimeEntry, |
| 252 1, | 252 1, |
| 253 locs); | 253 locs); |
| 254 // We should never return here. | 254 // We should never return here. |
| 255 __ bkpt(0); | 255 __ bkpt(0); |
| 256 __ Bind(&done); | 256 __ Bind(&done); |
| 257 } | 257 } |
| 258 | 258 |
| 259 | 259 |
| 260 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 260 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 261 Register obj = locs()->in(0).reg(); | 261 Register obj = locs()->in(0).reg(); |
| (...skipping 4423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4685 compiler->GenerateCall(token_pos(), | 4685 compiler->GenerateCall(token_pos(), |
| 4686 &label, | 4686 &label, |
| 4687 PcDescriptors::kOther, | 4687 PcDescriptors::kOther, |
| 4688 locs()); | 4688 locs()); |
| 4689 __ Drop(2); // Discard type arguments and receiver. | 4689 __ Drop(2); // Discard type arguments and receiver. |
| 4690 } | 4690 } |
| 4691 | 4691 |
| 4692 } // namespace dart | 4692 } // namespace dart |
| 4693 | 4693 |
| 4694 #endif // defined TARGET_ARCH_ARM | 4694 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |