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

Side by Side Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 1690913002: [interpreter] Deprecate DeleteLookupSlot bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/interpreter/bytecode-array-builder.h" 7 #include "src/interpreter/bytecode-array-builder.h"
8 #include "src/interpreter/bytecode-array-iterator.h" 8 #include "src/interpreter/bytecode-array-iterator.h"
9 #include "src/interpreter/bytecode-register-allocator.h" 9 #include "src/interpreter/bytecode-register-allocator.h"
10 #include "test/unittests/test-utils.h" 10 #include "test/unittests/test-utils.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 .BinaryOperation(Token::Value::SHR, reg, Strength::WEAK); 126 .BinaryOperation(Token::Value::SHR, reg, Strength::WEAK);
127 127
128 // Emit count operatior invocations 128 // Emit count operatior invocations
129 builder.CountOperation(Token::Value::ADD, Strength::WEAK) 129 builder.CountOperation(Token::Value::ADD, Strength::WEAK)
130 .CountOperation(Token::Value::SUB, Strength::WEAK); 130 .CountOperation(Token::Value::SUB, Strength::WEAK);
131 131
132 // Emit unary operator invocations. 132 // Emit unary operator invocations.
133 builder.LogicalNot().TypeOf(); 133 builder.LogicalNot().TypeOf();
134 134
135 // Emit delete 135 // Emit delete
136 builder.Delete(reg, LanguageMode::SLOPPY) 136 builder.Delete(reg, LanguageMode::SLOPPY).Delete(reg, LanguageMode::STRICT);
137 .Delete(reg, LanguageMode::STRICT)
138 .DeleteLookupSlot();
139 137
140 // Emit new. 138 // Emit new.
141 builder.New(reg, reg, 0); 139 builder.New(reg, reg, 0);
142 builder.New(wide, wide, 0); 140 builder.New(wide, wide, 0);
143 141
144 // Emit test operator invocations. 142 // Emit test operator invocations.
145 builder.CompareOperation(Token::Value::EQ, reg, Strength::WEAK) 143 builder.CompareOperation(Token::Value::EQ, reg, Strength::WEAK)
146 .CompareOperation(Token::Value::NE, reg, Strength::WEAK) 144 .CompareOperation(Token::Value::NE, reg, Strength::WEAK)
147 .CompareOperation(Token::Value::EQ_STRICT, reg, Strength::WEAK) 145 .CompareOperation(Token::Value::EQ_STRICT, reg, Strength::WEAK)
148 .CompareOperation(Token::Value::NE_STRICT, reg, Strength::WEAK) 146 .CompareOperation(Token::Value::NE_STRICT, reg, Strength::WEAK)
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 iterator.Advance(); 657 iterator.Advance();
660 } 658 }
661 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); 659 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn);
662 iterator.Advance(); 660 iterator.Advance();
663 CHECK(iterator.done()); 661 CHECK(iterator.done());
664 } 662 }
665 663
666 } // namespace interpreter 664 } // namespace interpreter
667 } // namespace internal 665 } // namespace internal
668 } // namespace v8 666 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-bytecode-generator.cc ('k') | test/unittests/interpreter/bytecodes-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698