v8/test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden

476 lines
14 KiB
Plaintext
Raw Normal View History

#
# Autogenerated by generate-bytecode-expectations.
#
---
wrap: no
test function name: f
---
snippet: "
var a = 1;
function f() { return a; }
f()
"
frame size: 0
parameter count: 1
bytecode array length: 5
bytecodes: [
/* 21 E> */ B(StackCheck),
/* 26 S> */ B(LdaGlobal), U8(0), U8(4),
[inspector] improve return position of explicit return in non-async function Goal of this CL: explicit return from non-async function has position after return expression as return position (will unblock [1]). BytecodeArrayBuilder has SetStatementPosition and SetExpressionPosition methods. If one of these methods is called then next generated bytecode will get passed position. It's general treatment for most cases. Unfortunately it doesn't work for Returns: - debugger requires source positions exactly on kReturn bytecode in stepping implementation, - BytecodeGenerator::BuildReturn and BytecodeGenerator::BuildAsyncReturn generates more then one bytecode and general solution will put return position on first generated bytecode, - it's not easy to split BuildReturn function into two parts to allow something like following in BytecodeGenerator::VisitReturnStatement since generated bytecodes are actually controlled by execution_control(). ..->BuildReturnPrologue(); ..->SetReturnPosition(stmt); ..->Return(); In this CL we pass ReturnStatement through ExecutionControl and use it for position when we emit return bytecode right here. So this CL only will improve return position for returns inside of non-async functions, I'll address async functions later. [1] https://chromium-review.googlesource.com/c/543161/ Change-Id: Iede512c120b00c209990bf50c20e7d23dc0d65db Reviewed-on: https://chromium-review.googlesource.com/560738 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#46687}
2017-07-14 17:50:09 +00:00
/* 35 S> */ B(Return),
]
constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]
---
snippet: "
function t() { }
function f() { return t; }
f()
"
frame size: 0
parameter count: 1
bytecode array length: 5
bytecodes: [
/* 27 E> */ B(StackCheck),
/* 32 S> */ B(LdaGlobal), U8(0), U8(4),
[inspector] improve return position of explicit return in non-async function Goal of this CL: explicit return from non-async function has position after return expression as return position (will unblock [1]). BytecodeArrayBuilder has SetStatementPosition and SetExpressionPosition methods. If one of these methods is called then next generated bytecode will get passed position. It's general treatment for most cases. Unfortunately it doesn't work for Returns: - debugger requires source positions exactly on kReturn bytecode in stepping implementation, - BytecodeGenerator::BuildReturn and BytecodeGenerator::BuildAsyncReturn generates more then one bytecode and general solution will put return position on first generated bytecode, - it's not easy to split BuildReturn function into two parts to allow something like following in BytecodeGenerator::VisitReturnStatement since generated bytecodes are actually controlled by execution_control(). ..->BuildReturnPrologue(); ..->SetReturnPosition(stmt); ..->Return(); In this CL we pass ReturnStatement through ExecutionControl and use it for position when we emit return bytecode right here. So this CL only will improve return position for returns inside of non-async functions, I'll address async functions later. [1] https://chromium-review.googlesource.com/c/543161/ Change-Id: Iede512c120b00c209990bf50c20e7d23dc0d65db Reviewed-on: https://chromium-review.googlesource.com/560738 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#46687}
2017-07-14 17:50:09 +00:00
/* 41 S> */ B(Return),
]
constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["t"],
]
handlers: [
]
---
snippet: "
a = 1;
function f() { return a; }
f()
"
frame size: 0
parameter count: 1
bytecode array length: 5
bytecodes: [
/* 17 E> */ B(StackCheck),
/* 22 S> */ B(LdaGlobal), U8(0), U8(4),
[inspector] improve return position of explicit return in non-async function Goal of this CL: explicit return from non-async function has position after return expression as return position (will unblock [1]). BytecodeArrayBuilder has SetStatementPosition and SetExpressionPosition methods. If one of these methods is called then next generated bytecode will get passed position. It's general treatment for most cases. Unfortunately it doesn't work for Returns: - debugger requires source positions exactly on kReturn bytecode in stepping implementation, - BytecodeGenerator::BuildReturn and BytecodeGenerator::BuildAsyncReturn generates more then one bytecode and general solution will put return position on first generated bytecode, - it's not easy to split BuildReturn function into two parts to allow something like following in BytecodeGenerator::VisitReturnStatement since generated bytecodes are actually controlled by execution_control(). ..->BuildReturnPrologue(); ..->SetReturnPosition(stmt); ..->Return(); In this CL we pass ReturnStatement through ExecutionControl and use it for position when we emit return bytecode right here. So this CL only will improve return position for returns inside of non-async functions, I'll address async functions later. [1] https://chromium-review.googlesource.com/c/543161/ Change-Id: Iede512c120b00c209990bf50c20e7d23dc0d65db Reviewed-on: https://chromium-review.googlesource.com/560738 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#46687}
2017-07-14 17:50:09 +00:00
/* 31 S> */ B(Return),
]
constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]
---
snippet: "
a = 1;
function f(b) {
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
b.name;
return a;
}
f({name: 1});
"
frame size: 0
parameter count: 2
bytecode array length: 656
bytecodes: [
/* 17 E> */ B(StackCheck),
/* 25 S> */ B(Nop),
/* 27 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4),
/* 35 S> */ B(Nop),
/* 37 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6),
/* 45 S> */ B(Nop),
/* 47 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8),
/* 55 S> */ B(Nop),
/* 57 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(10),
/* 65 S> */ B(Nop),
/* 67 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(12),
/* 75 S> */ B(Nop),
/* 77 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(14),
/* 85 S> */ B(Nop),
/* 87 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(16),
/* 95 S> */ B(Nop),
/* 97 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(18),
/* 105 S> */ B(Nop),
/* 107 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(20),
/* 115 S> */ B(Nop),
/* 117 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(22),
/* 125 S> */ B(Nop),
/* 127 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(24),
/* 135 S> */ B(Nop),
/* 137 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(26),
/* 145 S> */ B(Nop),
/* 147 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(28),
/* 155 S> */ B(Nop),
/* 157 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(30),
/* 165 S> */ B(Nop),
/* 167 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(32),
/* 175 S> */ B(Nop),
/* 177 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(34),
/* 185 S> */ B(Nop),
/* 187 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(36),
/* 195 S> */ B(Nop),
/* 197 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(38),
/* 205 S> */ B(Nop),
/* 207 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(40),
/* 215 S> */ B(Nop),
/* 217 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(42),
/* 225 S> */ B(Nop),
/* 227 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(44),
/* 235 S> */ B(Nop),
/* 237 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(46),
/* 245 S> */ B(Nop),
/* 247 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(48),
/* 255 S> */ B(Nop),
/* 257 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(50),
/* 265 S> */ B(Nop),
/* 267 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(52),
/* 275 S> */ B(Nop),
/* 277 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(54),
/* 285 S> */ B(Nop),
/* 287 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(56),
/* 295 S> */ B(Nop),
/* 297 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(58),
/* 305 S> */ B(Nop),
/* 307 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(60),
/* 315 S> */ B(Nop),
/* 317 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(62),
/* 325 S> */ B(Nop),
/* 327 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(64),
/* 335 S> */ B(Nop),
/* 337 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(66),
/* 345 S> */ B(Nop),
/* 347 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(68),
/* 355 S> */ B(Nop),
/* 357 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(70),
/* 365 S> */ B(Nop),
/* 367 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(72),
/* 375 S> */ B(Nop),
/* 377 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(74),
/* 385 S> */ B(Nop),
/* 387 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(76),
/* 395 S> */ B(Nop),
/* 397 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(78),
/* 405 S> */ B(Nop),
/* 407 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(80),
/* 415 S> */ B(Nop),
/* 417 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(82),
/* 425 S> */ B(Nop),
/* 427 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(84),
/* 435 S> */ B(Nop),
/* 437 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(86),
/* 445 S> */ B(Nop),
/* 447 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(88),
/* 455 S> */ B(Nop),
/* 457 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(90),
/* 465 S> */ B(Nop),
/* 467 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(92),
/* 475 S> */ B(Nop),
/* 477 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(94),
/* 485 S> */ B(Nop),
/* 487 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(96),
/* 495 S> */ B(Nop),
/* 497 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(98),
/* 505 S> */ B(Nop),
/* 507 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(100),
/* 515 S> */ B(Nop),
/* 517 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(102),
/* 525 S> */ B(Nop),
/* 527 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(104),
/* 535 S> */ B(Nop),
/* 537 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(106),
/* 545 S> */ B(Nop),
/* 547 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(108),
/* 555 S> */ B(Nop),
/* 557 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(110),
/* 565 S> */ B(Nop),
/* 567 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(112),
/* 575 S> */ B(Nop),
/* 577 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(114),
/* 585 S> */ B(Nop),
/* 587 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(116),
/* 595 S> */ B(Nop),
/* 597 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(118),
/* 605 S> */ B(Nop),
/* 607 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(120),
/* 615 S> */ B(Nop),
/* 617 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(122),
/* 625 S> */ B(Nop),
/* 627 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(124),
/* 635 S> */ B(Nop),
/* 637 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(126),
/* 645 S> */ B(Nop),
/* 647 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(128),
/* 655 S> */ B(Nop),
/* 657 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(130),
/* 665 S> */ B(Nop),
/* 667 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(132),
/* 675 S> */ B(Nop),
/* 677 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(134),
/* 685 S> */ B(Nop),
/* 687 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(136),
/* 695 S> */ B(Nop),
/* 697 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(138),
/* 705 S> */ B(Nop),
/* 707 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(140),
/* 715 S> */ B(Nop),
/* 717 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(142),
/* 725 S> */ B(Nop),
/* 727 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(144),
/* 735 S> */ B(Nop),
/* 737 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(146),
/* 745 S> */ B(Nop),
/* 747 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(148),
/* 755 S> */ B(Nop),
/* 757 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(150),
/* 765 S> */ B(Nop),
/* 767 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(152),
/* 775 S> */ B(Nop),
/* 777 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(154),
/* 785 S> */ B(Nop),
/* 787 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(156),
/* 795 S> */ B(Nop),
/* 797 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(158),
/* 805 S> */ B(Nop),
/* 807 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(160),
/* 815 S> */ B(Nop),
/* 817 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(162),
/* 825 S> */ B(Nop),
/* 827 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(164),
/* 835 S> */ B(Nop),
/* 837 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(166),
/* 845 S> */ B(Nop),
/* 847 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(168),
/* 855 S> */ B(Nop),
/* 857 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(170),
/* 865 S> */ B(Nop),
/* 867 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(172),
/* 875 S> */ B(Nop),
/* 877 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(174),
/* 885 S> */ B(Nop),
/* 887 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(176),
/* 895 S> */ B(Nop),
/* 897 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(178),
/* 905 S> */ B(Nop),
/* 907 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(180),
/* 915 S> */ B(Nop),
/* 917 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(182),
/* 925 S> */ B(Nop),
/* 927 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(184),
/* 935 S> */ B(Nop),
/* 937 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(186),
/* 945 S> */ B(Nop),
/* 947 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(188),
/* 955 S> */ B(Nop),
/* 957 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(190),
/* 965 S> */ B(Nop),
/* 967 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(192),
/* 975 S> */ B(Nop),
/* 977 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(194),
/* 985 S> */ B(Nop),
/* 987 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(196),
/* 995 S> */ B(Nop),
/* 997 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(198),
/* 1005 S> */ B(Nop),
/* 1007 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(200),
/* 1015 S> */ B(Nop),
/* 1017 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(202),
/* 1025 S> */ B(Nop),
/* 1027 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(204),
/* 1035 S> */ B(Nop),
/* 1037 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(206),
/* 1045 S> */ B(Nop),
/* 1047 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(208),
/* 1055 S> */ B(Nop),
/* 1057 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(210),
/* 1065 S> */ B(Nop),
/* 1067 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(212),
/* 1075 S> */ B(Nop),
/* 1077 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(214),
/* 1085 S> */ B(Nop),
/* 1087 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(216),
/* 1095 S> */ B(Nop),
/* 1097 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(218),
/* 1105 S> */ B(Nop),
/* 1107 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(220),
/* 1115 S> */ B(Nop),
/* 1117 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(222),
/* 1125 S> */ B(Nop),
/* 1127 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(224),
/* 1135 S> */ B(Nop),
/* 1137 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(226),
/* 1145 S> */ B(Nop),
/* 1147 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(228),
/* 1155 S> */ B(Nop),
/* 1157 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(230),
/* 1165 S> */ B(Nop),
/* 1167 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(232),
/* 1175 S> */ B(Nop),
/* 1177 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(234),
/* 1185 S> */ B(Nop),
/* 1187 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(236),
/* 1195 S> */ B(Nop),
/* 1197 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(238),
/* 1205 S> */ B(Nop),
/* 1207 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(240),
/* 1215 S> */ B(Nop),
/* 1217 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(242),
/* 1225 S> */ B(Nop),
/* 1227 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(244),
/* 1235 S> */ B(Nop),
/* 1237 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(246),
/* 1245 S> */ B(Nop),
/* 1247 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248),
/* 1255 S> */ B(Nop),
/* 1257 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250),
/* 1265 S> */ B(Nop),
/* 1267 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252),
/* 1275 S> */ B(Nop),
/* 1277 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254),
/* 1285 S> */ B(Nop),
/* 1287 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256),
/* 1295 S> */ B(Nop),
/* 1297 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(258),
/* 1305 S> */ B(Wide), B(LdaGlobal), U16(1), U16(260),
[inspector] improve return position of explicit return in non-async function Goal of this CL: explicit return from non-async function has position after return expression as return position (will unblock [1]). BytecodeArrayBuilder has SetStatementPosition and SetExpressionPosition methods. If one of these methods is called then next generated bytecode will get passed position. It's general treatment for most cases. Unfortunately it doesn't work for Returns: - debugger requires source positions exactly on kReturn bytecode in stepping implementation, - BytecodeGenerator::BuildReturn and BytecodeGenerator::BuildAsyncReturn generates more then one bytecode and general solution will put return position on first generated bytecode, - it's not easy to split BuildReturn function into two parts to allow something like following in BytecodeGenerator::VisitReturnStatement since generated bytecodes are actually controlled by execution_control(). ..->BuildReturnPrologue(); ..->SetReturnPosition(stmt); ..->Return(); In this CL we pass ReturnStatement through ExecutionControl and use it for position when we emit return bytecode right here. So this CL only will improve return position for returns inside of non-async functions, I'll address async functions later. [1] https://chromium-review.googlesource.com/c/543161/ Change-Id: Iede512c120b00c209990bf50c20e7d23dc0d65db Reviewed-on: https://chromium-review.googlesource.com/560738 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#46687}
2017-07-14 17:50:09 +00:00
/* 1314 S> */ B(Return),
]
constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]