OLD | NEW |
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 Loading... |
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::kLdaUndefined: |
| 215 case Bytecode::kLdaGlobal: |
214 case Bytecode::kLdaNamedProperty: | 216 case Bytecode::kLdaNamedProperty: |
215 case Bytecode::kLdaKeyedProperty: | 217 case Bytecode::kLdaKeyedProperty: |
| 218 case Bytecode::kLdaContextSlot: |
| 219 case Bytecode::kLdaCurrentContextSlot: |
216 case Bytecode::kAdd: | 220 case Bytecode::kAdd: |
217 case Bytecode::kSub: | 221 case Bytecode::kSub: |
218 case Bytecode::kMul: | 222 case Bytecode::kMul: |
219 case Bytecode::kAddSmi: | 223 case Bytecode::kAddSmi: |
220 case Bytecode::kSubSmi: | 224 case Bytecode::kSubSmi: |
221 case Bytecode::kInc: | 225 case Bytecode::kInc: |
222 case Bytecode::kDec: | 226 case Bytecode::kDec: |
223 case Bytecode::kTypeOf: | 227 case Bytecode::kTypeOf: |
224 case Bytecode::kCall: | 228 case Bytecode::kCall: |
225 case Bytecode::kCallProperty: | 229 case Bytecode::kCallProperty: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 Bytecodes::IsBytecodeWithScalableOperands(bytecode); | 289 Bytecodes::IsBytecodeWithScalableOperands(bytecode); |
286 } | 290 } |
287 | 291 |
288 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { | 292 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { |
289 return os << Bytecodes::ToString(bytecode); | 293 return os << Bytecodes::ToString(bytecode); |
290 } | 294 } |
291 | 295 |
292 } // namespace interpreter | 296 } // namespace interpreter |
293 } // namespace internal | 297 } // namespace internal |
294 } // namespace v8 | 298 } // namespace v8 |
OLD | NEW |