diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-03-12 09:01:49 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-03-14 18:49:21 +0100 |
commit | 7b48713334469818661fe276cf571de9c7899f2d (patch) | |
tree | 4dbda49ac88db76ce09dc330a0cb587e68e139ba /deps/v8/src/interpreter/bytecode-array-accessor.cc | |
parent | 8549ac09b256666cf5275224ec58fab9939ff32e (diff) | |
download | node-new-7b48713334469818661fe276cf571de9c7899f2d.tar.gz |
deps: update V8 to 7.3.492.25
PR-URL: https://github.com/nodejs/node/pull/25852
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-array-accessor.cc')
-rw-r--r-- | deps/v8/src/interpreter/bytecode-array-accessor.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/interpreter/bytecode-array-accessor.cc b/deps/v8/src/interpreter/bytecode-array-accessor.cc index 3ec2cc595b..e455cfd065 100644 --- a/deps/v8/src/interpreter/bytecode-array-accessor.cc +++ b/deps/v8/src/interpreter/bytecode-array-accessor.cc @@ -197,11 +197,11 @@ Runtime::FunctionId BytecodeArrayAccessor::GetIntrinsicIdOperand( static_cast<IntrinsicsHelper::IntrinsicId>(raw_id)); } -Object* BytecodeArrayAccessor::GetConstantAtIndex(int index) const { +Object BytecodeArrayAccessor::GetConstantAtIndex(int index) const { return bytecode_array()->constant_pool()->get(index); } -Object* BytecodeArrayAccessor::GetConstantForIndexOperand( +Object BytecodeArrayAccessor::GetConstantForIndexOperand( int operand_index) const { return GetConstantAtIndex(GetIndexOperand(operand_index)); } @@ -215,7 +215,7 @@ int BytecodeArrayAccessor::GetJumpTargetOffset() const { } return GetAbsoluteOffset(relative_offset); } else if (interpreter::Bytecodes::IsJumpConstant(bytecode)) { - Smi* smi = Smi::cast(GetConstantForIndexOperand(0)); + Smi smi = Smi::cast(GetConstantForIndexOperand(0)); return GetAbsoluteOffset(smi->value()); } else { UNREACHABLE(); @@ -285,7 +285,7 @@ JumpTableTargetOffsets::iterator::iterator( int case_value, int table_offset, int table_end, const BytecodeArrayAccessor* accessor) : accessor_(accessor), - current_(Smi::kZero), + current_(Smi::zero()), index_(case_value), table_offset_(table_offset), table_end_(table_end) { @@ -317,7 +317,7 @@ bool JumpTableTargetOffsets::iterator::operator!=( void JumpTableTargetOffsets::iterator::UpdateAndAdvanceToValid() { if (table_offset_ >= table_end_) return; - Object* current = accessor_->GetConstantAtIndex(table_offset_); + Object current = accessor_->GetConstantAtIndex(table_offset_); while (!current->IsSmi()) { DCHECK(current->IsTheHole()); ++table_offset_; |