# # Autogenerated by generate-bytecode-expectations. # --- wrap: no test function name: f --- snippet: " function bar() { this.value = 0; } function f() { return new bar(); } f(); " frame size: 1 parameter count: 1 bytecode array length: 10 bytecodes: [ /* 50 S> */ B(LdaGlobal), U8(0), U8(0), B(Star0), /* 57 E> */ B(Construct), R(0), R(0), U8(0), U8(2), /* 67 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], ] handlers: [ ] --- snippet: " function bar(x) { this.value = 18; this.x = x;} function f() { return new bar(3); } f(); " frame size: 2 parameter count: 1 bytecode array length: 15 bytecodes: [ /* 63 S> */ B(LdaGlobal), U8(0), U8(0), B(Star0), B(LdaSmi), I8(3), B(Star1), B(Ldar), R(0), /* 70 E> */ B(Construct), R(0), R(1), U8(1), U8(2), /* 81 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], ] handlers: [ ] --- snippet: " function bar(w, x, y, z) { this.value = 18; this.x = x; this.y = y; this.z = z; } function f() { return new bar(3, 4, 5); } f(); " frame size: 4 parameter count: 1 bytecode array length: 21 bytecodes: [ /* 105 S> */ B(LdaGlobal), U8(0), U8(0), B(Star0), B(LdaSmi), I8(3), B(Star1), B(LdaSmi), I8(4), B(Star2), B(LdaSmi), I8(5), B(Star3), B(Ldar), R(0), /* 112 E> */ B(Construct), R(0), R(1), U8(3), U8(2), /* 129 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], ] handlers: [ ] --- snippet: " function f() { new class {}; } f(); " frame size: 5 parameter count: 1 bytecode array length: 33 bytecodes: [ /* 15 S> */ B(CreateBlockContext), U8(0), B(PushContext), R(0), B(LdaTheHole), B(Star4), B(CreateClosure), U8(2), U8(0), U8(2), B(Star1), B(LdaConstant), U8(1), B(Star2), B(Mov), R(1), R(3), B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(3), B(PopContext), R(0), B(Ldar), R(3), /* 15 E> */ B(Construct), R(3), R(0), U8(0), U8(0), B(LdaUndefined), /* 29 S> */ B(Return), ] constant pool: [ SCOPE_INFO_TYPE, FIXED_ARRAY_TYPE, SHARED_FUNCTION_INFO_TYPE, ] handlers: [ ]