| 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 "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 ASSERT(locs->always_calls()); | 189 ASSERT(locs->always_calls()); |
| 190 Label done; | 190 Label done; |
| 191 __ CompareObject(reg, Bool::True()); | 191 __ CompareObject(reg, Bool::True()); |
| 192 __ j(EQUAL, &done, Assembler::kNearJump); | 192 __ j(EQUAL, &done, Assembler::kNearJump); |
| 193 __ CompareObject(reg, Bool::False()); | 193 __ CompareObject(reg, Bool::False()); |
| 194 __ j(EQUAL, &done, Assembler::kNearJump); | 194 __ j(EQUAL, &done, Assembler::kNearJump); |
| 195 | 195 |
| 196 __ pushl(reg); // Push the source object. | 196 __ pushl(reg); // Push the source object. |
| 197 compiler->GenerateRuntimeCall(token_pos, | 197 compiler->GenerateRuntimeCall(token_pos, |
| 198 deopt_id, | 198 deopt_id, |
| 199 kConditionTypeErrorRuntimeEntry, | 199 kNonBoolTypeErrorRuntimeEntry, |
| 200 1, | 200 1, |
| 201 locs); | 201 locs); |
| 202 // We should never return here. | 202 // We should never return here. |
| 203 __ int3(); | 203 __ int3(); |
| 204 __ Bind(&done); | 204 __ Bind(&done); |
| 205 } | 205 } |
| 206 | 206 |
| 207 | 207 |
| 208 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 208 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 209 Register obj = locs()->in(0).reg(); | 209 Register obj = locs()->in(0).reg(); |
| (...skipping 4963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5173 PcDescriptors::kOther, | 5173 PcDescriptors::kOther, |
| 5174 locs()); | 5174 locs()); |
| 5175 __ Drop(2); // Discard type arguments and receiver. | 5175 __ Drop(2); // Discard type arguments and receiver. |
| 5176 } | 5176 } |
| 5177 | 5177 |
| 5178 } // namespace dart | 5178 } // namespace dart |
| 5179 | 5179 |
| 5180 #undef __ | 5180 #undef __ |
| 5181 | 5181 |
| 5182 #endif // defined TARGET_ARCH_IA32 | 5182 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |