| Index: src/compiler/ast-graph-builder.h
|
| diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
|
| index 4ab792e14bb66995fb02142c96fe973cfa470704..6009559f0849d50c3c4783b6bba21ef6f3344361 100644
|
| --- a/src/compiler/ast-graph-builder.h
|
| +++ b/src/compiler/ast-graph-builder.h
|
| @@ -196,7 +196,8 @@ class AstGraphBuilder::Environment
|
| int parameters_count() const { return parameters_count_; }
|
| int locals_count() const { return locals_count_; }
|
| int stack_height() {
|
| - return values()->size() - parameters_count_ - locals_count_;
|
| + return static_cast<int>(values()->size()) - parameters_count_ -
|
| + locals_count_;
|
| }
|
|
|
| // Operations on parameter or local variables. The parameter indices are
|
| @@ -241,12 +242,12 @@ class AstGraphBuilder::Environment
|
| // Direct mutations of the operand stack.
|
| void Poke(int depth, Node* node) {
|
| ASSERT(depth >= 0 && depth < stack_height());
|
| - int index = values()->size() - depth - 1;
|
| + int index = static_cast<int>(values()->size()) - depth - 1;
|
| values()->at(index) = node;
|
| }
|
| Node* Peek(int depth) {
|
| ASSERT(depth >= 0 && depth < stack_height());
|
| - int index = values()->size() - depth - 1;
|
| + int index = static_cast<int>(values()->size()) - depth - 1;
|
| return values()->at(index);
|
| }
|
| void Drop(int depth) {
|
|
|