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

Unified Diff: runtime/vm/il_printer.cc

Issue 1390153004: Move deopt_id and related helpers/definitions from Isolate to Thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index c6802250c7a32360b71b7f53ce7081a30ccfe661..30c4a6fd645f55406e79adf68b87f067bca25009 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -257,7 +257,7 @@ const char* Instruction::ToCString() const {
void Instruction::PrintTo(BufferFormatter* f) const {
- if (GetDeoptId() != Isolate::kNoDeoptId) {
+ if (GetDeoptId() != Thread::kNoDeoptId) {
f->Print("%s:%" Pd "(", DebugName(), GetDeoptId());
} else {
f->Print("%s(", DebugName());
@@ -278,7 +278,7 @@ void Instruction::PrintOperandsTo(BufferFormatter* f) const {
void Definition::PrintTo(BufferFormatter* f) const {
PrintUse(f, *this);
if (HasSSATemp() || HasTemp()) f->Print(" <- ");
- if (GetDeoptId() != Isolate::kNoDeoptId) {
+ if (GetDeoptId() != Thread::kNoDeoptId) {
f->Print("%s:%" Pd "(", DebugName(), GetDeoptId());
} else {
f->Print("%s(", DebugName());
@@ -1155,7 +1155,7 @@ void GotoInstr::PrintTo(BufferFormatter* f) const {
parallel_move()->PrintTo(f);
f->Print(" ");
}
- if (GetDeoptId() != Isolate::kNoDeoptId) {
+ if (GetDeoptId() != Thread::kNoDeoptId) {
f->Print("goto:%" Pd " B%" Pd "", GetDeoptId(), successor()->block_id());
} else {
f->Print("goto: B%" Pd "", successor()->block_id());
@@ -1164,7 +1164,7 @@ void GotoInstr::PrintTo(BufferFormatter* f) const {
void IndirectGotoInstr::PrintTo(BufferFormatter* f) const {
- if (GetDeoptId() != Isolate::kNoDeoptId) {
+ if (GetDeoptId() != Thread::kNoDeoptId) {
f->Print("igoto:%" Pd "(", GetDeoptId());
} else {
f->Print("igoto:(");

Powered by Google App Engine
This is Rietveld 408576698