Make VS2005 project files compile without errors: changelist http://codereview.chromium.org/6286135/.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6706 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0fb5a1fd1a
commit
e0422e5401
@ -67,7 +67,7 @@ void Bignum::AssignUInt64(uint64_t value) {
|
||||
int needed_bigits = kUInt64Size / kBigitSize + 1;
|
||||
EnsureCapacity(needed_bigits);
|
||||
for (int i = 0; i < needed_bigits; ++i) {
|
||||
bigits_[i] = value & kBigitMask;
|
||||
bigits_[i] = static_cast<Chunk>(value & kBigitMask);
|
||||
value = value >> kBigitSize;
|
||||
}
|
||||
used_digits_ = needed_bigits;
|
||||
@ -266,7 +266,7 @@ void Bignum::MultiplyByUInt32(uint32_t factor) {
|
||||
}
|
||||
while (carry != 0) {
|
||||
EnsureCapacity(used_digits_ + 1);
|
||||
bigits_[used_digits_] = carry & kBigitMask;
|
||||
bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask);
|
||||
used_digits_++;
|
||||
carry >>= kBigitSize;
|
||||
}
|
||||
@ -287,13 +287,13 @@ void Bignum::MultiplyByUInt64(uint64_t factor) {
|
||||
uint64_t product_low = low * bigits_[i];
|
||||
uint64_t product_high = high * bigits_[i];
|
||||
uint64_t tmp = (carry & kBigitMask) + product_low;
|
||||
bigits_[i] = tmp & kBigitMask;
|
||||
bigits_[i] = static_cast<Chunk>(tmp & kBigitMask);
|
||||
carry = (carry >> kBigitSize) + (tmp >> kBigitSize) +
|
||||
(product_high << (32 - kBigitSize));
|
||||
}
|
||||
while (carry != 0) {
|
||||
EnsureCapacity(used_digits_ + 1);
|
||||
bigits_[used_digits_] = carry & kBigitMask;
|
||||
bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask);
|
||||
used_digits_++;
|
||||
carry >>= kBigitSize;
|
||||
}
|
||||
@ -748,7 +748,8 @@ void Bignum::SubtractTimes(const Bignum& other, int factor) {
|
||||
for (int i = 0; i < other.used_digits_; ++i) {
|
||||
DoubleChunk product = static_cast<DoubleChunk>(factor) * other.bigits_[i];
|
||||
DoubleChunk remove = borrow + product;
|
||||
Chunk difference = bigits_[i + exponent_diff] - (remove & kBigitMask);
|
||||
Chunk difference =
|
||||
bigits_[i + exponent_diff] - static_cast<Chunk>(remove & kBigitMask);
|
||||
bigits_[i + exponent_diff] = difference & kBigitMask;
|
||||
borrow = static_cast<Chunk>((difference >> (kChunkSize - 1)) +
|
||||
(remove >> kBigitSize));
|
||||
|
@ -2285,7 +2285,7 @@ static int Intersect(int i1, int i2, const Vector<HeapEntry*>& dominators) {
|
||||
|
||||
// The algorithm is based on the article:
|
||||
// K. Cooper, T. Harvey and K. Kennedy "A Simple, Fast Dominance Algorithm"
|
||||
// Softw. Pract. Exper. 4 (2001), pp. 1–10.
|
||||
// Softw. Pract. Exper. 4 (2001), pp. 1-10.
|
||||
bool HeapSnapshotGenerator::BuildDominatorTree(
|
||||
const Vector<HeapEntry*>& entries,
|
||||
Vector<HeapEntry*>* dominators) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
WarnAsError="true"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
DisableSpecificWarnings="4355;4800"
|
||||
DisableSpecificWarnings="4351;4355;4800"
|
||||
EnableFunctionLevelLinking="true"
|
||||
/>
|
||||
<Tool
|
||||
|
Loading…
Reference in New Issue
Block a user