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

Unified Diff: src/compiler/instruction.h

Issue 420033003: Fix 64-bit VS2010 build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « src/compiler/generic-node-inl.h ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index 7ec36e497d437c827d5b2ac78b64c2d816bc90c0..3c8a5c54ea34c31c86d0dc5120a312cb628f86c3 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -445,8 +445,9 @@ class Instruction : public ZoneObject {
ASSERT(temp_count == 0 || temps != NULL);
InstructionOperand* none = NULL;
USE(none);
- size_t size = RoundUp(sizeof(Instruction), kPointerSize) +
- (output_count + input_count + temp_count - 1) * sizeof(none);
+ int size = static_cast<int>(RoundUp(sizeof(Instruction), kPointerSize) +
+ (output_count + input_count + temp_count - 1) *
+ sizeof(none));
return new (zone->New(size)) Instruction(
opcode, output_count, outputs, input_count, inputs, temp_count, temps);
}
@@ -803,7 +804,7 @@ class InstructionSequence V8_FINAL {
const Immediates& immediates() const { return immediates_; }
int AddImmediate(Constant constant) {
- int index = immediates_.size();
+ int index = static_cast<int>(immediates_.size());
immediates_.push_back(constant);
return index;
}
« no previous file with comments | « src/compiler/generic-node-inl.h ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698