| Index: src/compiler/common-operator.h
|
| diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
|
| index 5318fd988804fca4c113cc31d5a8968f5ec22f67..aa1aac7de82a19abab4da6baad9cbfdebcf62017 100644
|
| --- a/src/compiler/common-operator.h
|
| +++ b/src/compiler/common-operator.h
|
| @@ -35,11 +35,14 @@ class ControlOperator FINAL : public Operator1<int> {
|
|
|
| class CallOperator FINAL : public Operator1<CallDescriptor*> {
|
| public:
|
| + // TODO(titzer): Operator still uses int, whereas CallDescriptor uses size_t.
|
| CallOperator(CallDescriptor* descriptor, const char* mnemonic)
|
| : Operator1<CallDescriptor*>(
|
| IrOpcode::kCall, descriptor->properties(),
|
| - descriptor->InputCount() + descriptor->FrameStateCount(),
|
| - descriptor->ReturnCount(), mnemonic, descriptor) {}
|
| + static_cast<int>(descriptor->InputCount() +
|
| + descriptor->FrameStateCount()),
|
| + static_cast<int>(descriptor->ReturnCount()), mnemonic, descriptor) {
|
| + }
|
|
|
| virtual OStream& PrintParameter(OStream& os) const OVERRIDE { // NOLINT
|
| return os << "[" << *parameter() << "]";
|
|
|