| 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;
|
| }
|
|
|