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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 const Operator* JSOperatorBuilder::StoreNamedOwn( | 884 const Operator* JSOperatorBuilder::StoreNamedOwn( |
885 Handle<Name> name, VectorSlotPair const& feedback) { | 885 Handle<Name> name, VectorSlotPair const& feedback) { |
886 StoreNamedOwnParameters parameters(name, feedback); | 886 StoreNamedOwnParameters parameters(name, feedback); |
887 return new (zone()) Operator1<StoreNamedOwnParameters>( // -- | 887 return new (zone()) Operator1<StoreNamedOwnParameters>( // -- |
888 IrOpcode::kJSStoreNamedOwn, Operator::kNoProperties, // opcode | 888 IrOpcode::kJSStoreNamedOwn, Operator::kNoProperties, // opcode |
889 "JSStoreNamedOwn", // name | 889 "JSStoreNamedOwn", // name |
890 2, 1, 1, 0, 1, 2, // counts | 890 2, 1, 1, 0, 1, 2, // counts |
891 parameters); // parameter | 891 parameters); // parameter |
892 } | 892 } |
893 | 893 |
894 const Operator* JSOperatorBuilder::DeleteProperty(LanguageMode language_mode) { | 894 const Operator* JSOperatorBuilder::DeleteProperty() { |
895 return new (zone()) Operator1<LanguageMode>( // -- | 895 return new (zone()) Operator( // -- |
896 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode | 896 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode |
897 "JSDeleteProperty", // name | 897 "JSDeleteProperty", // name |
898 2, 1, 1, 1, 1, 2, // counts | 898 3, 1, 1, 1, 1, 2); // counts |
899 language_mode); // parameter | |
900 } | 899 } |
901 | 900 |
902 | 901 |
903 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name, | 902 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name, |
904 const VectorSlotPair& feedback, | 903 const VectorSlotPair& feedback, |
905 TypeofMode typeof_mode) { | 904 TypeofMode typeof_mode) { |
906 LoadGlobalParameters parameters(name, feedback, typeof_mode); | 905 LoadGlobalParameters parameters(name, feedback, typeof_mode); |
907 return new (zone()) Operator1<LoadGlobalParameters>( // -- | 906 return new (zone()) Operator1<LoadGlobalParameters>( // -- |
908 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode | 907 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode |
909 "JSLoadGlobal", // name | 908 "JSLoadGlobal", // name |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 1074 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
1076 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 1075 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
1077 "JSCreateScriptContext", // name | 1076 "JSCreateScriptContext", // name |
1078 1, 1, 1, 1, 1, 2, // counts | 1077 1, 1, 1, 1, 1, 2, // counts |
1079 scope_info); // parameter | 1078 scope_info); // parameter |
1080 } | 1079 } |
1081 | 1080 |
1082 } // namespace compiler | 1081 } // namespace compiler |
1083 } // namespace internal | 1082 } // namespace internal |
1084 } // namespace v8 | 1083 } // namespace v8 |
OLD | NEW |