| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 4192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4203 __ Comment("AllocateObjectInstr"); | 4203 __ Comment("AllocateObjectInstr"); |
| 4204 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 4204 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 4205 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); | 4205 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
| 4206 compiler->GenerateCall(token_pos(), | 4206 compiler->GenerateCall(token_pos(), |
| 4207 &label, | 4207 &label, |
| 4208 PcDescriptors::kOther, | 4208 PcDescriptors::kOther, |
| 4209 locs()); | 4209 locs()); |
| 4210 __ Drop(ArgumentCount()); // Discard arguments. | 4210 __ Drop(ArgumentCount()); // Discard arguments. |
| 4211 } | 4211 } |
| 4212 | 4212 |
| 4213 | |
| 4214 LocationSummary* CreateClosureInstr::MakeLocationSummary(bool opt) const { | |
| 4215 return MakeCallSummary(); | |
| 4216 } | |
| 4217 | |
| 4218 | |
| 4219 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 4220 __ Comment("CreateClosureInstr"); | |
| 4221 const Function& closure_function = function(); | |
| 4222 ASSERT(!closure_function.IsImplicitStaticClosureFunction()); | |
| 4223 const Code& stub = Code::Handle( | |
| 4224 StubCode::GetAllocationStubForClosure(closure_function)); | |
| 4225 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | |
| 4226 compiler->GenerateCall(token_pos(), | |
| 4227 &label, | |
| 4228 PcDescriptors::kOther, | |
| 4229 locs()); | |
| 4230 __ Drop(2); // Discard type arguments and receiver. | |
| 4231 } | |
| 4232 | |
| 4233 } // namespace dart | 4213 } // namespace dart |
| 4234 | 4214 |
| 4235 #endif // defined TARGET_ARCH_MIPS | 4215 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |