diff options
Diffstat (limited to 'deps/v8/src/compiler/frame-states.cc')
-rw-r--r-- | deps/v8/src/compiler/frame-states.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/deps/v8/src/compiler/frame-states.cc b/deps/v8/src/compiler/frame-states.cc index c5199f1e64..113ec96102 100644 --- a/deps/v8/src/compiler/frame-states.cc +++ b/deps/v8/src/compiler/frame-states.cc @@ -214,11 +214,8 @@ FrameState CreateJavaScriptBuiltinContinuationFrameState( ContinuationFrameStateMode mode) { // Depending on {mode}, final parameters are added by the deoptimizer // and aren't explicitly passed in the frame state. - DCHECK_EQ( - Builtins::GetStackParameterCount(name) + - (kJSArgcIncludesReceiver ? 0 - : 1), // Add receiver if it is not included. - stack_parameter_count + DeoptimizerParameterCountFor(mode)); + DCHECK_EQ(Builtins::GetStackParameterCount(name), + stack_parameter_count + DeoptimizerParameterCountFor(mode)); Node* argc = jsgraph->Constant(Builtins::GetStackParameterCount(name)); |