Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: runtime/vm/intermediate_language_mips.cc

Issue 2391723002: VM+RISC: Share object pool entries for allocation stubs. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler.h" 10 #include "vm/compiler.h"
(...skipping 5737 matching lines...) Expand 10 before | Expand all | Expand 10 after
5748 stub_entry, 5748 stub_entry,
5749 RawPcDescriptors::kOther, 5749 RawPcDescriptors::kOther,
5750 locs()); 5750 locs());
5751 compiler->AddStubCallTarget(stub); 5751 compiler->AddStubCallTarget(stub);
5752 __ Drop(ArgumentCount()); // Discard arguments. 5752 __ Drop(ArgumentCount()); // Discard arguments.
5753 } 5753 }
5754 5754
5755 5755
5756 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5756 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5757 ASSERT(!compiler->is_optimizing()); 5757 ASSERT(!compiler->is_optimizing());
5758 compiler->GenerateCall( 5758 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry());
5759 token_pos(), *StubCode::DebugStepCheck_entry(), stub_kind_, locs()); 5759 compiler->AddCurrentDescriptor(stub_kind_, Thread::kNoDeoptId, token_pos());
5760 compiler->RecordSafepoint(locs());
5760 } 5761 }
5761 5762
5762 5763
5763 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( 5764 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(
5764 Zone* zone, bool opt) const { 5765 Zone* zone, bool opt) const {
5765 const intptr_t kNumInputs = 1; 5766 const intptr_t kNumInputs = 1;
5766 const intptr_t kNumTemps = 0; 5767 const intptr_t kNumTemps = 0;
5767 LocationSummary* locs = new(zone) LocationSummary( 5768 LocationSummary* locs = new(zone) LocationSummary(
5768 zone, kNumInputs, kNumTemps, LocationSummary::kCall); 5769 zone, kNumInputs, kNumTemps, LocationSummary::kCall);
5769 locs->set_in(0, Location::RegisterLocation(T0)); 5770 locs->set_in(0, Location::RegisterLocation(T0));
(...skipping 16 matching lines...) Expand all
5786 1, 5787 1,
5787 locs()); 5788 locs());
5788 __ lw(result, Address(SP, 1 * kWordSize)); 5789 __ lw(result, Address(SP, 1 * kWordSize));
5789 __ addiu(SP, SP, Immediate(2 * kWordSize)); 5790 __ addiu(SP, SP, Immediate(2 * kWordSize));
5790 } 5791 }
5791 5792
5792 5793
5793 } // namespace dart 5794 } // namespace dart
5794 5795
5795 #endif // defined TARGET_ARCH_MIPS 5796 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698