| OLD | NEW |
| 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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 | 6 |
| 7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
| 8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
| 9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
| 10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 Name##Operator k##Name##Operator; | 223 Name##Operator k##Name##Operator; |
| 224 CACHED_OP_LIST(CACHED) | 224 CACHED_OP_LIST(CACHED) |
| 225 #undef CACHED | 225 #undef CACHED |
| 226 | 226 |
| 227 template <IfExceptionHint kCaughtLocally> | 227 template <IfExceptionHint kCaughtLocally> |
| 228 struct IfExceptionOperator final : public Operator1<IfExceptionHint> { | 228 struct IfExceptionOperator final : public Operator1<IfExceptionHint> { |
| 229 IfExceptionOperator() | 229 IfExceptionOperator() |
| 230 : Operator1<IfExceptionHint>( // -- | 230 : Operator1<IfExceptionHint>( // -- |
| 231 IrOpcode::kIfException, Operator::kKontrol, // opcode | 231 IrOpcode::kIfException, Operator::kKontrol, // opcode |
| 232 "IfException", // name | 232 "IfException", // name |
| 233 0, 0, 1, 1, 0, 1, // counts | 233 0, 1, 1, 1, 1, 1, // counts |
| 234 kCaughtLocally) {} // parameter | 234 kCaughtLocally) {} // parameter |
| 235 }; | 235 }; |
| 236 IfExceptionOperator<IfExceptionHint::kLocallyCaught> kIfExceptionCOperator; | 236 IfExceptionOperator<IfExceptionHint::kLocallyCaught> kIfExceptionCOperator; |
| 237 IfExceptionOperator<IfExceptionHint::kLocallyUncaught> kIfExceptionUOperator; | 237 IfExceptionOperator<IfExceptionHint::kLocallyUncaught> kIfExceptionUOperator; |
| 238 | 238 |
| 239 template <size_t kInputCount> | 239 template <size_t kInputCount> |
| 240 struct EndOperator final : public Operator { | 240 struct EndOperator final : public Operator { |
| 241 EndOperator() | 241 EndOperator() |
| 242 : Operator( // -- | 242 : Operator( // -- |
| 243 IrOpcode::kEnd, Operator::kKontrol, // opcode | 243 IrOpcode::kEnd, Operator::kKontrol, // opcode |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 } else { | 772 } else { |
| 773 UNREACHABLE(); | 773 UNREACHABLE(); |
| 774 return nullptr; | 774 return nullptr; |
| 775 } | 775 } |
| 776 } | 776 } |
| 777 | 777 |
| 778 | 778 |
| 779 } // namespace compiler | 779 } // namespace compiler |
| 780 } // namespace internal | 780 } // namespace internal |
| 781 } // namespace v8 | 781 } // namespace v8 |
| OLD | NEW |