summaryrefslogtreecommitdiff
path: root/deps/v8/src/interpreter/bytecode-array-iterator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-array-iterator.cc')
-rw-r--r--deps/v8/src/interpreter/bytecode-array-iterator.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/deps/v8/src/interpreter/bytecode-array-iterator.cc b/deps/v8/src/interpreter/bytecode-array-iterator.cc
index ad8451d00d..9e99f9cc57 100644
--- a/deps/v8/src/interpreter/bytecode-array-iterator.cc
+++ b/deps/v8/src/interpreter/bytecode-array-iterator.cc
@@ -53,14 +53,6 @@ void BytecodeArrayIterator::ApplyDebugBreak() {
*cursor = interpreter::Bytecodes::ToByte(debugbreak);
}
-int BytecodeArrayIterator::current_bytecode_size() const {
- return prefix_size_ + current_bytecode_size_without_prefix();
-}
-
-int BytecodeArrayIterator::current_bytecode_size_without_prefix() const {
- return Bytecodes::Size(current_bytecode(), current_operand_scale());
-}
-
uint32_t BytecodeArrayIterator::GetUnsignedOperand(
int operand_index, OperandType operand_type) const {
DCHECK_GE(operand_index, 0);
@@ -130,15 +122,14 @@ FeedbackSlot BytecodeArrayIterator::GetSlotOperand(int operand_index) const {
}
Register BytecodeArrayIterator::GetReceiver() const {
- return Register::FromParameterIndex(0, bytecode_array()->parameter_count());
+ return Register::FromParameterIndex(0);
}
Register BytecodeArrayIterator::GetParameter(int parameter_index) const {
DCHECK_GE(parameter_index, 0);
// The parameter indices are shifted by 1 (receiver is the
// first entry).
- return Register::FromParameterIndex(parameter_index + 1,
- bytecode_array()->parameter_count());
+ return Register::FromParameterIndex(parameter_index + 1);
}
Register BytecodeArrayIterator::GetRegisterOperand(int operand_index) const {
@@ -275,8 +266,7 @@ int BytecodeArrayIterator::GetAbsoluteOffset(int relative_offset) const {
}
std::ostream& BytecodeArrayIterator::PrintTo(std::ostream& os) const {
- return BytecodeDecoder::Decode(os, cursor_ - prefix_size_,
- bytecode_array()->parameter_count());
+ return BytecodeDecoder::Decode(os, cursor_ - prefix_size_);
}
void BytecodeArrayIterator::UpdatePointers() {