Commit ef2f091f authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[ignition] Avoid possible unnecessary Mov around GetIterator

Wrap the obj and method registers in BuildGetIterator in a register
allocation scope, so that they don't get materialised before the
JumpIfJSReceiver jump if they don't have to.

Bug: v8:9649
Change-Id: I8dfdd06a23c396124c495b5cb83c078080f1a7c9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1768583
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63393}
parent 02becb16
......@@ -14,6 +14,7 @@
#include "src/interpreter/bytecode-jump-table.h"
#include "src/interpreter/bytecode-label.h"
#include "src/interpreter/bytecode-register-allocator.h"
#include "src/interpreter/bytecode-register.h"
#include "src/interpreter/control-flow-builders.h"
#include "src/logging/log.h"
#include "src/objects/debug-objects.h"
......@@ -5300,11 +5301,12 @@ void BytecodeGenerator::VisitImportCallExpression(ImportCallExpression* expr) {
}
void BytecodeGenerator::BuildGetIterator(IteratorType hint) {
RegisterList args = register_allocator()->NewRegisterList(1);
Register method = register_allocator()->NewRegister();
Register obj = args[0];
if (hint == IteratorType::kAsync) {
RegisterAllocationScope scope(this);
Register obj = register_allocator()->NewRegister();
Register method = register_allocator()->NewRegister();
// Set method to GetMethod(obj, @@asyncIterator)
builder()->StoreAccumulatorInRegister(obj).LoadAsyncIteratorProperty(
obj, feedback_index(feedback_spec()->AddLoadICSlot()));
......@@ -5314,7 +5316,8 @@ void BytecodeGenerator::BuildGetIterator(IteratorType hint) {
// Let iterator be Call(method, obj)
builder()->StoreAccumulatorInRegister(method).CallProperty(
method, args, feedback_index(feedback_spec()->AddCallICSlot()));
method, RegisterList(obj),
feedback_index(feedback_spec()->AddCallICSlot()));
// If Type(iterator) is not Object, throw a TypeError exception.
builder()->JumpIfJSReceiver(&done);
......@@ -5328,7 +5331,7 @@ void BytecodeGenerator::BuildGetIterator(IteratorType hint) {
.StoreAccumulatorInRegister(method);
// Let syncIterator be Call(syncMethod, obj)
builder()->CallProperty(method, args,
builder()->CallProperty(method, RegisterList(obj),
feedback_index(feedback_spec()->AddCallICSlot()));
// Return CreateAsyncFromSyncIterator(syncIterator)
......@@ -5339,15 +5342,22 @@ void BytecodeGenerator::BuildGetIterator(IteratorType hint) {
builder()->Bind(&done);
} else {
// Let method be GetMethod(obj, @@iterator).
builder()
->StoreAccumulatorInRegister(obj)
.GetIterator(obj, feedback_index(feedback_spec()->AddLoadICSlot()))
.StoreAccumulatorInRegister(method);
{
RegisterAllocationScope scope(this);
// Let iterator be Call(method, obj).
builder()->CallProperty(method, args,
feedback_index(feedback_spec()->AddCallICSlot()));
Register obj = register_allocator()->NewRegister();
Register method = register_allocator()->NewRegister();
// Let method be GetMethod(obj, @@iterator).
builder()
->StoreAccumulatorInRegister(obj)
.GetIterator(obj, feedback_index(feedback_spec()->AddLoadICSlot()))
.StoreAccumulatorInRegister(method);
// Let iterator be Call(method, obj).
builder()->CallProperty(method, RegisterList(obj),
feedback_index(feedback_spec()->AddCallICSlot()));
}
// If Type(iterator) is not Object, throw a TypeError exception.
BytecodeLabel no_type_error;
......
......@@ -141,9 +141,9 @@ handlers: [
snippet: "
var a = [ 1, 2 ]; return [ 0, ...a ];
"
frame size: 8
frame size: 7
parameter count: 1
bytecode array length: 83
bytecode array length: 80
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
......@@ -155,19 +155,18 @@ bytecodes: [
B(GetIterator), R(0), U8(2),
B(Star), R(6),
B(CallProperty0), R(6), R(0), U8(4),
B(Mov), R(0), R(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(4),
B(LdaNamedProperty), R(4), U8(3), U8(6),
B(Star), R(3),
B(CallProperty0), R(3), R(4), U8(15),
B(Star), R(7),
B(Star), R(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
B(LdaNamedProperty), R(7), U8(4), U8(17),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
B(LdaNamedProperty), R(5), U8(4), U8(17),
B(JumpIfToBooleanTrue), U8(19),
B(LdaNamedProperty), R(7), U8(5), U8(8),
B(LdaNamedProperty), R(5), U8(5), U8(8),
B(StaInArrayLiteral), R(2), R(1), U8(13),
B(Ldar), R(1),
B(Inc), U8(12),
......
......@@ -212,7 +212,7 @@ snippet: "
async function* f() { for (let x of [42]) yield x }
f();
"
frame size: 21
frame size: 19
parameter count: 1
bytecode array length: 369
bytecodes: [
......@@ -247,86 +247,86 @@ bytecodes: [
B(LdaNamedProperty), R(9), U8(5), U8(5),
B(Star), R(8),
B(LdaFalse),
B(Star), R(12),
B(Mov), R(context), R(15),
B(Star), R(10),
B(Mov), R(context), R(13),
B(LdaTrue),
B(Star), R(12),
B(Star), R(10),
/* 31 S> */ B(CallProperty0), R(8), R(9), U8(7),
B(Star), R(16),
B(Star), R(14),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(LdaNamedProperty), R(16), U8(6), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(LdaNamedProperty), R(14), U8(6), U8(9),
B(JumpIfToBooleanTrue), U8(67),
B(LdaNamedProperty), R(16), U8(7), U8(11),
B(Star), R(16),
B(LdaNamedProperty), R(14), U8(7), U8(11),
B(Star), R(14),
B(LdaFalse),
B(Star), R(12),
B(Mov), R(16), R(1),
B(Star), R(10),
B(Mov), R(14), R(1),
/* 22 E> */ B(StackCheck),
/* 31 S> */ B(Mov), R(1), R(3),
/* 42 S> */ B(LdaFalse),
B(Star), R(19),
B(Mov), R(0), R(17),
B(Mov), R(3), R(18),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(17), U8(3),
/* 42 E> */ B(SuspendGenerator), R(0), R(0), U8(17), U8(1),
B(ResumeGenerator), R(0), R(0), U8(17),
B(Star), R(17),
B(Mov), R(0), R(15),
B(Mov), R(3), R(16),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(15), U8(3),
/* 42 E> */ B(SuspendGenerator), R(0), R(0), U8(15), U8(1),
B(ResumeGenerator), R(0), R(0), U8(15),
B(Star), R(15),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
B(Ldar), R(17),
B(Ldar), R(15),
/* 42 E> */ B(Throw),
B(LdaSmi), I8(1),
B(Star), R(13),
B(Mov), R(17), R(14),
B(Star), R(11),
B(Mov), R(15), R(12),
B(Jump), U8(20),
B(Ldar), R(17),
B(Ldar), R(15),
B(JumpLoop), U8(84), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(14),
B(Star), R(13),
B(Star), R(12),
B(Star), R(11),
B(Jump), U8(7),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(Star), R(13),
B(Star), R(11),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(15),
B(Ldar), R(12),
B(Star), R(13),
B(Ldar), R(10),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(9), U8(10), U8(13),
B(Star), R(17),
B(Star), R(15),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(18),
B(Mov), R(context), R(16),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(19),
B(Star), R(17),
B(LdaConstant), U8(11),
B(Star), R(20),
B(CallRuntime), U16(Runtime::kNewTypeError), R(19), U8(2),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kNewTypeError), R(17), U8(2),
B(Throw),
B(CallProperty0), R(17), R(9), U8(15),
B(CallProperty0), R(15), R(9), U8(15),
B(JumpIfJSReceiver), U8(21),
B(Star), R(19),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(19), U8(1),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(17), U8(1),
B(Jump), U8(12),
B(Star), R(18),
B(Star), R(16),
B(LdaZero),
B(TestReferenceEqual), R(13),
B(TestReferenceEqual), R(11),
B(JumpIfTrue), U8(5),
B(Ldar), R(18),
B(Ldar), R(16),
B(ReThrow),
B(Ldar), R(15),
B(SetPendingMessage),
B(Ldar), R(13),
B(SetPendingMessage),
B(Ldar), R(11),
B(SwitchOnSmiNoFeedback), U8(12), U8(2), I8(0),
B(Jump), U8(14),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(LdaSmi), I8(1),
B(Star), R(4),
B(Mov), R(14), R(5),
B(Mov), R(12), R(5),
B(Jump), U8(51),
B(Jump), U8(36),
B(Star), R(8),
......@@ -408,7 +408,7 @@ snippet: "
async function* f() { yield* g() }
f();
"
frame size: 19
frame size: 17
parameter count: 1
bytecode array length: 466
bytecodes: [
......@@ -460,81 +460,81 @@ bytecodes: [
B(Jump), U8(140),
B(LdaNamedProperty), R(7), U8(12), U8(16),
B(JumpIfUndefinedOrNull), U8(11),
B(Star), R(12),
B(CallProperty1), R(12), R(7), R(8), U8(18),
B(Star), R(10),
B(CallProperty1), R(10), R(7), R(8), U8(18),
B(Jump), U8(125),
B(Mov), R(0), R(12),
B(Mov), R(8), R(13),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(12), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(1),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(Mov), R(0), R(10),
B(Mov), R(8), R(11),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(10), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(10), U8(1),
B(ResumeGenerator), R(0), R(0), U8(10),
B(Star), R(10),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(13),
B(Star), R(11),
B(LdaZero),
B(TestReferenceEqual), R(13),
B(TestReferenceEqual), R(11),
B(JumpIfTrue), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(LdaSmi), I8(1),
B(Star), R(1),
B(Mov), R(12), R(2),
B(Mov), R(10), R(2),
B(Jump), U8(241),
B(LdaNamedProperty), R(7), U8(13), U8(20),
B(JumpIfUndefinedOrNull), U8(11),
B(Star), R(14),
B(CallProperty1), R(14), R(7), R(8), U8(22),
B(Star), R(12),
B(CallProperty1), R(12), R(7), R(8), U8(22),
B(Jump), U8(66),
B(LdaNamedProperty), R(7), U8(12), U8(24),
B(JumpIfUndefinedOrNull), U8(55),
B(Star), R(14),
B(CallProperty0), R(14), R(7), U8(26),
B(Star), R(12),
B(CallProperty0), R(12), R(7), U8(26),
B(Jump), U8(2),
B(Star), R(15),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(14), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(14), U8(2),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
B(Star), R(13),
B(Mov), R(0), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(12), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(2),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Ldar), R(12),
B(JumpIfJSReceiver), U8(9),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(CallRuntime), U16(Runtime::kThrowThrowMethodMissing), R(0), U8(0),
B(Star), R(15),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(14), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(14), U8(3),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(CallRuntime), U16(Runtime::kThrowThrowMethodMissing), R(0), U8(0),
B(Star), R(13),
B(Mov), R(0), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(12), U8(2),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(3),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Mov), R(14), R(5),
B(Ldar), R(12),
B(Mov), R(12), R(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
B(LdaNamedProperty), R(5), U8(14), U8(28),
B(JumpIfToBooleanTrue), U8(38),
B(LdaNamedProperty), R(5), U8(15), U8(30),
B(Star), R(17),
B(Star), R(15),
B(LdaFalse),
B(Star), R(18),
B(Mov), R(0), R(16),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(16), U8(3),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(16), U8(4),
B(ResumeGenerator), R(0), R(0), U8(16),
B(Star), R(16),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(14), U8(3),
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(14), U8(4),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(8),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(6),
......
......@@ -65,7 +65,7 @@ handlers: [
snippet: "
Math.max(0, ...[1, 2, 3], 4);
"
frame size: 10
frame size: 9
parameter count: 1
bytecode array length: 106
bytecodes: [
......@@ -90,12 +90,12 @@ bytecodes: [
B(LdaNamedProperty), R(6), U8(5), U8(10),
B(Star), R(5),
B(CallProperty0), R(5), R(6), U8(19),
B(Star), R(9),
B(Star), R(7),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(6), U8(21),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
B(LdaNamedProperty), R(7), U8(6), U8(21),
B(JumpIfToBooleanTrue), U8(19),
B(LdaNamedProperty), R(9), U8(7), U8(12),
B(LdaNamedProperty), R(7), U8(7), U8(12),
B(StaInArrayLiteral), R(4), R(3), U8(17),
B(Ldar), R(3),
B(Inc), U8(16),
......
......@@ -10,9 +10,9 @@ snippet: "
var x, a = [0,1,2,3];
[x] = a;
"
frame size: 16
frame size: 14
parameter count: 1
bytecode array length: 175
bytecode array length: 172
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
......@@ -20,7 +20,6 @@ bytecodes: [
/* 60 S> */ B(GetIterator), R(1), U8(1),
B(Star), R(6),
B(CallProperty0), R(6), R(1), U8(3),
B(Mov), R(1), R(5),
B(Mov), R(1), R(2),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
......@@ -28,67 +27,67 @@ bytecodes: [
B(LdaNamedProperty), R(4), U8(1), U8(5),
B(Star), R(3),
B(LdaFalse),
B(Star), R(7),
B(Mov), R(context), R(10),
/* 57 S> */ B(Ldar), R(7),
B(Star), R(5),
B(Mov), R(context), R(8),
/* 57 S> */ B(Ldar), R(5),
B(JumpIfToBooleanTrue), U8(37),
B(LdaTrue),
B(Star), R(7),
B(Star), R(5),
B(CallProperty0), R(3), R(4), U8(11),
B(Star), R(11),
B(Star), R(9),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(15),
B(LdaNamedProperty), R(11), U8(3), U8(7),
B(Star), R(11),
B(LdaNamedProperty), R(9), U8(3), U8(7),
B(Star), R(9),
B(LdaFalse),
B(Star), R(7),
B(Ldar), R(11),
B(Star), R(5),
B(Ldar), R(9),
B(Jump), U8(3),
B(LdaUndefined),
B(Star), R(0),
B(LdaSmi), I8(-1),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Jump), U8(7),
B(Star), R(9),
B(Star), R(7),
B(LdaZero),
B(Star), R(8),
B(Star), R(6),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(10),
B(Ldar), R(7),
B(Star), R(8),
B(Ldar), R(5),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(4), U8(4), U8(13),
B(Star), R(12),
B(Star), R(10),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(13),
B(Mov), R(context), R(11),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(14),
B(Star), R(12),
B(LdaConstant), U8(5),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
B(Throw),
B(CallProperty0), R(12), R(4), U8(15),
B(CallProperty0), R(10), R(4), U8(15),
B(JumpIfJSReceiver), U8(21),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(Jump), U8(12),
B(Star), R(13),
B(Star), R(11),
B(LdaZero),
B(TestReferenceEqual), R(8),
B(TestReferenceEqual), R(6),
B(JumpIfTrue), U8(5),
B(Ldar), R(13),
B(Ldar), R(11),
B(ReThrow),
B(Ldar), R(10),
B(Ldar), R(8),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(8),
B(TestReferenceEqual), R(6),
B(JumpIfFalse), U8(5),
B(Ldar), R(9),
B(Ldar), R(7),
B(ReThrow),
B(LdaUndefined),
/* 65 S> */ B(Return),
......@@ -102,8 +101,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[43, 85, 93],
[117, 150, 152],
[40, 82, 90],
[114, 147, 149],
]
---
......@@ -111,9 +110,9 @@ snippet: "
var x, y, a = [0,1,2,3];
[,x,...y] = a;
"
frame size: 17
frame size: 15
parameter count: 1
bytecode array length: 261
bytecode array length: 258
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
......@@ -121,7 +120,6 @@ bytecodes: [
/* 69 S> */ B(GetIterator), R(2), U8(1),
B(Star), R(7),
B(CallProperty0), R(7), R(2), U8(3),
B(Mov), R(2), R(6),
B(Mov), R(2), R(3),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
......@@ -129,101 +127,101 @@ bytecodes: [
B(LdaNamedProperty), R(5), U8(1), U8(5),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
B(Ldar), R(8),
B(Star), R(6),
B(Mov), R(context), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(35),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
B(CallProperty0), R(4), R(5), U8(11),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(13),
B(LdaNamedProperty), R(12), U8(3), U8(7),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(3), U8(7),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Ldar), R(12),
/* 61 S> */ B(Ldar), R(8),
B(Star), R(6),
B(Ldar), R(10),
/* 61 S> */ B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(37),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
B(CallProperty0), R(4), R(5), U8(13),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(15),
B(LdaNamedProperty), R(12), U8(3), U8(7),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(3), U8(7),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Ldar), R(12),
B(Star), R(6),
B(Ldar), R(10),
B(Jump), U8(3),
B(LdaUndefined),
B(Star), R(0),
/* 63 S> */ B(CreateEmptyArrayLiteral), U8(15),
B(Star), R(13),
B(Star), R(11),
B(LdaZero),
B(Star), R(14),
B(Star), R(12),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
B(CallProperty0), R(4), R(5), U8(19),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(2), U8(21),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(21),
B(JumpIfToBooleanTrue), U8(19),
B(LdaNamedProperty), R(12), U8(3), U8(7),
B(StaInArrayLiteral), R(13), R(14), U8(16),
B(Ldar), R(14),
B(LdaNamedProperty), R(10), U8(3), U8(7),
B(StaInArrayLiteral), R(11), R(12), U8(16),
B(Ldar), R(12),
B(Inc), U8(18),
B(Star), R(14),
B(Star), R(12),
B(JumpLoop), U8(33), I8(0),
B(Mov), R(13), R(1),
B(Mov), R(11), R(1),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(4), U8(23),
B(Star), R(13),
B(Star), R(11),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(14),
B(Mov), R(context), R(12),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(15),
B(Star), R(13),
B(LdaConstant), U8(5),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Throw),
B(CallProperty0), R(13), R(5), U8(25),
B(CallProperty0), R(11), R(5), U8(25),
B(JumpIfJSReceiver), U8(21),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Jump), U8(12),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(11),
B(Ldar), R(9),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfFalse), U8(5),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(LdaUndefined),
/* 74 S> */ B(Return),
......@@ -237,8 +235,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[43, 171, 179],
[203, 236, 238],
[40, 168, 176],
[200, 233, 235],
]
---
......@@ -246,9 +244,9 @@ snippet: "
var x={}, y, a = [0];
[x.foo,y=4] = a;
"
frame size: 18
frame size: 16
parameter count: 1
bytecode array length: 226
bytecode array length: 223
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 40 S> */ B(CreateEmptyObjectLiteral),
......@@ -258,7 +256,6 @@ bytecodes: [
/* 68 S> */ B(GetIterator), R(2), U8(1),
B(Star), R(7),
B(CallProperty0), R(7), R(2), U8(3),
B(Mov), R(2), R(6),
B(Mov), R(2), R(3),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
......@@ -266,86 +263,86 @@ bytecodes: [
B(LdaNamedProperty), R(5), U8(1), U8(5),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
/* 59 S> */ B(Ldar), R(8),
B(Mov), R(0), R(13),
B(Star), R(6),
B(Mov), R(context), R(9),
/* 59 S> */ B(Ldar), R(6),
B(Mov), R(0), R(11),
B(JumpIfToBooleanTrue), U8(37),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
B(CallProperty0), R(4), R(5), U8(11),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(15),
B(LdaNamedProperty), R(12), U8(3), U8(7),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(3), U8(7),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Ldar), R(12),
B(Star), R(6),
B(Ldar), R(10),
B(Jump), U8(3),
B(LdaUndefined),
B(StaNamedProperty), R(13), U8(4), U8(13),
/* 63 S> */ B(Ldar), R(8),
B(StaNamedProperty), R(11), U8(4), U8(13),
/* 63 S> */ B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(37),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
B(CallProperty0), R(4), R(5), U8(15),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(15),
B(LdaNamedProperty), R(12), U8(3), U8(7),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(3), U8(7),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Ldar), R(12),
B(Star), R(6),
B(Ldar), R(10),
B(JumpIfNotUndefined), U8(4),
B(LdaSmi), I8(4),
B(Star), R(1),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(5), U8(17),
B(Star), R(14),
B(Star), R(12),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(15),
B(Mov), R(context), R(13),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(16),
B(Star), R(14),
B(LdaConstant), U8(6),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Throw),
B(CallProperty0), R(14), R(5), U8(19),
B(CallProperty0), R(12), R(5), U8(19),
B(JumpIfJSReceiver), U8(21),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Jump), U8(12),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(15),
B(Ldar), R(13),
B(ReThrow),
B(Ldar), R(11),
B(Ldar), R(9),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfFalse), U8(5),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(LdaUndefined),
/* 73 S> */ B(Return),
......@@ -360,8 +357,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[46, 136, 144],
[168, 201, 203],
[43, 133, 141],
[165, 198, 200],
]
---
......
......@@ -14,7 +14,7 @@ snippet: "
}
f();
"
frame size: 21
frame size: 19
parameter count: 1
bytecode array length: 320
bytecodes: [
......@@ -42,94 +42,94 @@ bytecodes: [
B(LdaNamedProperty), R(6), U8(4), U8(9),
B(Star), R(5),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(context), R(12),
B(Star), R(7),
B(Mov), R(context), R(10),
B(LdaTrue),
B(Star), R(9),
B(Star), R(7),
/* 38 S> */ B(CallProperty0), R(5), R(6), U8(11),
B(Star), R(15),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(14), U8(2),
B(SuspendGenerator), R(0), R(0), U8(14), U8(0),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
B(Star), R(13),
B(Mov), R(0), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(12), U8(2),
B(SuspendGenerator), R(0), R(0), U8(12), U8(0),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Mov), R(14), R(13),
B(Ldar), R(12),
B(Mov), R(12), R(11),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(LdaNamedProperty), R(13), U8(5), U8(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(5), U8(13),
B(JumpIfToBooleanTrue), U8(23),
B(LdaNamedProperty), R(13), U8(6), U8(15),
B(Star), R(13),
B(LdaNamedProperty), R(11), U8(6), U8(15),
B(Star), R(11),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(13), R(1),
B(Star), R(7),
B(Mov), R(11), R(1),
/* 23 E> */ B(StackCheck),
/* 38 S> */ B(Mov), R(1), R(3),
B(Ldar), R(13),
B(Ldar), R(11),
B(JumpLoop), U8(77), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Jump), U8(7),
B(Star), R(11),
B(Star), R(9),
B(LdaZero),
B(Star), R(10),
B(Star), R(8),
B(LdaTheHole),
/* 38 E> */ B(SetPendingMessage),
B(Star), R(12),
B(Ldar), R(9),
B(Star), R(10),
B(Ldar), R(7),
B(JumpIfToBooleanTrue), U8(94),
B(LdaNamedProperty), R(6), U8(7), U8(17),
B(Star), R(16),
B(Star), R(14),
B(JumpIfUndefinedOrNull), U8(86),
B(Mov), R(context), R(17),
B(Mov), R(context), R(15),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(18),
B(Star), R(16),
B(LdaConstant), U8(8),
B(Star), R(19),
B(CallRuntime), U16(Runtime::kNewTypeError), R(18), U8(2),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Throw),
B(CallProperty0), R(16), R(6), U8(19),
B(Star), R(19),
B(Mov), R(0), R(18),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(18), U8(2),
B(SuspendGenerator), R(0), R(0), U8(18), U8(1),
B(ResumeGenerator), R(0), R(0), U8(18),
B(Star), R(18),
B(CallProperty0), R(14), R(6), U8(19),
B(Star), R(17),
B(Mov), R(0), R(16),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(16), U8(2),
B(SuspendGenerator), R(0), R(0), U8(16), U8(1),
B(ResumeGenerator), R(0), R(0), U8(16),
B(Star), R(16),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(19),
B(Star), R(17),
B(LdaZero),
B(TestReferenceEqual), R(19),
B(TestReferenceEqual), R(17),
B(JumpIfTrue), U8(5),
B(Ldar), R(18),
B(Ldar), R(16),
B(ReThrow),
B(Ldar), R(18),
B(Ldar), R(16),
B(JumpIfJSReceiver), U8(21),
B(Star), R(20),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(20), U8(1),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(18), U8(1),
B(Jump), U8(12),
B(Star), R(17),
B(Star), R(15),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfTrue), U8(5),
B(Ldar), R(17),
B(Ldar), R(15),
B(ReThrow),
B(Ldar), R(12),
B(Ldar), R(10),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfFalse), U8(5),
B(Ldar), R(11),
B(Ldar), R(9),
B(ReThrow),
B(LdaUndefined),
B(Star), R(6),
......@@ -178,7 +178,7 @@ snippet: "
}
f();
"
frame size: 21
frame size: 19
parameter count: 1
bytecode array length: 341
bytecodes: [
......@@ -206,102 +206,102 @@ bytecodes: [
B(LdaNamedProperty), R(6), U8(4), U8(9),
B(Star), R(5),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(context), R(12),
B(Star), R(7),
B(Mov), R(context), R(10),
B(LdaTrue),
B(Star), R(9),
B(Star), R(7),
/* 38 S> */ B(CallProperty0), R(5), R(6), U8(11),
B(Star), R(15),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(14), U8(2),
B(SuspendGenerator), R(0), R(0), U8(14), U8(0),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
B(Star), R(13),
B(Mov), R(0), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(12), U8(2),
B(SuspendGenerator), R(0), R(0), U8(12), U8(0),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Mov), R(14), R(13),
B(Ldar), R(12),
B(Mov), R(12), R(11),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(LdaNamedProperty), R(13), U8(5), U8(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(5), U8(13),
B(JumpIfToBooleanTrue), U8(27),
B(LdaNamedProperty), R(13), U8(6), U8(15),
B(Star), R(13),
B(LdaNamedProperty), R(11), U8(6), U8(15),
B(Star), R(11),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(13), R(1),
B(Star), R(7),
B(Mov), R(11), R(1),
/* 23 E> */ B(StackCheck),
/* 38 S> */ B(Mov), R(1), R(3),
/* 56 S> */ B(LdaSmi), I8(1),
B(Mov), R(13), R(11),
B(Star), R(10),
B(Mov), R(11), R(9),
B(Star), R(8),
B(Jump), U8(15),
B(LdaSmi), I8(-1),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Jump), U8(7),
B(Star), R(11),
B(Star), R(9),
B(LdaZero),
B(Star), R(10),
B(Star), R(8),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(12),
B(Ldar), R(9),
B(Star), R(10),
B(Ldar), R(7),
B(JumpIfToBooleanTrue), U8(94),
B(LdaNamedProperty), R(6), U8(7), U8(17),
B(Star), R(16),
B(Star), R(14),
B(JumpIfUndefinedOrNull), U8(86),
B(Mov), R(context), R(17),
B(Mov), R(context), R(15),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(18),
B(Star), R(16),
B(LdaConstant), U8(8),
B(Star), R(19),
B(CallRuntime), U16(Runtime::kNewTypeError), R(18), U8(2),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Throw),
B(CallProperty0), R(16), R(6), U8(19),
B(Star), R(19),
B(Mov), R(0), R(18),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(18), U8(2),
B(SuspendGenerator), R(0), R(0), U8(18), U8(1),
B(ResumeGenerator), R(0), R(0), U8(18),
B(Star), R(18),
B(CallProperty0), R(14), R(6), U8(19),
B(Star), R(17),
B(Mov), R(0), R(16),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(16), U8(2),
B(SuspendGenerator), R(0), R(0), U8(16), U8(1),
B(ResumeGenerator), R(0), R(0), U8(16),
B(Star), R(16),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(19),
B(Star), R(17),
B(LdaZero),
B(TestReferenceEqual), R(19),
B(TestReferenceEqual), R(17),
B(JumpIfTrue), U8(5),
B(Ldar), R(18),
B(Ldar), R(16),
B(ReThrow),
B(Ldar), R(18),
B(Ldar), R(16),
B(JumpIfJSReceiver), U8(21),
B(Star), R(20),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(20), U8(1),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(18), U8(1),
B(Jump), U8(12),
B(Star), R(17),
B(Star), R(15),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfTrue), U8(5),
B(Ldar), R(17),
B(Ldar), R(15),
B(ReThrow),
B(Ldar), R(12),
B(SetPendingMessage),
B(Ldar), R(10),
B(SetPendingMessage),
B(Ldar), R(8),
B(SwitchOnSmiNoFeedback), U8(9), U8(2), I8(0),
B(Jump), U8(19),
B(Ldar), R(11),
B(Ldar), R(9),
B(ReThrow),
B(LdaTrue),
B(Star), R(18),
B(Mov), R(0), R(16),
B(Mov), R(11), R(17),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionResolve), R(16), U8(3),
B(Star), R(16),
B(Mov), R(0), R(14),
B(Mov), R(9), R(15),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionResolve), R(14), U8(3),
/* 68 S> */ B(Return),
B(LdaUndefined),
B(Star), R(6),
......@@ -355,7 +355,7 @@ snippet: "
}
f();
"
frame size: 21
frame size: 19
parameter count: 1
bytecode array length: 336
bytecodes: [
......@@ -383,35 +383,35 @@ bytecodes: [
B(LdaNamedProperty), R(6), U8(4), U8(9),
B(Star), R(5),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(context), R(12),
B(Star), R(7),
B(Mov), R(context), R(10),
B(LdaTrue),
B(Star), R(9),
B(Star), R(7),
/* 38 S> */ B(CallProperty0), R(5), R(6), U8(11),
B(Star), R(15),
B(Mov), R(0), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(14), U8(2),
B(SuspendGenerator), R(0), R(0), U8(14), U8(0),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
B(Star), R(13),
B(Mov), R(0), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(12), U8(2),
B(SuspendGenerator), R(0), R(0), U8(12), U8(0),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Mov), R(14), R(13),
B(Ldar), R(12),
B(Mov), R(12), R(11),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(LdaNamedProperty), R(13), U8(5), U8(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(5), U8(13),
B(JumpIfToBooleanTrue), U8(39),
B(LdaNamedProperty), R(13), U8(6), U8(15),
B(Star), R(13),
B(LdaNamedProperty), R(11), U8(6), U8(15),
B(Star), R(11),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(13), R(1),
B(Star), R(7),
B(Mov), R(11), R(1),
/* 23 E> */ B(StackCheck),
/* 38 S> */ B(Mov), R(1), R(3),
/* 63 S> */ B(LdaSmi), I8(10),
......@@ -424,60 +424,60 @@ bytecodes: [
/* 103 S> */ B(Jump), U8(5),
B(JumpLoop), U8(93), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Jump), U8(7),
B(Star), R(11),
B(Star), R(9),
B(LdaZero),
B(Star), R(10),
B(Star), R(8),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(12),
B(Ldar), R(9),
B(Star), R(10),
B(Ldar), R(7),
B(JumpIfToBooleanTrue), U8(94),
B(LdaNamedProperty), R(6), U8(7), U8(19),
B(Star), R(16),
B(Star), R(14),
B(JumpIfUndefinedOrNull), U8(86),
B(Mov), R(context), R(17),
B(Mov), R(context), R(15),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(18),
B(Star), R(16),
B(LdaConstant), U8(8),
B(Star), R(19),
B(CallRuntime), U16(Runtime::kNewTypeError), R(18), U8(2),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Throw),
B(CallProperty0), R(16), R(6), U8(21),
B(Star), R(19),
B(Mov), R(0), R(18),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(18), U8(2),
B(SuspendGenerator), R(0), R(0), U8(18), U8(1),
B(ResumeGenerator), R(0), R(0), U8(18),
B(Star), R(18),
B(CallProperty0), R(14), R(6), U8(21),
B(Star), R(17),
B(Mov), R(0), R(16),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(16), U8(2),
B(SuspendGenerator), R(0), R(0), U8(16), U8(1),
B(ResumeGenerator), R(0), R(0), U8(16),
B(Star), R(16),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(19),
B(Star), R(17),
B(LdaZero),
B(TestReferenceEqual), R(19),
B(TestReferenceEqual), R(17),
B(JumpIfTrue), U8(5),
B(Ldar), R(18),
B(Ldar), R(16),
B(ReThrow),
B(Ldar), R(18),
B(Ldar), R(16),
B(JumpIfJSReceiver), U8(21),
B(Star), R(20),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(20), U8(1),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(18), U8(1),
B(Jump), U8(12),
B(Star), R(17),
B(Star), R(15),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfTrue), U8(5),
B(Ldar), R(17),
B(Ldar), R(15),
B(ReThrow),
B(Ldar), R(12),
B(Ldar), R(10),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfFalse), U8(5),
B(Ldar), R(11),
B(Ldar), R(9),
B(ReThrow),
B(LdaUndefined),
B(Star), R(6),
......@@ -527,7 +527,7 @@ snippet: "
}
f();
"
frame size: 17
frame size: 15
parameter count: 1
bytecode array length: 258
bytecodes: [
......@@ -550,76 +550,76 @@ bytecodes: [
B(LdaNamedProperty), R(4), U8(2), U8(6),
B(Star), R(3),
B(LdaFalse),
B(Star), R(7),
B(Mov), R(context), R(10),
B(Star), R(5),
B(Mov), R(context), R(8),
B(LdaTrue),
B(Star), R(7),
B(Star), R(5),
/* 59 S> */ B(CallProperty0), R(3), R(4), U8(8),
B(Star), R(11),
B(Star), R(9),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(3), U8(10),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(3), U8(10),
B(JumpIfToBooleanTrue), U8(33),
B(LdaNamedProperty), R(11), U8(4), U8(12),
B(Star), R(11),
B(LdaNamedProperty), R(9), U8(4), U8(12),
B(Star), R(9),
B(LdaFalse),
B(Star), R(7),
B(Ldar), R(11),
B(Star), R(5),
B(Ldar), R(9),
/* 58 E> */ B(StaNamedProperty), R(1), U8(5), U8(14),
/* 53 E> */ B(StackCheck),
/* 87 S> */ B(LdaNamedProperty), R(1), U8(5), U8(16),
B(Star), R(9),
B(Star), R(7),
B(LdaSmi), I8(1),
B(Star), R(8),
B(Mov), R(1), R(12),
B(Star), R(6),
B(Mov), R(1), R(10),
B(Jump), U8(15),
B(LdaSmi), I8(-1),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Jump), U8(7),
B(Star), R(9),
B(Star), R(7),
B(LdaZero),
B(Star), R(8),
B(Star), R(6),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(10),
B(Ldar), R(7),
B(Star), R(8),
B(Ldar), R(5),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(4), U8(6), U8(18),
B(Star), R(13),
B(Star), R(11),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(14),
B(Mov), R(context), R(12),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(15),
B(Star), R(13),
B(LdaConstant), U8(7),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Throw),
B(CallProperty0), R(13), R(4), U8(20),
B(CallProperty0), R(11), R(4), U8(20),
B(JumpIfJSReceiver), U8(21),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Jump), U8(12),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(TestReferenceEqual), R(8),
B(TestReferenceEqual), R(6),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(10),
B(SetPendingMessage),
B(Ldar), R(8),
B(SetPendingMessage),
B(Ldar), R(6),
B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
B(Jump), U8(19),
B(Ldar), R(9),
B(Ldar), R(7),
B(ReThrow),
B(LdaFalse),
B(Star), R(15),
B(Mov), R(0), R(13),
B(Mov), R(9), R(14),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionResolve), R(13), U8(3),
B(Star), R(13),
B(Mov), R(0), R(11),
B(Mov), R(7), R(12),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionResolve), R(11), U8(3),
/* 96 S> */ B(Return),
B(LdaUndefined),
B(Star), R(4),
......
......@@ -9,7 +9,7 @@ wrap: yes
snippet: "
for (var p of [0, 1, 2]) {}
"
frame size: 15
frame size: 13
parameter count: 1
bytecode array length: 170
bytecodes: [
......@@ -25,66 +25,66 @@ bytecodes: [
B(LdaNamedProperty), R(3), U8(1), U8(5),
B(Star), R(2),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(context), R(9),
B(Star), R(4),
B(Mov), R(context), R(7),
B(LdaTrue),
B(Star), R(6),
B(Star), R(4),
/* 43 S> */ B(CallProperty0), R(2), R(3), U8(7),
B(Star), R(10),
B(Star), R(8),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(8), U8(1),
B(LdaNamedProperty), R(8), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(23),
B(LdaNamedProperty), R(10), U8(3), U8(11),
B(Star), R(10),
B(LdaNamedProperty), R(8), U8(3), U8(11),
B(Star), R(8),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(10), R(1),
B(Star), R(4),
B(Mov), R(8), R(1),
/* 34 E> */ B(StackCheck),
/* 43 S> */ B(Mov), R(1), R(0),
B(Ldar), R(10),
B(Ldar), R(8),
B(JumpLoop), U8(40), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Star), R(5),
B(Jump), U8(7),
B(Star), R(8),
B(Star), R(6),
B(LdaZero),
B(Star), R(7),
B(Star), R(5),
B(LdaTheHole),
/* 43 E> */ B(SetPendingMessage),
B(Star), R(9),
B(Ldar), R(6),
B(Star), R(7),
B(Ldar), R(4),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(3), U8(4), U8(13),
B(Star), R(11),
B(Star), R(9),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(12),
B(Mov), R(context), R(10),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(13),
B(Star), R(11),
B(LdaConstant), U8(5),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
B(Throw),
B(CallProperty0), R(11), R(3), U8(15),
B(CallProperty0), R(9), R(3), U8(15),
B(JumpIfJSReceiver), U8(21),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Star), R(11),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(Jump), U8(12),
B(Star), R(12),
B(Star), R(10),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfTrue), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(Ldar), R(9),
B(Ldar), R(7),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfFalse), U8(5),
B(Ldar), R(8),
B(Ldar), R(6),
B(ReThrow),
B(LdaUndefined),
/* 62 S> */ B(Return),
......@@ -107,9 +107,9 @@ snippet: "
var x = 'potatoes';
for (var p of x) { return p; }
"
frame size: 16
frame size: 14
parameter count: 1
bytecode array length: 181
bytecode array length: 178
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
......@@ -117,77 +117,76 @@ bytecodes: [
/* 68 S> */ B(GetIterator), R(0), U8(0),
B(Star), R(6),
B(CallProperty0), R(6), R(0), U8(2),
B(Mov), R(0), R(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(4),
B(LdaNamedProperty), R(4), U8(1), U8(4),
B(Star), R(3),
B(LdaFalse),
B(Star), R(7),
B(Mov), R(context), R(10),
B(Star), R(5),
B(Mov), R(context), R(8),
B(LdaTrue),
B(Star), R(7),
B(Star), R(5),
/* 63 S> */ B(CallProperty0), R(3), R(4), U8(6),
B(Star), R(11),
B(Star), R(9),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(2), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(2), U8(8),
B(JumpIfToBooleanTrue), U8(27),
B(LdaNamedProperty), R(11), U8(3), U8(10),
B(Star), R(11),
B(LdaNamedProperty), R(9), U8(3), U8(10),
B(Star), R(9),
B(LdaFalse),
B(Star), R(7),
B(Mov), R(11), R(2),
B(Star), R(5),
B(Mov), R(9), R(2),
/* 54 E> */ B(StackCheck),
/* 63 S> */ B(Mov), R(2), R(1),
/* 73 S> */ B(LdaSmi), I8(1),
B(Mov), R(11), R(9),
B(Star), R(8),
B(Mov), R(9), R(7),
B(Star), R(6),
B(Jump), U8(15),
B(LdaSmi), I8(-1),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Jump), U8(7),
B(Star), R(9),
B(Star), R(7),
B(LdaZero),
B(Star), R(8),
B(Star), R(6),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(10),
B(Ldar), R(7),
B(Star), R(8),
B(Ldar), R(5),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(4), U8(4), U8(12),
B(Star), R(12),
B(Star), R(10),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(13),
B(Mov), R(context), R(11),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(14),
B(Star), R(12),
B(LdaConstant), U8(5),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
B(Throw),
B(CallProperty0), R(12), R(4), U8(14),
B(CallProperty0), R(10), R(4), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(Jump), U8(12),
B(Star), R(13),
B(Star), R(11),
B(LdaZero),
B(TestReferenceEqual), R(8),
B(TestReferenceEqual), R(6),
B(JumpIfTrue), U8(5),
B(Ldar), R(13),
B(Ldar), R(11),
B(ReThrow),
B(Ldar), R(10),
B(SetPendingMessage),
B(Ldar), R(8),
B(SetPendingMessage),
B(Ldar), R(6),
B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0),
B(Jump), U8(8),
B(Ldar), R(9),
B(Ldar), R(7),
B(ReThrow),
B(Ldar), R(9),
B(Ldar), R(7),
/* 85 S> */ B(Return),
B(LdaUndefined),
/* 85 S> */ B(Return),
......@@ -203,8 +202,8 @@ constant pool: [
Smi [9],
]
handlers: [
[38, 85, 93],
[117, 150, 152],
[35, 82, 90],
[114, 147, 149],
]
---
......@@ -214,7 +213,7 @@ snippet: "
if (x == 20) break;
}
"
frame size: 15
frame size: 13
parameter count: 1
bytecode array length: 186
bytecodes: [
......@@ -230,21 +229,21 @@ bytecodes: [
B(LdaNamedProperty), R(3), U8(1), U8(5),
B(Star), R(2),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(context), R(9),
B(Star), R(4),
B(Mov), R(context), R(7),
B(LdaTrue),
B(Star), R(6),
B(Star), R(4),
/* 43 S> */ B(CallProperty0), R(2), R(3), U8(7),
B(Star), R(10),
B(Star), R(8),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(2), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(8), U8(1),
B(LdaNamedProperty), R(8), U8(2), U8(9),
B(JumpIfToBooleanTrue), U8(39),
B(LdaNamedProperty), R(10), U8(3), U8(11),
B(Star), R(10),
B(LdaNamedProperty), R(8), U8(3), U8(11),
B(Star), R(8),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(10), R(1),
B(Star), R(4),
B(Mov), R(8), R(1),
/* 34 E> */ B(StackCheck),
/* 43 S> */ B(Mov), R(1), R(0),
/* 66 S> */ B(LdaSmi), I8(10),
......@@ -257,46 +256,46 @@ bytecodes: [
/* 104 S> */ B(Jump), U8(5),
B(JumpLoop), U8(56), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Star), R(5),
B(Jump), U8(7),
B(Star), R(8),
B(Star), R(6),
B(LdaZero),
B(Star), R(7),
B(Star), R(5),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(9),
B(Ldar), R(6),
B(Star), R(7),
B(Ldar), R(4),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(3), U8(4), U8(15),
B(Star), R(11),
B(Star), R(9),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(12),
B(Mov), R(context), R(10),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(13),
B(Star), R(11),
B(LdaConstant), U8(5),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
B(Throw),
B(CallProperty0), R(11), R(3), U8(17),
B(CallProperty0), R(9), R(3), U8(17),
B(JumpIfJSReceiver), U8(21),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Star), R(11),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(Jump), U8(12),
B(Star), R(12),
B(Star), R(10),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfTrue), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(Ldar), R(9),
B(Ldar), R(7),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfFalse), U8(5),
B(Ldar), R(8),
B(Ldar), R(6),
B(ReThrow),
B(LdaUndefined),
/* 113 S> */ B(Return),
......@@ -319,7 +318,7 @@ snippet: "
var x = { 'a': 1, 'b': 2 };
for (x['a'] of [1,2,3]) { return x['a']; }
"
frame size: 15
frame size: 13
parameter count: 1
bytecode array length: 192
bytecodes: [
......@@ -337,72 +336,72 @@ bytecodes: [
B(LdaNamedProperty), R(2), U8(2), U8(6),
B(Star), R(1),
B(LdaFalse),
B(Star), R(5),
B(Mov), R(context), R(8),
B(Star), R(3),
B(Mov), R(context), R(6),
B(LdaTrue),
B(Star), R(5),
B(Star), R(3),
/* 68 S> */ B(CallProperty0), R(1), R(2), U8(8),
B(Star), R(9),
B(Star), R(7),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(3), U8(10),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
B(LdaNamedProperty), R(7), U8(3), U8(10),
B(JumpIfToBooleanTrue), U8(33),
B(LdaNamedProperty), R(9), U8(4), U8(12),
B(Star), R(9),
B(LdaNamedProperty), R(7), U8(4), U8(12),
B(Star), R(7),
B(LdaFalse),
B(Star), R(5),
B(Ldar), R(9),
B(Star), R(3),
B(Ldar), R(7),
/* 67 E> */ B(StaNamedProperty), R(0), U8(5), U8(14),
/* 62 E> */ B(StackCheck),
/* 96 S> */ B(LdaNamedProperty), R(0), U8(5), U8(16),
B(Star), R(7),
B(Star), R(5),
B(LdaSmi), I8(1),
B(Star), R(6),
B(Mov), R(0), R(10),
B(Star), R(4),
B(Mov), R(0), R(8),
B(Jump), U8(15),
B(LdaSmi), I8(-1),
B(Star), R(7),
B(Star), R(6),
B(Star), R(5),
B(Star), R(4),
B(Jump), U8(7),
B(Star), R(7),
B(Star), R(5),
B(LdaZero),
B(Star), R(6),
B(Star), R(4),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(8),
B(Ldar), R(5),
B(Star), R(6),
B(Ldar), R(3),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(2), U8(6), U8(18),
B(Star), R(11),
B(Star), R(9),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(12),
B(Mov), R(context), R(10),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(13),
B(Star), R(11),
B(LdaConstant), U8(7),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
B(Throw),
B(CallProperty0), R(11), R(2), U8(20),
B(CallProperty0), R(9), R(2), U8(20),
B(JumpIfJSReceiver), U8(21),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Star), R(11),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(Jump), U8(12),
B(Star), R(12),
B(Star), R(10),
B(LdaZero),
B(TestReferenceEqual), R(6),
B(TestReferenceEqual), R(4),
B(JumpIfTrue), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(Ldar), R(8),
B(SetPendingMessage),
B(Ldar), R(6),
B(SetPendingMessage),
B(Ldar), R(4),
B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
B(Jump), U8(8),
B(Ldar), R(7),
B(Ldar), R(5),
B(ReThrow),
B(Ldar), R(7),
B(Ldar), R(5),
/* 105 S> */ B(Return),
B(LdaUndefined),
/* 105 S> */ B(Return),
......
......@@ -13,82 +13,81 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 17
frame size: 15
parameter count: 2
bytecode array length: 170
bytecode array length: 167
bytecodes: [
/* 10 E> */ B(StackCheck),
/* 34 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(7),
B(CallProperty0), R(7), R(arg0), U8(2),
B(Mov), R(arg0), R(6),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(5),
B(LdaNamedProperty), R(5), U8(0), U8(4),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
B(Star), R(6),
B(Mov), R(context), R(9),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
/* 29 S> */ B(CallProperty0), R(4), R(5), U8(6),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(1), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(1), U8(8),
B(JumpIfToBooleanTrue), U8(26),
B(LdaNamedProperty), R(12), U8(2), U8(10),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(2), U8(10),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(12), R(0),
B(Star), R(6),
B(Mov), R(10), R(0),
/* 20 E> */ B(StackCheck),
/* 29 S> */ B(Mov), R(0), R(2),
/* 49 S> */ B(Mov), R(2), R(3),
B(Ldar), R(12),
B(Ldar), R(10),
B(JumpLoop), U8(43), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
/* 49 E> */ B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(3), U8(12),
B(Star), R(13),
B(Star), R(11),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(14),
B(Mov), R(context), R(12),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(15),
B(Star), R(13),
B(LdaConstant), U8(4),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Throw),
B(CallProperty0), R(13), R(5), U8(14),
B(CallProperty0), R(11), R(5), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Jump), U8(12),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(11),
B(Ldar), R(9),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfFalse), U8(5),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(LdaUndefined),
/* 54 S> */ B(Return),
......@@ -101,8 +100,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[34, 80, 88],
[112, 145, 147],
[31, 77, 85],
[109, 142, 144],
]
---
......@@ -112,7 +111,7 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 22
frame size: 20
parameter count: 2
bytecode array length: 251
bytecodes: [
......@@ -142,88 +141,88 @@ bytecodes: [
B(LdaNamedProperty), R(5), U8(2), U8(4),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
B(Star), R(6),
B(Mov), R(context), R(9),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
/* 29 S> */ B(CallProperty0), R(4), R(5), U8(6),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(3), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(3), U8(8),
B(JumpIfToBooleanTrue), U8(75),
B(LdaNamedProperty), R(12), U8(4), U8(10),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(4), U8(10),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(12), R(0),
B(Star), R(6),
B(Mov), R(10), R(0),
/* 20 E> */ B(StackCheck),
B(CreateBlockContext), U8(5),
B(PushContext), R(13),
B(PushContext), R(11),
B(LdaTheHole),
B(StaCurrentContextSlot), U8(4),
/* 29 S> */ B(Ldar), R(0),
/* 29 E> */ B(StaCurrentContextSlot), U8(4),
/* 41 S> */ B(LdaLookupGlobalSlot), U8(6), U8(12), U8(3),
B(Star), R(14),
B(Star), R(12),
B(LdaConstant), U8(7),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(Star), R(19),
B(Star), R(17),
B(LdaSmi), I8(37),
B(Star), R(20),
B(Star), R(18),
B(LdaSmi), I8(41),
B(Star), R(21),
B(Mov), R(14), R(16),
B(Mov), R(15), R(17),
B(Mov), R(closure), R(18),
B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(16), U8(6),
B(Star), R(14),
/* 41 E> */ B(CallUndefinedReceiver1), R(14), R(15), U8(14),
B(PopContext), R(13),
B(Mov), R(0), R(12),
B(Star), R(19),
B(Mov), R(12), R(14),
B(Mov), R(13), R(15),
B(Mov), R(closure), R(16),
B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(14), U8(6),
B(Star), R(12),
/* 41 E> */ B(CallUndefinedReceiver1), R(12), R(13), U8(14),
B(PopContext), R(11),
B(Mov), R(0), R(10),
B(JumpLoop), U8(92), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(8), U8(16),
B(Star), R(14),
B(Star), R(12),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(15),
B(Mov), R(context), R(13),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(16),
B(Star), R(14),
B(LdaConstant), U8(9),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Throw),
B(CallProperty0), R(14), R(5), U8(18),
B(CallProperty0), R(12), R(5), U8(18),
B(JumpIfJSReceiver), U8(21),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Jump), U8(12),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(15),
B(Ldar), R(13),
B(ReThrow),
B(Ldar), R(11),
B(Ldar), R(9),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfFalse), U8(5),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(PopContext), R(3),
B(LdaUndefined),
......@@ -253,90 +252,89 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 16
frame size: 14
parameter count: 2
bytecode array length: 187
bytecode array length: 184
bytecodes: [
/* 10 E> */ B(StackCheck),
/* 34 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(5),
B(CallProperty0), R(5), R(arg0), U8(2),
B(Mov), R(arg0), R(4),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(3),
B(LdaNamedProperty), R(3), U8(0), U8(4),
B(Star), R(2),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(context), R(9),
B(Star), R(4),
B(Mov), R(context), R(7),
B(LdaTrue),
B(Star), R(6),
B(Star), R(4),
/* 29 S> */ B(CallProperty0), R(2), R(3), U8(6),
B(Star), R(10),
B(Star), R(8),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(1), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(8), U8(1),
B(LdaNamedProperty), R(8), U8(1), U8(8),
B(JumpIfToBooleanTrue), U8(43),
B(LdaNamedProperty), R(10), U8(2), U8(10),
B(Star), R(10),
B(LdaNamedProperty), R(8), U8(2), U8(10),
B(Star), R(8),
B(LdaFalse),
B(Star), R(6),
B(Mov), R(10), R(0),
B(Star), R(4),
B(Mov), R(8), R(0),
/* 20 E> */ B(StackCheck),
B(CreateBlockContext), U8(3),
B(PushContext), R(11),
B(PushContext), R(9),
B(LdaTheHole),
B(StaCurrentContextSlot), U8(4),
/* 29 S> */ B(Ldar), R(0),
/* 29 E> */ B(StaCurrentContextSlot), U8(4),
/* 41 S> */ B(CreateClosure), U8(4), U8(0), U8(2),
B(Star), R(12),
/* 67 E> */ B(CallUndefinedReceiver0), R(12), U8(12),
B(PopContext), R(11),
B(Mov), R(0), R(10),
B(Star), R(10),
/* 67 E> */ B(CallUndefinedReceiver0), R(10), U8(12),
B(PopContext), R(9),
B(Mov), R(0), R(8),
B(JumpLoop), U8(60), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(8),
B(Star), R(7),
B(Star), R(6),
B(Star), R(5),
B(Jump), U8(7),
B(Star), R(8),
B(Star), R(6),
B(LdaZero),
B(Star), R(7),
B(Star), R(5),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(9),
B(Ldar), R(6),
B(Star), R(7),
B(Ldar), R(4),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(3), U8(5), U8(14),
B(Star), R(12),
B(Star), R(10),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(13),
B(Mov), R(context), R(11),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(14),
B(Star), R(12),
B(LdaConstant), U8(6),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
B(Throw),
B(CallProperty0), R(12), R(3), U8(16),
B(CallProperty0), R(10), R(3), U8(16),
B(JumpIfJSReceiver), U8(21),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(Jump), U8(12),
B(Star), R(13),
B(Star), R(11),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfTrue), U8(5),
B(Ldar), R(13),
B(Ldar), R(11),
B(ReThrow),
B(Ldar), R(9),
B(Ldar), R(7),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(7),
B(TestReferenceEqual), R(5),
B(JumpIfFalse), U8(5),
B(Ldar), R(8),
B(Ldar), R(6),
B(ReThrow),
B(LdaUndefined),
/* 73 S> */ B(Return),
......@@ -351,8 +349,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[34, 97, 105],
[129, 162, 164],
[31, 94, 102],
[126, 159, 161],
]
---
......@@ -362,91 +360,90 @@ snippet: "
}
f([{ x: 0, y: 3 }, { x: 1, y: 9 }, { x: -12, y: 17 }]);
"
frame size: 19
frame size: 17
parameter count: 2
bytecode array length: 194
bytecode array length: 191
bytecodes: [
/* 10 E> */ B(StackCheck),
/* 41 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(9),
B(CallProperty0), R(9), R(arg0), U8(2),
B(Mov), R(arg0), R(8),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(7),
B(LdaNamedProperty), R(7), U8(0), U8(4),
B(Star), R(6),
B(LdaFalse),
B(Star), R(10),
B(Mov), R(context), R(13),
B(Star), R(8),
B(Mov), R(context), R(11),
B(LdaTrue),
B(Star), R(10),
B(Star), R(8),
/* 36 S> */ B(CallProperty0), R(6), R(7), U8(6),
B(Star), R(14),
B(Star), R(12),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(LdaNamedProperty), R(14), U8(1), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(1), U8(8),
B(JumpIfToBooleanTrue), U8(50),
B(LdaNamedProperty), R(14), U8(2), U8(10),
B(Star), R(14),
B(LdaNamedProperty), R(12), U8(2), U8(10),
B(Star), R(12),
B(LdaFalse),
B(Star), R(10),
B(Mov), R(14), R(0),
B(Star), R(8),
B(Mov), R(12), R(0),
/* 20 E> */ B(StackCheck),
/* 36 S> */ B(Ldar), R(14),
/* 36 S> */ B(Ldar), R(12),
B(JumpIfNull), U8(4),
B(JumpIfNotUndefined), U8(7),
/* 29 E> */ B(CallRuntime), U16(Runtime::kThrowPatternAssignmentNonCoercible), R(0), U8(0),
B(Star), R(15),
/* 31 S> */ B(LdaNamedProperty), R(15), U8(3), U8(12),
B(Star), R(13),
/* 31 S> */ B(LdaNamedProperty), R(13), U8(3), U8(12),
B(Star), R(3),
/* 34 S> */ B(LdaNamedProperty), R(15), U8(4), U8(14),
/* 34 S> */ B(LdaNamedProperty), R(13), U8(4), U8(14),
B(Star), R(4),
/* 56 S> */ B(Ldar), R(4),
/* 58 E> */ B(Add), R(3), U8(16),
B(Star), R(5),
B(JumpLoop), U8(67), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(12),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Jump), U8(7),
B(Star), R(12),
B(Star), R(10),
B(LdaZero),
B(Star), R(11),
B(Star), R(9),
B(LdaTheHole),
/* 56 E> */ B(SetPendingMessage),
B(Star), R(13),
B(Ldar), R(10),
B(Star), R(11),
B(Ldar), R(8),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(7), U8(5), U8(17),
B(Star), R(15),
B(Star), R(13),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(16),
B(Mov), R(context), R(14),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(17),
B(Star), R(15),
B(LdaConstant), U8(6),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kNewTypeError), R(17), U8(2),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Throw),
B(CallProperty0), R(15), R(7), U8(19),
B(CallProperty0), R(13), R(7), U8(19),
B(JumpIfJSReceiver), U8(21),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(17), U8(1),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Jump), U8(12),
B(Star), R(16),
B(Star), R(14),
B(LdaZero),
B(TestReferenceEqual), R(11),
B(TestReferenceEqual), R(9),
B(JumpIfTrue), U8(5),
B(Ldar), R(16),
B(Ldar), R(14),
B(ReThrow),
B(Ldar), R(13),
B(Ldar), R(11),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(11),
B(TestReferenceEqual), R(9),
B(JumpIfFalse), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(LdaUndefined),
/* 65 S> */ B(Return),
......@@ -461,8 +458,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[34, 104, 112],
[136, 169, 171],
[31, 101, 109],
[133, 166, 168],
]
---
......@@ -472,9 +469,9 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 18
frame size: 16
parameter count: 2
bytecode array length: 211
bytecode array length: 208
bytecodes: [
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
B(Mov), R(closure), R(5),
......@@ -494,74 +491,73 @@ bytecodes: [
/* 35 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(8),
B(CallProperty0), R(8), R(arg0), U8(2),
B(Mov), R(arg0), R(7),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(6),
B(LdaNamedProperty), R(6), U8(3), U8(4),
B(Star), R(5),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(context), R(12),
B(Star), R(7),
B(Mov), R(context), R(10),
B(LdaTrue),
B(Star), R(9),
B(Star), R(7),
/* 30 S> */ B(CallProperty0), R(5), R(6), U8(6),
B(Star), R(13),
B(Star), R(11),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(LdaNamedProperty), R(13), U8(4), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(4), U8(8),
B(JumpIfToBooleanTrue), U8(26),
B(LdaNamedProperty), R(13), U8(5), U8(10),
B(Star), R(13),
B(LdaNamedProperty), R(11), U8(5), U8(10),
B(Star), R(11),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(13), R(1),
B(Star), R(7),
B(Mov), R(11), R(1),
/* 21 E> */ B(StackCheck),
/* 30 S> */ B(Mov), R(1), R(3),
/* 50 S> */ B(Mov), R(3), R(4),
B(Ldar), R(13),
B(Ldar), R(11),
B(JumpLoop), U8(43), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Jump), U8(7),
B(Star), R(11),
B(Star), R(9),
B(LdaZero),
B(Star), R(10),
B(Star), R(8),
B(LdaTheHole),
/* 50 E> */ B(SetPendingMessage),
B(Star), R(12),
B(Ldar), R(9),
B(Star), R(10),
B(Ldar), R(7),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(6), U8(6), U8(12),
B(Star), R(14),
B(Star), R(12),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(15),
B(Mov), R(context), R(13),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(16),
B(Star), R(14),
B(LdaConstant), U8(7),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Throw),
B(CallProperty0), R(14), R(6), U8(14),
B(CallProperty0), R(12), R(6), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Jump), U8(12),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfTrue), U8(5),
B(Ldar), R(15),
B(Ldar), R(13),
B(ReThrow),
B(Ldar), R(12),
B(Ldar), R(10),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfFalse), U8(5),
B(Ldar), R(11),
B(Ldar), R(9),
B(ReThrow),
B(LdaUndefined),
/* 55 S> */ B(Return),
......@@ -577,8 +573,8 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
]
handlers: [
[75, 121, 129],
[153, 186, 188],
[72, 118, 126],
[150, 183, 185],
]
---
......@@ -588,9 +584,9 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 17
frame size: 15
parameter count: 2
bytecode array length: 255
bytecode array length: 252
bytecodes: [
B(SwitchOnGeneratorState), R(0), U8(0), U8(2),
B(Mov), R(closure), R(4),
......@@ -610,97 +606,96 @@ bytecodes: [
/* 35 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(7),
B(CallProperty0), R(7), R(arg0), U8(2),
B(Mov), R(arg0), R(6),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(5),
B(LdaNamedProperty), R(5), U8(4), U8(4),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
B(Star), R(6),
B(Mov), R(context), R(9),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
/* 30 S> */ B(CallProperty0), R(4), R(5), U8(6),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(5), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(5), U8(8),
B(JumpIfToBooleanTrue), U8(64),
B(LdaNamedProperty), R(12), U8(6), U8(10),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(6), U8(10),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(12), R(1),
B(Star), R(6),
B(Mov), R(10), R(1),
/* 21 E> */ B(StackCheck),
/* 30 S> */ B(Mov), R(1), R(3),
/* 40 S> */ B(LdaFalse),
B(Star), R(14),
B(Mov), R(3), R(13),
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13), U8(2),
/* 40 E> */ B(SuspendGenerator), R(0), R(0), U8(13), U8(1),
B(ResumeGenerator), R(0), R(0), U8(13),
B(Star), R(13),
B(Star), R(12),
B(Mov), R(3), R(11),
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(11), U8(2),
/* 40 E> */ B(SuspendGenerator), R(0), R(0), U8(11), U8(1),
B(ResumeGenerator), R(0), R(0), U8(11),
B(Star), R(11),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(SwitchOnSmiNoFeedback), U8(7), U8(2), I8(0),
B(Ldar), R(13),
B(Ldar), R(11),
/* 40 E> */ B(Throw),
B(LdaSmi), I8(1),
B(Star), R(9),
B(Mov), R(13), R(10),
B(Star), R(7),
B(Mov), R(11), R(8),
B(Jump), U8(20),
B(Ldar), R(13),
B(Ldar), R(11),
B(JumpLoop), U8(81), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(9), U8(12),
B(Star), R(13),
B(Star), R(11),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(14),
B(Mov), R(context), R(12),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(15),
B(Star), R(13),
B(LdaConstant), U8(10),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Throw),
B(CallProperty0), R(13), R(5), U8(14),
B(CallProperty0), R(11), R(5), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Jump), U8(12),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(11),
B(SetPendingMessage),
B(Ldar), R(9),
B(SetPendingMessage),
B(Ldar), R(7),
B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(0),
B(Jump), U8(8),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(Ldar), R(10),
B(Ldar), R(8),
/* 49 S> */ B(Return),
B(LdaUndefined),
/* 49 S> */ B(Return),
]
constant pool: [
Smi [22],
Smi [128],
Smi [125],
Smi [10],
Smi [7],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
......@@ -714,8 +709,8 @@ constant pool: [
Smi [9],
]
handlers: [
[75, 159, 167],
[191, 224, 226],
[72, 156, 164],
[188, 221, 223],
]
---
......@@ -725,9 +720,9 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 19
frame size: 17
parameter count: 2
bytecode array length: 225
bytecode array length: 222
bytecodes: [
B(Mov), R(closure), R(5),
B(Mov), R(this), R(6),
......@@ -738,74 +733,73 @@ bytecodes: [
/* 40 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(9),
B(CallProperty0), R(9), R(arg0), U8(2),
B(Mov), R(arg0), R(8),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(7),
B(LdaNamedProperty), R(7), U8(0), U8(4),
B(Star), R(6),
B(LdaFalse),
B(Star), R(10),
B(Mov), R(context), R(13),
B(Star), R(8),
B(Mov), R(context), R(11),
B(LdaTrue),
B(Star), R(10),
B(Star), R(8),
/* 35 S> */ B(CallProperty0), R(6), R(7), U8(6),
B(Star), R(14),
B(Star), R(12),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(LdaNamedProperty), R(14), U8(1), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(1), U8(8),
B(JumpIfToBooleanTrue), U8(26),
B(LdaNamedProperty), R(14), U8(2), U8(10),
B(Star), R(14),
B(LdaNamedProperty), R(12), U8(2), U8(10),
B(Star), R(12),
B(LdaFalse),
B(Star), R(10),
B(Mov), R(14), R(1),
B(Star), R(8),
B(Mov), R(12), R(1),
/* 26 E> */ B(StackCheck),
/* 35 S> */ B(Mov), R(1), R(3),
/* 55 S> */ B(Mov), R(3), R(4),
B(Ldar), R(14),
B(Ldar), R(12),
B(JumpLoop), U8(43), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(12),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Jump), U8(7),
B(Star), R(12),
B(Star), R(10),
B(LdaZero),
B(Star), R(11),
B(Star), R(9),
B(LdaTheHole),
/* 55 E> */ B(SetPendingMessage),
B(Star), R(13),
B(Ldar), R(10),
B(Star), R(11),
B(Ldar), R(8),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(7), U8(3), U8(12),
B(Star), R(15),
B(Star), R(13),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(16),
B(Mov), R(context), R(14),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(17),
B(Star), R(15),
B(LdaConstant), U8(4),
B(Star), R(18),
B(CallRuntime), U16(Runtime::kNewTypeError), R(17), U8(2),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Throw),
B(CallProperty0), R(15), R(7), U8(14),
B(CallProperty0), R(13), R(7), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(17), U8(1),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Jump), U8(12),
B(Star), R(16),
B(Star), R(14),
B(LdaZero),
B(TestReferenceEqual), R(11),
B(TestReferenceEqual), R(9),
B(JumpIfTrue), U8(5),
B(Ldar), R(16),
B(Ldar), R(14),
B(ReThrow),
B(Ldar), R(13),
B(Ldar), R(11),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(11),
B(TestReferenceEqual), R(9),
B(JumpIfFalse), U8(5),
B(Ldar), R(12),
B(Ldar), R(10),
B(ReThrow),
B(LdaUndefined),
B(Star), R(7),
......@@ -838,9 +832,9 @@ constant pool: [
SCOPE_INFO_TYPE,
]
handlers: [
[16, 197, 197],
[49, 95, 103],
[127, 160, 162],
[16, 194, 194],
[46, 92, 100],
[124, 157, 159],
]
---
......@@ -850,9 +844,9 @@ snippet: "
}
f([1, 2, 3]);
"
frame size: 18
frame size: 16
parameter count: 2
bytecode array length: 261
bytecode array length: 258
bytecodes: [
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
B(Mov), R(closure), R(4),
......@@ -864,86 +858,85 @@ bytecodes: [
/* 40 S> */ B(GetIterator), R(arg0), U8(0),
B(Star), R(8),
B(CallProperty0), R(8), R(arg0), U8(2),
B(Mov), R(arg0), R(7),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(6),
B(LdaNamedProperty), R(6), U8(1), U8(4),
B(Star), R(5),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(context), R(12),
B(Star), R(7),
B(Mov), R(context), R(10),
B(LdaTrue),
B(Star), R(9),
B(Star), R(7),
/* 35 S> */ B(CallProperty0), R(5), R(6), U8(6),
B(Star), R(13),
B(Star), R(11),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(LdaNamedProperty), R(13), U8(2), U8(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
B(LdaNamedProperty), R(11), U8(2), U8(8),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(13), U8(3), U8(10),
B(Star), R(13),
B(LdaNamedProperty), R(11), U8(3), U8(10),
B(Star), R(11),
B(LdaFalse),
B(Star), R(9),
B(Mov), R(13), R(1),
B(Star), R(7),
B(Mov), R(11), R(1),
/* 26 E> */ B(StackCheck),
/* 35 S> */ B(Mov), R(1), R(3),
/* 45 S> */ B(Mov), R(0), R(14),
B(Mov), R(3), R(15),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(14), U8(2),
/* 45 E> */ B(SuspendGenerator), R(0), R(0), U8(14), U8(0),
B(ResumeGenerator), R(0), R(0), U8(14),
B(Star), R(14),
/* 45 S> */ B(Mov), R(0), R(12),
B(Mov), R(3), R(13),
B(InvokeIntrinsic), U8(Runtime::k_AsyncFunctionAwaitUncaught), R(12), U8(2),
/* 45 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(0),
B(ResumeGenerator), R(0), R(0), U8(12),
B(Star), R(12),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(15),
B(TestReferenceEqual), R(13),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(14),
B(Ldar), R(12),
B(JumpLoop), U8(75), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(11),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Jump), U8(7),
B(Star), R(11),
B(Star), R(9),
B(LdaZero),
B(Star), R(10),
B(Star), R(8),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(12),
B(Ldar), R(9),
B(Star), R(10),
B(Ldar), R(7),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(6), U8(4), U8(12),
B(Star), R(14),
B(Star), R(12),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(15),
B(Mov), R(context), R(13),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(16),
B(Star), R(14),
B(LdaConstant), U8(5),
B(Star), R(17),
B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kNewTypeError), R(14), U8(2),
B(Throw),
B(CallProperty0), R(14), R(6), U8(14),
B(CallProperty0), R(12), R(6), U8(14),
B(JumpIfJSReceiver), U8(21),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(16), U8(1),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
B(Jump), U8(12),
B(Star), R(15),
B(Star), R(13),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfTrue), U8(5),
B(Ldar), R(15),
B(Ldar), R(13),
B(ReThrow),
B(Ldar), R(12),
B(Ldar), R(10),
B(SetPendingMessage),
B(LdaZero),
B(TestReferenceEqual), R(10),
B(TestReferenceEqual), R(8),
B(JumpIfFalse), U8(5),
B(Ldar), R(11),
B(Ldar), R(9),
B(ReThrow),
B(LdaUndefined),
B(Star), R(6),
......@@ -968,7 +961,7 @@ bytecodes: [
/* 54 S> */ B(Return),
]
constant pool: [
Smi [106],
Smi [103],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
......@@ -977,8 +970,8 @@ constant pool: [
SCOPE_INFO_TYPE,
]
handlers: [
[20, 233, 233],
[53, 131, 139],
[163, 196, 198],
[20, 230, 230],
[50, 128, 136],
[160, 193, 195],
]
......@@ -98,7 +98,7 @@ snippet: "
function* f() { for (let x of [42]) yield x }
f();
"
frame size: 17
frame size: 15
parameter count: 1
bytecode array length: 258
bytecodes: [
......@@ -128,83 +128,83 @@ bytecodes: [
B(LdaNamedProperty), R(5), U8(5), U8(5),
B(Star), R(4),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(context), R(11),
B(Star), R(6),
B(Mov), R(context), R(9),
B(LdaTrue),
B(Star), R(8),
B(Star), R(6),
/* 25 S> */ B(CallProperty0), R(4), R(5), U8(7),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(6), U8(9),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(6), U8(9),
B(JumpIfToBooleanTrue), U8(64),
B(LdaNamedProperty), R(12), U8(7), U8(11),
B(Star), R(12),
B(LdaNamedProperty), R(10), U8(7), U8(11),
B(Star), R(10),
B(LdaFalse),
B(Star), R(8),
B(Mov), R(12), R(1),
B(Star), R(6),
B(Mov), R(10), R(1),
/* 16 E> */ B(StackCheck),
/* 25 S> */ B(Mov), R(1), R(3),
/* 36 S> */ B(LdaFalse),
B(Star), R(14),
B(Mov), R(3), R(13),
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13), U8(2),
/* 36 E> */ B(SuspendGenerator), R(0), R(0), U8(13), U8(1),
B(ResumeGenerator), R(0), R(0), U8(13),
B(Star), R(13),
B(Star), R(12),
B(Mov), R(3), R(11),
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(11), U8(2),
/* 36 E> */ B(SuspendGenerator), R(0), R(0), U8(11), U8(1),
B(ResumeGenerator), R(0), R(0), U8(11),
B(Star), R(11),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
B(Ldar), R(13),
B(Ldar), R(11),
/* 36 E> */ B(Throw),
B(LdaSmi), I8(1),
B(Star), R(9),
B(Mov), R(13), R(10),
B(Star), R(7),
B(Mov), R(11), R(8),
B(Jump), U8(20),
B(Ldar), R(13),
B(Ldar), R(11),
B(JumpLoop), U8(81), I8(0),
B(LdaSmi), I8(-1),
B(Star), R(10),
B(Star), R(9),
B(Star), R(8),
B(Star), R(7),
B(Jump), U8(7),
B(Star), R(10),
B(Star), R(8),
B(LdaZero),
B(Star), R(9),
B(Star), R(7),
B(LdaTheHole),
B(SetPendingMessage),
B(Star), R(11),
B(Ldar), R(8),
B(Star), R(9),
B(Ldar), R(6),
B(JumpIfToBooleanTrue), U8(58),
B(LdaNamedProperty), R(5), U8(10), U8(13),
B(Star), R(13),
B(Star), R(11),
B(JumpIfUndefinedOrNull), U8(50),
B(Mov), R(context), R(14),
B(Mov), R(context), R(12),
B(TestTypeOf), U8(6),
B(JumpIfTrue), U8(18),
B(Wide), B(LdaSmi), I16(159),
B(Star), R(15),
B(Star), R(13),
B(LdaConstant), U8(11),
B(Star), R(16),
B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2),
B(Star), R(14),
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
B(Throw),
B(CallProperty0), R(13), R(5), U8(15),
B(CallProperty0), R(11), R(5), U8(15),
B(JumpIfJSReceiver), U8(21),
B(Star), R(15),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(15), U8(1),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
B(Jump), U8(12),
B(Star), R(14),
B(Star), R(12),
B(LdaZero),
B(TestReferenceEqual), R(9),
B(TestReferenceEqual), R(7),
B(JumpIfTrue), U8(5),
B(Ldar), R(14),
B(Ldar), R(12),
B(ReThrow),
B(Ldar), R(11),
B(SetPendingMessage),
B(Ldar), R(9),
B(SetPendingMessage),
B(Ldar), R(7),
B(SwitchOnSmiNoFeedback), U8(12), U8(2), I8(0),
B(Jump), U8(8),
B(Ldar), R(10),
B(Ldar), R(8),
B(ReThrow),
B(Ldar), R(10),
B(Ldar), R(8),
/* 44 S> */ B(Return),
B(LdaUndefined),
/* 44 S> */ B(Return),
......@@ -236,7 +236,7 @@ snippet: "
function* f() { yield* g() }
f();
"
frame size: 9
frame size: 8
parameter count: 1
bytecode array length: 210
bytecodes: [
......@@ -277,24 +277,24 @@ bytecodes: [
B(Jump), U8(63),
B(LdaNamedProperty), R(3), U8(8), U8(12),
B(JumpIfUndefinedOrNull), U8(11),
B(Star), R(8),
B(CallProperty1), R(8), R(3), R(4), U8(14),
B(Star), R(6),
B(CallProperty1), R(6), R(3), R(4), U8(14),
B(Jump), U8(48),
B(Ldar), R(4),
/* 54 S> */ B(Return),
B(LdaNamedProperty), R(3), U8(9), U8(16),
B(JumpIfUndefinedOrNull), U8(11),
B(Star), R(8),
B(CallProperty1), R(8), R(3), R(4), U8(18),
B(Star), R(6),
B(CallProperty1), R(6), R(3), R(4), U8(18),
B(Jump), U8(30),
B(LdaNamedProperty), R(3), U8(8), U8(20),
B(JumpIfUndefinedOrNull), U8(19),
B(Star), R(8),
B(CallProperty0), R(8), R(3), U8(22),
B(Star), R(6),
B(CallProperty0), R(6), R(3), U8(22),
B(Jump), U8(2),
B(JumpIfJSReceiver), U8(9),
B(Star), R(8),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(8), U8(1),
B(Star), R(6),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
B(CallRuntime), U16(Runtime::kThrowThrowMethodMissing), R(0), U8(0),
B(Star), R(1),
B(JumpIfJSReceiver), U8(7),
......@@ -302,8 +302,8 @@ bytecodes: [
B(LdaNamedProperty), R(1), U8(10), U8(24),
B(JumpIfToBooleanTrue), U8(24),
B(Ldar), R(1),
/* 43 E> */ B(SuspendGenerator), R(0), R(0), U8(8), U8(1),
B(ResumeGenerator), R(0), R(0), U8(8),
/* 43 E> */ B(SuspendGenerator), R(0), R(0), U8(6), U8(1),
B(ResumeGenerator), R(0), R(0), U8(6),
B(Star), R(4),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
B(Star), R(2),
......
......@@ -92,7 +92,7 @@ snippet: "
class A { constructor(...args) { this.args = args; } }
new A(0, ...[1, 2, 3], 4);
"
frame size: 10
frame size: 9
parameter count: 1
bytecode array length: 130
bytecodes: [
......@@ -127,12 +127,12 @@ bytecodes: [
B(LdaNamedProperty), R(6), U8(6), U8(6),
B(Star), R(5),
B(CallProperty0), R(5), R(6), U8(15),
B(Star), R(9),
B(Star), R(7),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
B(LdaNamedProperty), R(9), U8(7), U8(17),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
B(LdaNamedProperty), R(7), U8(7), U8(17),
B(JumpIfToBooleanTrue), U8(19),
B(LdaNamedProperty), R(9), U8(8), U8(8),
B(LdaNamedProperty), R(7), U8(8), U8(8),
B(StaInArrayLiteral), R(4), R(3), U8(13),
B(Ldar), R(3),
B(Inc), U8(12),
......
......@@ -91,9 +91,9 @@ snippet: "
test = new B(1, 2, 3).constructor;
})();
"
frame size: 13
frame size: 12
parameter count: 1
bytecode array length: 127
bytecode array length: 124
bytecodes: [
B(CreateRestParameter),
B(Star), R(3),
......@@ -114,7 +114,6 @@ bytecodes: [
B(GetIterator), R(3), U8(4),
B(Star), R(11),
B(CallProperty0), R(11), R(3), U8(6),
B(Mov), R(3), R(10),
B(Mov), R(1), R(4),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
......@@ -122,12 +121,12 @@ bytecodes: [
B(LdaNamedProperty), R(9), U8(0), U8(8),
B(Star), R(8),
B(CallProperty0), R(8), R(9), U8(14),
B(Star), R(12),
B(Star), R(10),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
B(LdaNamedProperty), R(12), U8(1), U8(16),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
B(LdaNamedProperty), R(10), U8(1), U8(16),
B(JumpIfToBooleanTrue), U8(19),
B(LdaNamedProperty), R(12), U8(2), U8(10),
B(LdaNamedProperty), R(10), U8(2), U8(10),
B(StaInArrayLiteral), R(7), R(6), U8(1),
B(Ldar), R(6),
B(Inc), U8(3),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment