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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 parameters); // parameter | 897 parameters); // parameter |
898 } | 898 } |
899 | 899 |
900 const Operator* JSOperatorBuilder::DeleteProperty() { | 900 const Operator* JSOperatorBuilder::DeleteProperty() { |
901 return new (zone()) Operator( // -- | 901 return new (zone()) Operator( // -- |
902 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode | 902 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode |
903 "JSDeleteProperty", // name | 903 "JSDeleteProperty", // name |
904 3, 1, 1, 1, 1, 2); // counts | 904 3, 1, 1, 1, 1, 2); // counts |
905 } | 905 } |
906 | 906 |
| 907 const Operator* JSOperatorBuilder::CreateGeneratorObject() { |
| 908 return new (zone()) Operator( // -- |
| 909 IrOpcode::kJSCreateGeneratorObject, Operator::kEliminatable, // opcode |
| 910 "JSCreateGeneratorObject", // name |
| 911 2, 1, 1, 1, 1, 0); // counts |
| 912 } |
907 | 913 |
908 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name, | 914 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name, |
909 const VectorSlotPair& feedback, | 915 const VectorSlotPair& feedback, |
910 TypeofMode typeof_mode) { | 916 TypeofMode typeof_mode) { |
911 LoadGlobalParameters parameters(name, feedback, typeof_mode); | 917 LoadGlobalParameters parameters(name, feedback, typeof_mode); |
912 return new (zone()) Operator1<LoadGlobalParameters>( // -- | 918 return new (zone()) Operator1<LoadGlobalParameters>( // -- |
913 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode | 919 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode |
914 "JSLoadGlobal", // name | 920 "JSLoadGlobal", // name |
915 0, 1, 1, 1, 1, 2, // counts | 921 0, 1, 1, 1, 1, 2, // counts |
916 parameters); // parameter | 922 parameters); // parameter |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 1086 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
1081 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 1087 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
1082 "JSCreateScriptContext", // name | 1088 "JSCreateScriptContext", // name |
1083 1, 1, 1, 1, 1, 2, // counts | 1089 1, 1, 1, 1, 1, 2, // counts |
1084 scope_info); // parameter | 1090 scope_info); // parameter |
1085 } | 1091 } |
1086 | 1092 |
1087 } // namespace compiler | 1093 } // namespace compiler |
1088 } // namespace internal | 1094 } // namespace internal |
1089 } // namespace v8 | 1095 } // namespace v8 |
OLD | NEW |