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 4167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4178 __ Comment("AllocateObjectInstr"); | 4178 __ Comment("AllocateObjectInstr"); |
4179 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 4179 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
4180 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); | 4180 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
4181 compiler->GenerateCall(token_pos(), | 4181 compiler->GenerateCall(token_pos(), |
4182 &label, | 4182 &label, |
4183 PcDescriptors::kOther, | 4183 PcDescriptors::kOther, |
4184 locs()); | 4184 locs()); |
4185 __ Drop(ArgumentCount()); // Discard arguments. | 4185 __ Drop(ArgumentCount()); // Discard arguments. |
4186 } | 4186 } |
4187 | 4187 |
4188 | |
4189 LocationSummary* CreateClosureInstr::MakeLocationSummary(bool opt) const { | |
4190 return MakeCallSummary(); | |
4191 } | |
4192 | |
4193 | |
4194 void CreateClosureInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
4195 __ Comment("CreateClosureInstr"); | |
4196 const Function& closure_function = function(); | |
4197 ASSERT(!closure_function.IsImplicitStaticClosureFunction()); | |
4198 const Code& stub = Code::Handle( | |
4199 StubCode::GetAllocationStubForClosure(closure_function)); | |
4200 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | |
4201 compiler->GenerateCall(token_pos(), | |
4202 &label, | |
4203 PcDescriptors::kOther, | |
4204 locs()); | |
4205 __ Drop(2); // Discard type arguments and receiver. | |
4206 } | |
4207 | |
4208 } // namespace dart | 4188 } // namespace dart |
4209 | 4189 |
4210 #endif // defined TARGET_ARCH_MIPS | 4190 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |