[vm/compiler] Make StopInstr methods architecture-independent.
The Stop assembler macro was abstracted in AssemblerBase a while back, so all of the architecture-dependent StopInstr::MakeLocationSummary and StopInstr::EmitNativeCode implementations are the same. Replace them with a single architecture-independent implementation in il.cc. TEST=ci (refactoring cleanup) Change-Id: I29e16bd70ab5733417e664c2946abe492d3b0d2c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379301 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
This commit is contained in:
committed by
Commit Queue
parent
c50c194d41
commit
6cbe05e6c0
@@ -4526,6 +4526,14 @@ void IndirectEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
JoinEntryInstr::EmitNativeCode(compiler);
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
LocationSummary* LoadStaticFieldInstr::MakeLocationSummary(Zone* zone,
|
||||
bool opt) const {
|
||||
const intptr_t kNumInputs = 0;
|
||||
|
||||
@@ -7207,14 +7207,6 @@ void BitCastInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
}
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
BlockEntryInstr* entry = normal_entry();
|
||||
if (entry != nullptr) {
|
||||
|
||||
@@ -6241,14 +6241,6 @@ void BitCastInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
}
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
BlockEntryInstr* entry = normal_entry();
|
||||
if (entry != nullptr) {
|
||||
|
||||
@@ -6210,14 +6210,6 @@ void IntConverterInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
}
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
BlockEntryInstr* entry = normal_entry();
|
||||
if (entry != nullptr) {
|
||||
|
||||
@@ -7144,14 +7144,6 @@ void BitCastInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
}
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
BlockEntryInstr* entry = normal_entry();
|
||||
if (entry != nullptr) {
|
||||
|
||||
@@ -6478,14 +6478,6 @@ void IntConverterInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
}
|
||||
}
|
||||
|
||||
LocationSummary* StopInstr::MakeLocationSummary(Zone* zone, bool opt) const {
|
||||
return new (zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
|
||||
}
|
||||
|
||||
void StopInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
__ Stop(message());
|
||||
}
|
||||
|
||||
void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
BlockEntryInstr* entry = normal_entry();
|
||||
if (entry != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user