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

Side by Side Diff: src/assembler.cc

Issue 10536202: Fix a bunch of implicit casts detected by the Win64 compiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed casts in d8.cc, updated copyright years Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/shell.cc ('k') | src/d8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 WriteExtraTaggedIntData(pos_delta, pos_type_tag); 356 WriteExtraTaggedIntData(pos_delta, pos_type_tag);
357 } 357 }
358 last_position_ = static_cast<int>(rinfo->data()); 358 last_position_ = static_cast<int>(rinfo->data());
359 } else if (RelocInfo::IsComment(rmode)) { 359 } else if (RelocInfo::IsComment(rmode)) {
360 // Comments are normally not generated, so we use the costly encoding. 360 // Comments are normally not generated, so we use the costly encoding.
361 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag); 361 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag);
362 WriteExtraTaggedData(rinfo->data(), kCommentTag); 362 WriteExtraTaggedData(rinfo->data(), kCommentTag);
363 ASSERT(begin_pos - pos_ >= RelocInfo::kMinRelocCommentSize); 363 ASSERT(begin_pos - pos_ >= RelocInfo::kMinRelocCommentSize);
364 } else if (RelocInfo::IsConstPool(rmode)) { 364 } else if (RelocInfo::IsConstPool(rmode)) {
365 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag); 365 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag);
366 WriteExtraTaggedConstPoolData(rinfo->data()); 366 WriteExtraTaggedConstPoolData(static_cast<int>(rinfo->data()));
367 } else { 367 } else {
368 ASSERT(rmode > RelocInfo::LAST_COMPACT_ENUM); 368 ASSERT(rmode > RelocInfo::LAST_COMPACT_ENUM);
369 int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM; 369 int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM;
370 // For all other modes we simply use the mode as the extra tag. 370 // For all other modes we simply use the mode as the extra tag.
371 // None of these modes need a data component. 371 // None of these modes need a data component.
372 ASSERT(saved_mode < kPCJumpExtraTag && saved_mode < kDataJumpExtraTag); 372 ASSERT(saved_mode < kPCJumpExtraTag && saved_mode < kDataJumpExtraTag);
373 WriteExtraTaggedPC(pc_delta, saved_mode); 373 WriteExtraTaggedPC(pc_delta, saved_mode);
374 } 374 }
375 last_pc_ = rinfo->pc(); 375 last_pc_ = rinfo->pc();
376 #ifdef DEBUG 376 #ifdef DEBUG
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1366 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1367 state_.written_position = state_.current_position; 1367 state_.written_position = state_.current_position;
1368 written = true; 1368 written = true;
1369 } 1369 }
1370 1370
1371 // Return whether something was written. 1371 // Return whether something was written.
1372 return written; 1372 return written;
1373 } 1373 }
1374 1374
1375 } } // namespace v8::internal 1375 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698