a192639e2f
JS runtime calls are always created with undefined recievers, so make the bytecode behave similarly to CallUndefinedReciever such that we don't need to push an explicit undefined register for the receiver for such calls. Modifies the Async[Generator/Function]Await[Caught/Uncaught] runtime calls to pass the generator in the first argument rather than the reciever since these runtime calls were desugered in the bytecode generator and explicitly passed the generator in the receiver. Change-Id: I36c8087bb3b663dccd805bfdb1eea04eb6a73269 Reviewed-on: https://chromium-review.googlesource.com/654257 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Ross McIlroy <rmcilroy@chromium.org> Cr-Commit-Position: refs/heads/master@{#47870}
89 lines
1.5 KiB
Plaintext
89 lines
1.5 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
test function name: f
|
|
|
|
---
|
|
snippet: "
|
|
function f() { %TheHole() }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 8
|
|
bytecodes: [
|
|
/* 10 E> */ B(StackCheck),
|
|
/* 15 S> */ B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0),
|
|
B(LdaUndefined),
|
|
/* 26 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f(a) { return %IsArray(a) }
|
|
f(undefined);
|
|
"
|
|
frame size: 0
|
|
parameter count: 2
|
|
bytecode array length: 7
|
|
bytecodes: [
|
|
/* 10 E> */ B(StackCheck),
|
|
/* 16 S> */ B(CallRuntime), U16(Runtime::kIsArray), R(arg0), U8(1),
|
|
/* 34 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f() { return %Add(1, 2) }
|
|
f();
|
|
"
|
|
frame size: 2
|
|
parameter count: 1
|
|
bytecode array length: 15
|
|
bytecodes: [
|
|
/* 10 E> */ B(StackCheck),
|
|
/* 15 S> */ B(LdaSmi), I8(1),
|
|
B(Star), R(0),
|
|
B(LdaSmi), I8(2),
|
|
B(Star), R(1),
|
|
B(CallRuntime), U16(Runtime::kAdd), R(0), U8(2),
|
|
/* 32 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f() { return %spread_iterable([1]) }
|
|
f();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 12
|
|
bytecodes: [
|
|
/* 10 E> */ B(StackCheck),
|
|
/* 15 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
|
|
B(Star), R(0),
|
|
B(CallJSRuntime), U8(%spread_iterable), R(0), U8(1),
|
|
/* 43 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
TUPLE2_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|