| 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 6278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6289 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6289 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6290 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 6290 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 6291 const ExternalLabel label(stub.EntryPoint()); | 6291 const ExternalLabel label(stub.EntryPoint()); |
| 6292 compiler->GenerateCall(token_pos(), | 6292 compiler->GenerateCall(token_pos(), |
| 6293 &label, | 6293 &label, |
| 6294 PcDescriptors::kOther, | 6294 PcDescriptors::kOther, |
| 6295 locs()); | 6295 locs()); |
| 6296 __ Drop(ArgumentCount()); // Discard arguments. | 6296 __ Drop(ArgumentCount()); // Discard arguments. |
| 6297 } | 6297 } |
| 6298 | 6298 |
| 6299 |
| 6300 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6301 ASSERT(!compiler->is_optimizing()); |
| 6302 const ExternalLabel label(StubCode::DebugStepCheckEntryPoint()); |
| 6303 __ movl(EDX, Immediate(0)); |
| 6304 __ movl(ECX, Immediate(0)); |
| 6305 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 6306 #if defined(DEBUG) |
| 6307 __ movl(EDX, Immediate(1)); // Garbage that looks like an object. |
| 6308 __ movl(EDX, Immediate(1)); |
| 6309 #endif |
| 6310 } |
| 6311 |
| 6299 } // namespace dart | 6312 } // namespace dart |
| 6300 | 6313 |
| 6301 #undef __ | 6314 #undef __ |
| 6302 | 6315 |
| 6303 #endif // defined TARGET_ARCH_IA32 | 6316 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |