| Index: src/interpreter/bytecode-array-builder.cc
|
| diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
|
| index dba816d61810d63259412f946f219494c2e134ef..415de5907ea52650de081bf9b6e628e51fb45772 100644
|
| --- a/src/interpreter/bytecode-array-builder.cc
|
| +++ b/src/interpreter/bytecode-array-builder.cc
|
| @@ -37,6 +37,14 @@ void BytecodeArrayBuilder::set_parameter_count(int number_of_parameters) {
|
| int BytecodeArrayBuilder::parameter_count() const { return parameter_count_; }
|
|
|
|
|
| +bool BytecodeArrayBuilder::HasExplicitReturn() {
|
| + // TODO(rmcilroy): When we have control flow we should return false here if
|
| + // there is an outstanding jump target, even if the last bytecode is kReturn.
|
| + return !bytecodes_.empty() &&
|
| + bytecodes_.back() == Bytecodes::ToByte(Bytecode::kReturn);
|
| +}
|
| +
|
| +
|
| Register BytecodeArrayBuilder::Parameter(int parameter_index) {
|
| DCHECK_GE(parameter_index, 0);
|
| DCHECK_LT(parameter_index, parameter_count_);
|
|
|