v8/test/cctest/interpreter/bytecode_expectations/RegExpLiterals.golden
bgeron b5f4de9186 [turbolizer] Output correct JSON when source contains a backslash.
Previously, we would output \x5c to escape a backslash, but this is
invalid JSON and it would crash Turbolizer. Use \u005c instead.

BUG=

Review-Url: https://codereview.chromium.org/2224913002
Cr-Commit-Position: refs/heads/master@{#38479}
2016-08-09 09:18:38 +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: [
"(\u005cw+)\u005cs(\u005cw+)",
]
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: [
]