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

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

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Grammar. Created 4 years, 6 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 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: no 8 wrap: no
9 test function name: f 9 test function name: f
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 var a = {x:13, y:14}; 13 var a = {x:13, y:14};
14 function f() { 14 function f() {
15 return delete a.x; 15 return delete a.x;
16 }; 16 };
17 f(); 17 f();
18 " 18 "
19 frame size: 1 19 frame size: 1
20 parameter count: 1 20 parameter count: 1
21 bytecode array length: 10 21 bytecode array length: 11
22 bytecodes: [ 22 bytecodes: [
23 /* 32 E> */ B(StackCheck), 23 /* 32 E> */ B(StackCheck),
24 /* 39 S> */ B(LdrGlobal), U8(0), U8(1), R(0), 24 /* 39 S> */ B(LdaGlobal), U8(0), U8(1),
25 B(Star), R(0),
25 B(LdaConstant), U8(1), 26 B(LdaConstant), U8(1),
26 B(DeletePropertySloppy), R(0), 27 B(DeletePropertySloppy), R(0),
27 /* 58 S> */ B(Return), 28 /* 58 S> */ B(Return),
28 ] 29 ]
29 constant pool: [ 30 constant pool: [
30 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 31 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
31 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 32 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
32 ] 33 ]
33 handlers: [ 34 handlers: [
34 ] 35 ]
35 36
36 --- 37 ---
37 snippet: " 38 snippet: "
38 a = {1:13, 2:14}; 39 a = {1:13, 2:14};
39 function f() { 40 function f() {
40 'use strict'; 41 'use strict';
41 return delete a[1]; 42 return delete a[1];
42 }; 43 };
43 f(); 44 f();
44 " 45 "
45 frame size: 1 46 frame size: 1
46 parameter count: 1 47 parameter count: 1
47 bytecode array length: 10 48 bytecode array length: 11
48 bytecodes: [ 49 bytecodes: [
49 /* 28 E> */ B(StackCheck), 50 /* 28 E> */ B(StackCheck),
50 /* 51 S> */ B(LdrGlobal), U8(0), U8(1), R(0), 51 /* 51 S> */ B(LdaGlobal), U8(0), U8(1),
52 B(Star), R(0),
51 B(LdaSmi), U8(1), 53 B(LdaSmi), U8(1),
52 B(DeletePropertyStrict), R(0), 54 B(DeletePropertyStrict), R(0),
53 /* 71 S> */ B(Return), 55 /* 71 S> */ B(Return),
54 ] 56 ]
55 constant pool: [ 57 constant pool: [
56 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 58 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
57 ] 59 ]
58 handlers: [ 60 handlers: [
59 ] 61 ]
60 62
61 --- 63 ---
62 snippet: " 64 snippet: "
63 var a = {x:13, y:14}; 65 var a = {x:13, y:14};
64 function f() { 66 function f() {
65 return delete a; 67 return delete a;
66 }; 68 };
67 f(); 69 f();
68 " 70 "
69 frame size: 2 71 frame size: 2
70 parameter count: 1 72 parameter count: 1
71 bytecode array length: 14 73 bytecode array length: 16
72 bytecodes: [ 74 bytecodes: [
73 /* 32 E> */ B(StackCheck), 75 /* 32 E> */ B(StackCheck),
74 /* 39 S> */ B(LdrContextSlot), R(context), U8(3), R(0), 76 /* 39 S> */ B(LdaContextSlot), R(context), U8(3),
75 B(LdrContextSlot), R(0), U8(2), R(1), 77 B(Star), R(0),
78 B(LdaContextSlot), R(0), U8(2),
79 B(Star), R(1),
76 B(LdaConstant), U8(0), 80 B(LdaConstant), U8(0),
77 B(DeletePropertySloppy), R(1), 81 B(DeletePropertySloppy), R(1),
78 /* 56 S> */ B(Return), 82 /* 56 S> */ B(Return),
79 ] 83 ]
80 constant pool: [ 84 constant pool: [
81 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 85 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
82 ] 86 ]
83 handlers: [ 87 handlers: [
84 ] 88 ]
85 89
86 --- 90 ---
87 snippet: " 91 snippet: "
88 b = 30; 92 b = 30;
89 function f() { 93 function f() {
90 return delete b; 94 return delete b;
91 }; 95 };
92 f(); 96 f();
93 " 97 "
94 frame size: 2 98 frame size: 2
95 parameter count: 1 99 parameter count: 1
96 bytecode array length: 14 100 bytecode array length: 16
97 bytecodes: [ 101 bytecodes: [
98 /* 18 E> */ B(StackCheck), 102 /* 18 E> */ B(StackCheck),
99 /* 25 S> */ B(LdrContextSlot), R(context), U8(3), R(0), 103 /* 25 S> */ B(LdaContextSlot), R(context), U8(3),
100 B(LdrContextSlot), R(0), U8(2), R(1), 104 B(Star), R(0),
105 B(LdaContextSlot), R(0), U8(2),
106 B(Star), R(1),
101 B(LdaConstant), U8(0), 107 B(LdaConstant), U8(0),
102 B(DeletePropertySloppy), R(1), 108 B(DeletePropertySloppy), R(1),
103 /* 42 S> */ B(Return), 109 /* 42 S> */ B(Return),
104 ] 110 ]
105 constant pool: [ 111 constant pool: [
106 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 112 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
107 ] 113 ]
108 handlers: [ 114 handlers: [
109 ] 115 ]
110 116
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698