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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode | 715 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode |
716 "JSLoadProperty", // name | 716 "JSLoadProperty", // name |
717 3, 1, 1, 1, 1, 2, // counts | 717 3, 1, 1, 1, 1, 2, // counts |
718 access); // parameter | 718 access); // parameter |
719 } | 719 } |
720 | 720 |
721 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) { | 721 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) { |
722 return new (zone()) Operator1<int>( // -- | 722 return new (zone()) Operator1<int>( // -- |
723 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode | 723 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode |
724 "JSGeneratorStore", // name | 724 "JSGeneratorStore", // name |
725 2 + register_count, 1, 1, 0, 1, 0, // counts | 725 3 + register_count, 1, 1, 0, 1, 0, // counts |
726 register_count); // parameter | 726 register_count); // parameter |
727 } | 727 } |
728 | 728 |
729 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) { | 729 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) { |
730 return new (zone()) Operator1<int>( // -- | 730 return new (zone()) Operator1<int>( // -- |
731 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode | 731 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode |
732 "JSGeneratorRestoreRegister", // name | 732 "JSGeneratorRestoreRegister", // name |
733 1, 1, 1, 1, 1, 0, // counts | 733 1, 1, 1, 1, 1, 0, // counts |
734 index); // parameter | 734 index); // parameter |
735 } | 735 } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 916 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
917 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 917 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
918 "JSCreateScriptContext", // name | 918 "JSCreateScriptContext", // name |
919 1, 1, 1, 1, 1, 2, // counts | 919 1, 1, 1, 1, 1, 2, // counts |
920 scpope_info); // parameter | 920 scpope_info); // parameter |
921 } | 921 } |
922 | 922 |
923 } // namespace compiler | 923 } // namespace compiler |
924 } // namespace internal | 924 } // namespace internal |
925 } // namespace v8 | 925 } // namespace v8 |
OLD | NEW |