diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-06-08 14:04:59 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-06-10 11:10:13 +0200 |
commit | a7cbf19a82c75e9a65e90fb8ba4947e2fc52ef39 (patch) | |
tree | dadfaa9c63c5d8db997b7c7aacc313b04131157c /deps/v8/src/interpreter/bytecode-array-builder.h | |
parent | 8834ec9f5c522f7d800d85b245a9806418515b7c (diff) | |
download | node-new-a7cbf19a82c75e9a65e90fb8ba4947e2fc52ef39.tar.gz |
deps: update V8 to 9.1.269.36
PR-URL: https://github.com/nodejs/node/pull/38273
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-array-builder.h')
-rw-r--r-- | deps/v8/src/interpreter/bytecode-array-builder.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/deps/v8/src/interpreter/bytecode-array-builder.h b/deps/v8/src/interpreter/bytecode-array-builder.h index cb1c92e3f8..28716b401b 100644 --- a/deps/v8/src/interpreter/bytecode-array-builder.h +++ b/deps/v8/src/interpreter/bytecode-array-builder.h @@ -508,8 +508,12 @@ class V8_EXPORT_PRIVATE BytecodeArrayBuilder final { void InitializeReturnPosition(FunctionLiteral* literal); void SetStatementPosition(Statement* stmt) { - if (stmt->position() == kNoSourcePosition) return; - latest_source_info_.MakeStatementPosition(stmt->position()); + SetStatementPosition(stmt->position()); + } + + void SetStatementPosition(int position) { + if (position == kNoSourcePosition) return; + latest_source_info_.MakeStatementPosition(position); } void SetExpressionPosition(Expression* expr) { @@ -526,16 +530,7 @@ class V8_EXPORT_PRIVATE BytecodeArrayBuilder final { } void SetExpressionAsStatementPosition(Expression* expr) { - if (expr->position() == kNoSourcePosition) return; - latest_source_info_.MakeStatementPosition(expr->position()); - } - - void SetReturnPosition(int source_position, FunctionLiteral* literal) { - if (source_position != kNoSourcePosition) { - latest_source_info_.MakeStatementPosition(source_position); - } else if (literal->return_position() != kNoSourcePosition) { - latest_source_info_.MakeStatementPosition(literal->return_position()); - } + SetStatementPosition(expr->position()); } bool RemainderOfBlockIsDead() const { |