| 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 "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 ASSERT(locs->always_calls()); | 342 ASSERT(locs->always_calls()); |
| 343 Label done; | 343 Label done; |
| 344 __ CompareObject(reg, Bool::True(), PP); | 344 __ CompareObject(reg, Bool::True(), PP); |
| 345 __ j(EQUAL, &done, Assembler::kNearJump); | 345 __ j(EQUAL, &done, Assembler::kNearJump); |
| 346 __ CompareObject(reg, Bool::False(), PP); | 346 __ CompareObject(reg, Bool::False(), PP); |
| 347 __ j(EQUAL, &done, Assembler::kNearJump); | 347 __ j(EQUAL, &done, Assembler::kNearJump); |
| 348 | 348 |
| 349 __ pushq(reg); // Push the source object. | 349 __ pushq(reg); // Push the source object. |
| 350 compiler->GenerateRuntimeCall(token_pos, | 350 compiler->GenerateRuntimeCall(token_pos, |
| 351 deopt_id, | 351 deopt_id, |
| 352 kConditionTypeErrorRuntimeEntry, | 352 kNonBoolTypeErrorRuntimeEntry, |
| 353 1, | 353 1, |
| 354 locs); | 354 locs); |
| 355 // We should never return here. | 355 // We should never return here. |
| 356 __ int3(); | 356 __ int3(); |
| 357 __ Bind(&done); | 357 __ Bind(&done); |
| 358 } | 358 } |
| 359 | 359 |
| 360 | 360 |
| 361 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 361 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 362 Register obj = locs()->in(0).reg(); | 362 Register obj = locs()->in(0).reg(); |
| (...skipping 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4806 PcDescriptors::kOther, | 4806 PcDescriptors::kOther, |
| 4807 locs()); | 4807 locs()); |
| 4808 __ Drop(2); // Discard type arguments and receiver. | 4808 __ Drop(2); // Discard type arguments and receiver. |
| 4809 } | 4809 } |
| 4810 | 4810 |
| 4811 } // namespace dart | 4811 } // namespace dart |
| 4812 | 4812 |
| 4813 #undef __ | 4813 #undef __ |
| 4814 | 4814 |
| 4815 #endif // defined TARGET_ARCH_X64 | 4815 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |