| 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 4986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4997 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4997 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4998 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 4998 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 4999 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); | 4999 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
| 5000 compiler->GenerateCall(token_pos(), | 5000 compiler->GenerateCall(token_pos(), |
| 5001 &label, | 5001 &label, |
| 5002 PcDescriptors::kOther, | 5002 PcDescriptors::kOther, |
| 5003 locs()); | 5003 locs()); |
| 5004 __ Drop(ArgumentCount()); // Discard arguments. | 5004 __ Drop(ArgumentCount()); // Discard arguments. |
| 5005 } | 5005 } |
| 5006 | 5006 |
| 5007 | |
| 5008 LocationSummary* CreateClosureInstr::MakeLocationSummary(bool opt) const { | |
| 5009 return MakeCallSummary(); | |
| 5010 } | |
| 5011 | |
| 5012 | |
| 5013 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 5014 const Function& closure_function = function(); | |
| 5015 ASSERT(!closure_function.IsImplicitStaticClosureFunction()); | |
| 5016 const Code& stub = Code::Handle( | |
| 5017 StubCode::GetAllocationStubForClosure(closure_function)); | |
| 5018 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | |
| 5019 compiler->GenerateCall(token_pos(), | |
| 5020 &label, | |
| 5021 PcDescriptors::kOther, | |
| 5022 locs()); | |
| 5023 __ Drop(2); // Discard type arguments and receiver. | |
| 5024 } | |
| 5025 | |
| 5026 } // namespace dart | 5007 } // namespace dart |
| 5027 | 5008 |
| 5028 #endif // defined TARGET_ARCH_ARM | 5009 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |