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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 case Bytecode::kAdd: | 220 case Bytecode::kAdd: |
221 case Bytecode::kSub: | 221 case Bytecode::kSub: |
222 case Bytecode::kMul: | 222 case Bytecode::kMul: |
223 case Bytecode::kAddSmi: | 223 case Bytecode::kAddSmi: |
224 case Bytecode::kSubSmi: | 224 case Bytecode::kSubSmi: |
225 case Bytecode::kInc: | 225 case Bytecode::kInc: |
226 case Bytecode::kDec: | 226 case Bytecode::kDec: |
227 case Bytecode::kTypeOf: | 227 case Bytecode::kTypeOf: |
228 case Bytecode::kCall: | 228 case Bytecode::kCall: |
229 case Bytecode::kCallProperty: | 229 case Bytecode::kCallProperty: |
230 case Bytecode::kNew: | 230 case Bytecode::kConstruct: |
| 231 case Bytecode::kConstructWithSpread: |
231 return true; | 232 return true; |
232 default: | 233 default: |
233 return false; | 234 return false; |
234 } | 235 } |
235 } | 236 } |
236 return false; | 237 return false; |
237 } | 238 } |
238 | 239 |
239 // static | 240 // static |
240 bool Bytecodes::IsBytecodeWithScalableOperands(Bytecode bytecode) { | 241 bool Bytecodes::IsBytecodeWithScalableOperands(Bytecode bytecode) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 Bytecodes::IsBytecodeWithScalableOperands(bytecode); | 290 Bytecodes::IsBytecodeWithScalableOperands(bytecode); |
290 } | 291 } |
291 | 292 |
292 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { | 293 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { |
293 return os << Bytecodes::ToString(bytecode); | 294 return os << Bytecodes::ToString(bytecode); |
294 } | 295 } |
295 | 296 |
296 } // namespace interpreter | 297 } // namespace interpreter |
297 } // namespace internal | 298 } // namespace internal |
298 } // namespace v8 | 299 } // namespace v8 |
OLD | NEW |