v8/test/cctest/interpreter/bytecode_expectations/RegExpLiterals.golden
oth 25b3fe7961 [interpreter] Introduce fused bytecodes for common sequences.
This change introduces five fused bytecodes for common bytecode
sequences on popular websites. These are LdrNamedProperty,
LdrKeyedProperty, LdrGlobal, LdrContextSlot, and LdrUndefined. These
load values into a destination register operand instead of the
accumulator. They are emitted by the peephole optimizer.

BUG=v8:4280
LOG=N

Review-Url: https://codereview.chromium.org/1985753002
Cr-Commit-Position: refs/heads/master@{#36507}
2016-05-25 09:56:49 +00:00

71 lines
1.2 KiB
Plaintext

#
# Autogenerated by generate-bytecode-expectations.
#
---
pool type: string
execute: yes
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(0), U8(0),
/* 49 S> */ B(Return),
]
constant pool: [
"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(0), U8(2),
/* 58 S> */ B(Return),
]
constant pool: [
"(\x5cw+)\x5cs(\x5cw+)",
]
handlers: [
]
---
snippet: "
return /ab+d/.exec('abdd');
"
frame size: 3
parameter count: 1
bytecode array length: 22
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 34 S> */ B(CreateRegExpLiteral), U8(0), U8(0), U8(0),
B(Star), R(1),
/* 47 E> */ B(LdrNamedProperty), R(1), U8(1), U8(3), R(0),
B(LdaConstant), U8(2),
B(Star), R(2),
/* 48 E> */ B(Call), R(0), R(1), U8(2), U8(1),
/* 62 S> */ B(Return),
]
constant pool: [
"ab+d",
"exec",
"abdd",
]
handlers: [
]