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

Unified Diff: runtime/vm/object_test.cc

Issue 875443002: Store pc offset instead of absolute pc in the pc descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed arm/mips/arm64 build Created 5 years, 11 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_test.cc
===================================================================
--- runtime/vm/object_test.cc (revision 43041)
+++ runtime/vm/object_test.cc (working copy)
@@ -2790,7 +2790,7 @@
EXPECT_EQ(true, iter.MoveNext());
EXPECT_EQ(20, iter.TokenPos());
EXPECT_EQ(1, iter.TryIndex());
- EXPECT_EQ(static_cast<uword>(10), iter.Pc());
+ EXPECT_EQ(static_cast<uword>(10), iter.PcOffset());
EXPECT_EQ(1, iter.DeoptId());
EXPECT_EQ(RawPcDescriptors::kOther, iter.Kind());
@@ -2811,7 +2811,7 @@
EXPECT_EQ(150, iter.TokenPos());
EXPECT_EQ(3, iter.TryIndex());
- EXPECT_EQ(static_cast<uword>(80), iter.Pc());
+ EXPECT_EQ(static_cast<uword>(80), iter.PcOffset());
EXPECT_EQ(150, iter.TokenPos());
EXPECT_EQ(RawPcDescriptors::kOther, iter.Kind());
@@ -2844,7 +2844,7 @@
PcDescriptors::Iterator iter(pc_descs, RawPcDescriptors::kAnyKind);
EXPECT_EQ(true, iter.MoveNext());
- EXPECT_EQ(static_cast<uword>(10), iter.Pc());
+ EXPECT_EQ(static_cast<uword>(10), iter.PcOffset());
EXPECT_EQ(-1, iter.TryIndex());
EXPECT_EQ(1, iter.DeoptId());
EXPECT_EQ(20, iter.TokenPos());
@@ -2856,7 +2856,7 @@
EXPECT_EQ(true, iter.MoveNext());
EXPECT_EQ(-1, iter.TryIndex());
- EXPECT_EQ(static_cast<uword>(80), iter.Pc());
+ EXPECT_EQ(static_cast<uword>(80), iter.PcOffset());
EXPECT_EQ(150, iter.TokenPos());
EXPECT_EQ(false, iter.MoveNext());
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698