e466744da5
Specifically, add bytecodes for Call0, Call1, Call2, CallProperty0, CallProperty1,
and CallProperty2. Also share the bytecode handler code between between
equivalent CallX and CallPropertyX handlers.
Review-Url: https://codereview.chromium.org/2684993002
Cr-Original-Commit-Position: refs/heads/master@{#43290}
Committed: 00d6f1f80a
Review-Url: https://codereview.chromium.org/2684993002
Cr-Commit-Position: refs/heads/master@{#43700}
70 lines
1.3 KiB
Plaintext
70 lines
1.3 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: yes
|
|
|
|
---
|
|
snippet: "
|
|
return /ab+d/;
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 6
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 34 S> */ B(CreateRegExpLiteral), U8(0), U8(2), U8(0),
|
|
/* 49 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["ab+d"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
return /(\\w+)\\s(\\w+)/i;
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 6
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 34 S> */ B(CreateRegExpLiteral), U8(0), U8(2), U8(2),
|
|
/* 58 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["(\u005cw+)\u005cs(\u005cw+)"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
return /ab+d/.exec('abdd');
|
|
"
|
|
frame size: 3
|
|
parameter count: 1
|
|
bytecode array length: 23
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 34 S> */ B(CreateRegExpLiteral), U8(0), U8(4), U8(0),
|
|
B(Star), R(1),
|
|
/* 47 E> */ B(LdaNamedProperty), R(1), U8(1), U8(5),
|
|
B(Star), R(0),
|
|
B(LdaConstant), U8(2),
|
|
B(Star), R(2),
|
|
/* 48 E> */ B(CallProperty1), R(0), R(1), R(2), U8(2),
|
|
/* 62 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["ab+d"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["exec"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["abdd"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|