diff options
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-array-builder.cc')
-rw-r--r-- | deps/v8/src/interpreter/bytecode-array-builder.cc | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/deps/v8/src/interpreter/bytecode-array-builder.cc b/deps/v8/src/interpreter/bytecode-array-builder.cc index 5be818eb2d..dcbe8029f9 100644 --- a/deps/v8/src/interpreter/bytecode-array-builder.cc +++ b/deps/v8/src/interpreter/bytecode-array-builder.cc @@ -701,14 +701,9 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::LoadGlobal(const AstRawString* name, } BytecodeArrayBuilder& BytecodeArrayBuilder::StoreGlobal( - const AstRawString* name, int feedback_slot, LanguageMode language_mode) { + const AstRawString* name, int feedback_slot) { size_t name_index = GetConstantPoolEntry(name); - if (language_mode == LanguageMode::kSloppy) { - OutputStaGlobalSloppy(name_index, feedback_slot); - } else { - DCHECK_EQ(language_mode, LanguageMode::kStrict); - OutputStaGlobalStrict(name_index, feedback_slot); - } + OutputStaGlobal(name_index, feedback_slot); return *this; } @@ -1185,8 +1180,10 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { return *this; } -BytecodeArrayBuilder& BytecodeArrayBuilder::Abort(BailoutReason reason) { - OutputAbort(reason); +BytecodeArrayBuilder& BytecodeArrayBuilder::Abort(AbortReason reason) { + DCHECK_LT(reason, AbortReason::kLastErrorMessage); + DCHECK_GE(reason, AbortReason::kNoReason); + OutputAbort(static_cast<int>(reason)); return *this; } @@ -1280,10 +1277,10 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::RestoreGeneratorState( return *this; } -BytecodeArrayBuilder& BytecodeArrayBuilder::RestoreGeneratorRegisters( - Register generator, RegisterList registers) { - OutputRestoreGeneratorRegisters(generator, registers, - registers.register_count()); +BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( + Register generator, Register generator_state, RegisterList registers) { + OutputResumeGenerator(generator, generator_state, registers, + registers.register_count()); return *this; } @@ -1389,7 +1386,7 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( Runtime::FunctionId function_id, Register arg) { - return CallRuntime(function_id, RegisterList(arg.index(), 1)); + return CallRuntime(function_id, RegisterList(arg)); } BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( @@ -1411,8 +1408,7 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntimeForPair( BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntimeForPair( Runtime::FunctionId function_id, Register arg, RegisterList return_pair) { - return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), - return_pair); + return CallRuntimeForPair(function_id, RegisterList(arg), return_pair); } BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, |