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

Unified Diff: runtime/vm/intermediate_language_mips.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, 5 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_mips.cc
===================================================================
--- runtime/vm/intermediate_language_mips.cc (revision 38030)
+++ runtime/vm/intermediate_language_mips.cc (working copy)
@@ -239,7 +239,7 @@
__ lw(T2, FieldAddress(T0, Function::instructions_offset()));
__ AddImmediate(T2, Instructions::HeaderSize() - kHeapObjectTag);
__ jalr(T2);
- compiler->AddCurrentDescriptor(PcDescriptors::kClosureCall,
+ compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
deopt_id(),
token_pos());
compiler->RecordSafepoint(locs());
@@ -251,7 +251,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());
}
@@ -906,7 +906,7 @@
__ LoadImmediate(A1, argc_tag);
compiler->GenerateCall(token_pos(),
stub_entry,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
__ Pop(result);
}
@@ -1734,7 +1734,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
__ mov(locs->temp(0).reg(), V0);
compiler->RestoreLiveRegisters(locs);
@@ -2113,7 +2113,7 @@
__ Bind(&slow_path);
compiler->GenerateCall(token_pos(),
&StubCode::AllocateArrayLabel(),
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
__ Bind(&done);
ASSERT(locs()->out(0).reg() == kResultReg);
@@ -2139,7 +2139,7 @@
compiler->SaveLiveRegisters(locs);
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position.
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs);
if (locs->out(0).reg() != V0) {
__ mov(locs->out(0).reg(), V0);
@@ -2388,7 +2388,7 @@
const ExternalLabel label(StubCode::AllocateContextEntryPoint());
compiler->GenerateCall(token_pos(),
&label,
- PcDescriptors::kOther,
+ RawPcDescriptors::kOther,
locs());
}
@@ -2513,7 +2513,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.
}
@@ -4510,7 +4510,7 @@
// On MIPS 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);
}
@@ -4537,7 +4537,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);
}
@@ -4683,7 +4683,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