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 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5355 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
5356 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 5356 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
5357 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); | 5357 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
5358 compiler->GenerateCall(token_pos(), | 5358 compiler->GenerateCall(token_pos(), |
5359 &label, | 5359 &label, |
5360 PcDescriptors::kOther, | 5360 PcDescriptors::kOther, |
5361 locs()); | 5361 locs()); |
5362 __ Drop(ArgumentCount()); // Discard arguments. | 5362 __ Drop(ArgumentCount()); // Discard arguments. |
5363 } | 5363 } |
5364 | 5364 |
5365 | |
5366 LocationSummary* CreateClosureInstr::MakeLocationSummary(bool opt) const { | |
5367 return MakeCallSummary(); | |
5368 } | |
5369 | |
5370 | |
5371 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
5372 const Function& closure_function = function(); | |
5373 ASSERT(!closure_function.IsImplicitStaticClosureFunction()); | |
5374 const Code& stub = Code::Handle( | |
5375 StubCode::GetAllocationStubForClosure(closure_function)); | |
5376 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | |
5377 compiler->GenerateCall(token_pos(), | |
5378 &label, | |
5379 PcDescriptors::kOther, | |
5380 locs()); | |
5381 __ Drop(2); // Discard type arguments and receiver. | |
5382 } | |
5383 | |
5384 } // namespace dart | 5365 } // namespace dart |
5385 | 5366 |
5386 #undef __ | 5367 #undef __ |
5387 | 5368 |
5388 #endif // defined TARGET_ARCH_IA32 | 5369 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |