| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 4506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4517 } | 4517 } |
| 4518 } | 4518 } |
| 4519 | 4519 |
| 4520 | 4520 |
| 4521 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { | 4521 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { |
| 4522 return MakeCallSummary(); | 4522 return MakeCallSummary(); |
| 4523 } | 4523 } |
| 4524 | 4524 |
| 4525 | 4525 |
| 4526 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4526 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4527 const Class& cls = Class::ZoneHandle(constructor().Owner()); | 4527 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 4528 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); | 4528 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
| 4529 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); | |
| 4530 compiler->GenerateCall(token_pos(), | 4529 compiler->GenerateCall(token_pos(), |
| 4531 &label, | 4530 &label, |
| 4532 PcDescriptors::kOther, | 4531 PcDescriptors::kOther, |
| 4533 locs()); | 4532 locs()); |
| 4534 __ Drop(ArgumentCount()); // Discard arguments. | 4533 __ Drop(ArgumentCount()); // Discard arguments. |
| 4535 } | 4534 } |
| 4536 | 4535 |
| 4537 | 4536 |
| 4538 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { | 4537 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { |
| 4539 return MakeCallSummary(); | 4538 return MakeCallSummary(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4551 PcDescriptors::kOther, | 4550 PcDescriptors::kOther, |
| 4552 locs()); | 4551 locs()); |
| 4553 __ Drop(2); // Discard type arguments and receiver. | 4552 __ Drop(2); // Discard type arguments and receiver. |
| 4554 } | 4553 } |
| 4555 | 4554 |
| 4556 } // namespace dart | 4555 } // namespace dart |
| 4557 | 4556 |
| 4558 #undef __ | 4557 #undef __ |
| 4559 | 4558 |
| 4560 #endif // defined TARGET_ARCH_X64 | 4559 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |