317cf32131
This eliminates the AstValue class, effectively moving its implementation into the Literal AstNode. This should cause no difference in behavior, but it does signal some shifts in the underlying system. Biggest changes include: - Reduction in AST memory usage - No duplicate HeapNumbers in Ignition constant pools - Non-String values are allocated either at constant pool creation time (or at boilerplate creation time for literals), rather than at AstValueFactory::Internalize() time. There are a variety of test-only/debug-only changes due to these switches as well. Bug: v8:6984 Change-Id: I5f178040ce2796d4e7370c24d1063419e1c843a1 Reviewed-on: https://chromium-review.googlesource.com/731111 Commit-Queue: Adam Klein <adamk@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/master@{#49013}
67 lines
1.0 KiB
Plaintext
67 lines
1.0 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: yes
|
|
|
|
---
|
|
snippet: "
|
|
return 1.2;
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 4
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 34 S> */ B(LdaConstant), U8(0),
|
|
/* 45 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
HEAP_NUMBER_TYPE [1.2],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var a = 1.2; return 2.6;
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 8
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
|
B(Star), R(0),
|
|
/* 47 S> */ B(LdaConstant), U8(1),
|
|
/* 58 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
HEAP_NUMBER_TYPE [1.2],
|
|
HEAP_NUMBER_TYPE [2.6],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var a = 3.14; return 3.14;
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 8
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
|
B(Star), R(0),
|
|
/* 48 S> */ B(LdaConstant), U8(0),
|
|
/* 60 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
HEAP_NUMBER_TYPE [3.14],
|
|
]
|
|
handlers: [
|
|
]
|
|
|