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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 356923006: Iterate over PcDescriptors only via iterators, not via an index. (preparation for more compression … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language_arm.cc
===================================================================
--- runtime/vm/intermediate_language_arm.cc (revision 37788)
+++ runtime/vm/intermediate_language_arm.cc (working copy)
@@ -219,7 +219,7 @@
__ LoadImmediate(R5, 0);
__ AddImmediate(R2, Instructions::HeaderSize() - kHeapObjectTag);
__ blx(R2);
- compiler->AddCurrentDescriptor(PcDescriptors::kClosureCall,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
deopt_id(),
token_pos());
compiler->RecordSafepoint(locs());
@@ -231,7 +231,7 @@
} else {
// Add deoptimization continuation point after the call and before the
// arguments are removed.
- compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
deopt_id_after,
token_pos());
}
@@ -951,7 +951,7 @@
__ LoadImmediate(R1, argc_tag);
compiler->GenerateCall(token_pos(),
stub_entry,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
__ Pop(result);
}
@@ -1870,7 +1870,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ MoveRegister(locs->temp(0).reg(), R0);
compiler->RestoreLiveRegisters(locs);
@@ -2319,7 +2319,7 @@
compiler->GenerateCall(token_pos(),
&StubCode::AllocateArrayLabel(),
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
ASSERT(locs()->out(0).reg() == kResultReg);
}
@@ -2344,7 +2344,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ MoveRegister(locs->out(0).reg(), R0);
compiler->RestoreLiveRegisters(locs);
@@ -2376,7 +2376,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ mov(locs->out(0).reg(), Operand(R0));
compiler->RestoreLiveRegisters(locs);
@@ -2408,7 +2408,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ mov(locs->out(0).reg(), Operand(R0));
compiler->RestoreLiveRegisters(locs);
@@ -2693,7 +2693,7 @@
const ExternalLabel label(StubCode::AllocateContextEntryPoint());
compiler->GenerateCall(token_pos(),
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
}
@@ -2808,7 +2808,7 @@
if (FLAG_use_osr && !compiler->is_optimizing() && instruction_->in_loop()) {
// In unoptimized code, record loop stack checks as possible OSR entries.
- compiler->AddCurrentDescriptor(PcDescriptors::kOsrEntry,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kOsrEntry,
instruction_->deopt_id(),
0); // No token position.
}
@@ -3644,7 +3644,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ mov(locs->out(0).reg(), Operand(R0));
compiler->RestoreLiveRegisters(locs);
@@ -5864,7 +5864,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ mov(locs->out(0).reg(), Operand(R0));
compiler->RestoreLiveRegisters(locs);
@@ -6197,7 +6197,7 @@
// On ARM the deoptimization descriptor points after the edge counter
// code so that we can reuse the same pattern matching code as at call
// sites, which matches backwards from the end of the pattern.
- compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
deopt_id_,
Scanner::kNoSourcePos);
}
@@ -6223,7 +6223,7 @@
// points after the edge counter code so that we can reuse the same
// pattern matching code as at call sites, which matches backwards from
// the end of the pattern.
- compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
GetDeoptId(),
Scanner::kNoSourcePos);
}
@@ -6357,7 +6357,7 @@
const ExternalLabel label(stub.EntryPoint());
compiler->GenerateCall(token_pos(),
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
__ Drop(ArgumentCount()); // Discard arguments.
}

Powered by Google App Engine
This is Rietveld 408576698