Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LookupSlotInEval.golden

Issue 2347143002: [interpreter] Add fast path for dynamic global lookups (Closed)
Patch Set: Fix comments and some inlining of methods Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 execute: yes 6 execute: yes
7 wrap: no 7 wrap: no
8 test function name: f 8 test function name: f
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 var f; 12 var f;
13 var x = 1; 13 var x = 1;
14 function f1() { 14 function f1() {
15 eval(\"function t() { return x; }; f = t; f();\"); 15 eval(\"function t() { return x; }; f = t; f();\");
16 } 16 }
17 f1(); 17 f1();
18 " 18 "
19 frame size: 0 19 frame size: 0
20 parameter count: 1 20 parameter count: 1
21 bytecode array length: 4 21 bytecode array length: 6
22 bytecodes: [ 22 bytecodes: [
23 /* 10 E> */ B(StackCheck), 23 /* 10 E> */ B(StackCheck),
24 /* 15 S> */ B(LdaLookupSlot), U8(0), 24 /* 15 S> */ B(LdaLookupGlobalSlot), U8(0), U8(2), U8(1),
25 /* 25 S> */ B(Return), 25 /* 25 S> */ B(Return),
26 ] 26 ]
27 constant pool: [ 27 constant pool: [
28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
29 ] 29 ]
30 handlers: [ 30 handlers: [
31 ] 31 ]
32 32
33 --- 33 ---
34 snippet: " 34 snippet: "
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 snippet: " 84 snippet: "
85 var f; 85 var f;
86 var x = 1; 86 var x = 1;
87 function f1() { 87 function f1() {
88 eval(\"function t() { return typeof x; }; f = t; f();\"); 88 eval(\"function t() { return typeof x; }; f = t; f();\");
89 } 89 }
90 f1(); 90 f1();
91 " 91 "
92 frame size: 0 92 frame size: 0
93 parameter count: 1 93 parameter count: 1
94 bytecode array length: 5 94 bytecode array length: 7
95 bytecodes: [ 95 bytecodes: [
96 /* 10 E> */ B(StackCheck), 96 /* 10 E> */ B(StackCheck),
97 /* 15 S> */ B(LdaLookupSlotInsideTypeof), U8(0), 97 /* 15 S> */ B(LdaLookupGlobalSlotInsideTypeof), U8(0), U8(2), U8(1),
98 B(TypeOf), 98 B(TypeOf),
99 /* 32 S> */ B(Return), 99 /* 32 S> */ B(Return),
100 ] 100 ]
101 constant pool: [ 101 constant pool: [
102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
103 ] 103 ]
104 handlers: [ 104 handlers: [
105 ] 105 ]
106 106
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698