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

Issue 9003015: Extend sign bit before serializing it. (Closed)

Created:
8 years, 11 months ago by Anton Muhin
Modified:
8 years, 11 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Extend sign bit before serializing it.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M runtime/vm/snapshot.h View 1 chunk +1 line, -1 line 1 comment Download
M runtime/vm/snapshot.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 1 (0 generated)
siva
8 years, 11 months ago (2012-01-03 22:55:17 UTC) #1
http://codereview.chromium.org/9003015/diff/1/runtime/vm/snapshot.cc
File runtime/vm/snapshot.cc (right):

http://codereview.chromium.org/9003015/diff/1/runtime/vm/snapshot.cc#newcode260
runtime/vm/snapshot.cc:260:
WriteIntptrValue(reinterpret_cast<intptr_t>(rawobj));
Can we make this:
Write<int64_t>(reinterpret_cast<intptr_t>(rawobj));

http://codereview.chromium.org/9003015/diff/1/runtime/vm/snapshot.h
File runtime/vm/snapshot.h (right):

http://codereview.chromium.org/9003015/diff/1/runtime/vm/snapshot.h#newcode358
runtime/vm/snapshot.h:358: Write<int64_t>(static_cast<int64_t>(value));
Is this cast necessary, isn't there an implicit cast from intptr_t to int64_t?

Powered by Google App Engine
This is Rietveld 408576698