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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 const Operator* JSOperatorBuilder::StoreContext(size_t depth, size_t index) { | 758 const Operator* JSOperatorBuilder::StoreContext(size_t depth, size_t index) { |
759 ContextAccess access(depth, index, false); | 759 ContextAccess access(depth, index, false); |
760 return new (zone()) Operator1<ContextAccess>( // -- | 760 return new (zone()) Operator1<ContextAccess>( // -- |
761 IrOpcode::kJSStoreContext, // opcode | 761 IrOpcode::kJSStoreContext, // opcode |
762 Operator::kNoRead | Operator::kNoThrow, // flags | 762 Operator::kNoRead | Operator::kNoThrow, // flags |
763 "JSStoreContext", // name | 763 "JSStoreContext", // name |
764 2, 1, 1, 0, 1, 0, // counts | 764 2, 1, 1, 0, 1, 0, // counts |
765 access); // parameter | 765 access); // parameter |
766 } | 766 } |
767 | 767 |
| 768 const Operator* JSOperatorBuilder::LoadModule(int32_t cell_index) { |
| 769 return new (zone()) Operator1<int32_t>( // -- |
| 770 IrOpcode::kJSLoadModule, // opcode |
| 771 Operator::kNoWrite | Operator::kNoThrow, // flags |
| 772 "JSLoadModule", // name |
| 773 1, 1, 1, 1, 1, 0, // counts |
| 774 cell_index); // parameter |
| 775 } |
| 776 |
| 777 const Operator* JSOperatorBuilder::StoreModule(int32_t cell_index) { |
| 778 return new (zone()) Operator1<int32_t>( // -- |
| 779 IrOpcode::kJSStoreModule, // opcode |
| 780 Operator::kNoRead | Operator::kNoThrow, // flags |
| 781 "JSStoreModule", // name |
| 782 2, 1, 1, 0, 1, 0, // counts |
| 783 cell_index); // parameter |
| 784 } |
768 | 785 |
769 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) { | 786 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) { |
770 return new (zone()) Operator1<CreateArgumentsType>( // -- | 787 return new (zone()) Operator1<CreateArgumentsType>( // -- |
771 IrOpcode::kJSCreateArguments, Operator::kEliminatable, // opcode | 788 IrOpcode::kJSCreateArguments, Operator::kEliminatable, // opcode |
772 "JSCreateArguments", // name | 789 "JSCreateArguments", // name |
773 1, 1, 0, 1, 1, 0, // counts | 790 1, 1, 0, 1, 1, 0, // counts |
774 type); // parameter | 791 type); // parameter |
775 } | 792 } |
776 | 793 |
777 | 794 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 894 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
878 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 895 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
879 "JSCreateScriptContext", // name | 896 "JSCreateScriptContext", // name |
880 1, 1, 1, 1, 1, 2, // counts | 897 1, 1, 1, 1, 1, 2, // counts |
881 scpope_info); // parameter | 898 scpope_info); // parameter |
882 } | 899 } |
883 | 900 |
884 } // namespace compiler | 901 } // namespace compiler |
885 } // namespace internal | 902 } // namespace internal |
886 } // namespace v8 | 903 } // namespace v8 |
OLD | NEW |