| Index: test/cctest/interpreter/FunctionLiterals.golden
|
| diff --git a/test/cctest/interpreter/FunctionLiterals.golden b/test/cctest/interpreter/FunctionLiterals.golden
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..29a5854e44d4dd5a5d3555a54c020d5108228ad9
|
| --- /dev/null
|
| +++ b/test/cctest/interpreter/FunctionLiterals.golden
|
| @@ -0,0 +1,70 @@
|
| +#
|
| +# Autogenerated by generate-bytecode-expectations
|
| +#
|
| +
|
| +---
|
| +pool type: mixed
|
| +execute: yes
|
| +wrap: yes
|
| +
|
| +---
|
| +snippet: "
|
| + return function(){ }
|
| +"
|
| +frame size: 0
|
| +parameter count: 1
|
| +bytecodes: [
|
| + B(StackCheck),
|
| + B(CreateClosure), U8(0), U8(0),
|
| + B(Return),
|
| +]
|
| +constant pool: [
|
| + InstanceType::SHARED_FUNCTION_INFO_TYPE,
|
| +]
|
| +handlers: [
|
| +]
|
| +
|
| +---
|
| +snippet: "
|
| + return (function(){ })()
|
| +"
|
| +frame size: 2 # in multiples of sizeof(void*)
|
| +parameter count: 1
|
| +bytecodes: [
|
| + B(StackCheck),
|
| + B(LdaUndefined),
|
| + B(Star), R(1),
|
| + B(CreateClosure), U8(0), U8(0),
|
| + B(Star), R(0),
|
| + B(Call), R(0), R(1), U8(1), U8(1),
|
| + B(Return),
|
| +]
|
| +constant pool: [
|
| + InstanceType::SHARED_FUNCTION_INFO_TYPE,
|
| +]
|
| +handlers: [
|
| +]
|
| +
|
| +---
|
| +snippet: "
|
| + return (function(x){ return x; })(1)
|
| +"
|
| +frame size: 3 # in multiples of sizeof(void*)
|
| +parameter count: 1
|
| +bytecodes: [
|
| + B(StackCheck),
|
| + B(LdaUndefined),
|
| + B(Star), R(1),
|
| + B(CreateClosure), U8(0), U8(0),
|
| + B(Star), R(0),
|
| + B(LdaSmi8), U8(1),
|
| + B(Star), R(2),
|
| + B(Call), R(0), R(1), U8(2), U8(1),
|
| + B(Return),
|
| +]
|
| +constant pool: [
|
| + InstanceType::SHARED_FUNCTION_INFO_TYPE,
|
| +]
|
| +handlers: [
|
| +]
|
| +
|
|
|