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

Unified Diff: runtime/vm/snapshot.cc

Issue 1151573022: Fix for issue 192 in domokit/mojo (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add comment Created 5 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
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 513ac253b794da972742f1a58c0bfdf32f714d84..28cf4b5ec4328f3c3b380775d089909c06a05d07 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -1749,19 +1749,6 @@ bool SnapshotWriter::CheckAndWritePredefinedObject(RawObject* rawobj) {
return true;
}
- // Check if the object is a Mint and could potentially be a Smi
- // on other architectures (64 bit), if so write it out as int64_t value.
- if (cid == kMintCid) {
- int64_t value = reinterpret_cast<RawMint*>(rawobj)->ptr()->value_;
- const intptr_t kSmi64Bits = 62;
- const int64_t kSmi64Max = (static_cast<int64_t>(1) << kSmi64Bits) - 1;
- const int64_t kSmi64Min = -(static_cast<int64_t>(1) << kSmi64Bits);
- if (value <= kSmi64Max && value >= kSmi64Min) {
- Write<int64_t>((value << kSmiTagShift) | kSmiTag);
- return true;
- }
- }
-
// Check if it is a code object in that case just write a Null object
// as we do not want code objects in the snapshot.
if (cid == kCodeCid) {
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698