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

Side by Side Diff: src/interpreter/bytecodes.cc

Issue 2485383002: [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/interpreter/bytecodes.h" 5 #include "src/interpreter/bytecodes.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/interpreter/bytecode-traits.h" 10 #include "src/interpreter/bytecode-traits.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 // static 205 // static
206 bool Bytecodes::IsStarLookahead(Bytecode bytecode, OperandScale operand_scale) { 206 bool Bytecodes::IsStarLookahead(Bytecode bytecode, OperandScale operand_scale) {
207 if (operand_scale == OperandScale::kSingle) { 207 if (operand_scale == OperandScale::kSingle) {
208 switch (bytecode) { 208 switch (bytecode) {
209 case Bytecode::kLdaZero: 209 case Bytecode::kLdaZero:
210 case Bytecode::kLdaSmi: 210 case Bytecode::kLdaSmi:
211 case Bytecode::kLdaNull: 211 case Bytecode::kLdaNull:
212 case Bytecode::kLdaTheHole: 212 case Bytecode::kLdaTheHole:
213 case Bytecode::kLdaConstant: 213 case Bytecode::kLdaConstant:
214 case Bytecode::kLdaNamedProperty:
215 case Bytecode::kLdaKeyedProperty:
214 case Bytecode::kAdd: 216 case Bytecode::kAdd:
215 case Bytecode::kSub: 217 case Bytecode::kSub:
216 case Bytecode::kMul: 218 case Bytecode::kMul:
217 case Bytecode::kAddSmi: 219 case Bytecode::kAddSmi:
218 case Bytecode::kSubSmi: 220 case Bytecode::kSubSmi:
219 case Bytecode::kInc: 221 case Bytecode::kInc:
220 case Bytecode::kDec: 222 case Bytecode::kDec:
221 case Bytecode::kTypeOf: 223 case Bytecode::kTypeOf:
222 case Bytecode::kCall: 224 case Bytecode::kCall:
223 case Bytecode::kCallProperty: 225 case Bytecode::kCallProperty:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 Bytecodes::IsBytecodeWithScalableOperands(bytecode); 285 Bytecodes::IsBytecodeWithScalableOperands(bytecode);
284 } 286 }
285 287
286 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { 288 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) {
287 return os << Bytecodes::ToString(bytecode); 289 return os << Bytecodes::ToString(bytecode);
288 } 290 }
289 291
290 } // namespace interpreter 292 } // namespace interpreter
291 } // namespace internal 293 } // namespace internal
292 } // namespace v8 294 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698