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/js-operator.h" | 5 #include "src/compiler/js-operator.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/lazy-instance.h" | 9 #include "src/base/lazy-instance.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 const VectorSlotPair& feedback) { | 698 const VectorSlotPair& feedback) { |
699 FeedbackParameter parameters(feedback); | 699 FeedbackParameter parameters(feedback); |
700 return new (zone()) Operator1<FeedbackParameter>( // -- | 700 return new (zone()) Operator1<FeedbackParameter>( // -- |
701 IrOpcode::kJSStoreDataPropertyInLiteral, | 701 IrOpcode::kJSStoreDataPropertyInLiteral, |
702 Operator::kNoThrow, // opcode | 702 Operator::kNoThrow, // opcode |
703 "JSStoreDataPropertyInLiteral", // name | 703 "JSStoreDataPropertyInLiteral", // name |
704 4, 1, 1, 0, 1, 0, // counts | 704 4, 1, 1, 0, 1, 0, // counts |
705 parameters); // parameter | 705 parameters); // parameter |
706 } | 706 } |
707 | 707 |
| 708 const Operator* JSOperatorBuilder::CollectTypeProfile( |
| 709 const VectorSlotPair& feedback) { |
| 710 FeedbackParameter parameters(feedback); |
| 711 return new (zone()) Operator1<FeedbackParameter>( // -- |
| 712 IrOpcode::kJSCollectTypeProfile, |
| 713 Operator::kNoThrow, // opcode |
| 714 "JSCollectTypeProfile", // name |
| 715 2, 1, 1, 0, 1, 0, // counts |
| 716 parameters); // parameter |
| 717 } |
| 718 |
708 const Operator* JSOperatorBuilder::ToBoolean(ToBooleanHints hints) { | 719 const Operator* JSOperatorBuilder::ToBoolean(ToBooleanHints hints) { |
709 // TODO(turbofan): Cache most important versions of this operator. | 720 // TODO(turbofan): Cache most important versions of this operator. |
710 return new (zone()) Operator1<ToBooleanHints>( //-- | 721 return new (zone()) Operator1<ToBooleanHints>( //-- |
711 IrOpcode::kJSToBoolean, Operator::kPure, // opcode | 722 IrOpcode::kJSToBoolean, Operator::kPure, // opcode |
712 "JSToBoolean", // name | 723 "JSToBoolean", // name |
713 1, 0, 0, 1, 0, 0, // inputs/outputs | 724 1, 0, 0, 1, 0, 0, // inputs/outputs |
714 hints); // parameter | 725 hints); // parameter |
715 } | 726 } |
716 | 727 |
717 const Operator* JSOperatorBuilder::CallForwardVarargs( | 728 const Operator* JSOperatorBuilder::CallForwardVarargs( |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 1061 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
1051 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 1062 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
1052 "JSCreateScriptContext", // name | 1063 "JSCreateScriptContext", // name |
1053 1, 1, 1, 1, 1, 2, // counts | 1064 1, 1, 1, 1, 1, 2, // counts |
1054 scope_info); // parameter | 1065 scope_info); // parameter |
1055 } | 1066 } |
1056 | 1067 |
1057 } // namespace compiler | 1068 } // namespace compiler |
1058 } // namespace internal | 1069 } // namespace internal |
1059 } // namespace v8 | 1070 } // namespace v8 |
OLD | NEW |