| Index: src/full-codegen/full-codegen.cc
|
| diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
|
| index 4d292be5018481426691b9f69396272dc74226dd..631d059b518e2d5accda460bbe2a5d35e220b64a 100644
|
| --- a/src/full-codegen/full-codegen.cc
|
| +++ b/src/full-codegen/full-codegen.cc
|
| @@ -486,14 +486,14 @@ void FullCodeGenerator::CallRuntimeWithOperands(Runtime::FunctionId id) {
|
| }
|
|
|
| void FullCodeGenerator::OperandStackDepthIncrement(int count) {
|
| + DCHECK_IMPLIES(!HasStackOverflow(), operand_stack_depth_ >= 0);
|
| DCHECK_GE(count, 0);
|
| - DCHECK_GE(operand_stack_depth_, 0);
|
| operand_stack_depth_ += count;
|
| }
|
|
|
| void FullCodeGenerator::OperandStackDepthDecrement(int count) {
|
| + DCHECK_IMPLIES(!HasStackOverflow(), operand_stack_depth_ >= count);
|
| DCHECK_GE(count, 0);
|
| - DCHECK_GE(operand_stack_depth_, count);
|
| operand_stack_depth_ -= count;
|
| }
|
|
|
|
|