Reviewers: Jakob,

Message:
The problem reported:

1>..\..\src\profile-generator.cc(921) : error C2220: warning treated as error -
no 'object' file generated
1>..\..\src\profile-generator.cc(921) : warning C4244: 'initializing' :
conversion from '__int64' to 'int', possible loss of data


Description:
Fix Win64 compilation after r14670

[email protected]
BUG=v8:2628

Please review this at https://codereview.chromium.org/15133007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/profile-generator.cc


Index: src/profile-generator.cc
diff --git a/src/profile-generator.cc b/src/profile-generator.cc
index 15066158abc8af80f1e64f150c80765263a7851d..d923bc04e8cb5ddaa627053a55a2b6f41c31a6d0 100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -918,7 +918,7 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) {
       List<OffsetRange>* ranges = pc_entry->no_frame_ranges();
       if (ranges) {
         Code* code = Code::cast(HeapObject::FromAddress(start));
-        int pc_offset = sample.pc - code->instruction_start();
+ int pc_offset = static_cast<int>(sample.pc - code->instruction_start());
         for (int i = 0; i < ranges->length(); i++) {
           OffsetRange& range = ranges->at(i);
           if (range.from <= pc_offset && pc_offset < range.to) {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to