| 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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { | 847 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { |
| 848 CreateClosureParameters parameters(shared_info, pretenure); | 848 CreateClosureParameters parameters(shared_info, pretenure); |
| 849 return new (zone()) Operator1<CreateClosureParameters>( // -- | 849 return new (zone()) Operator1<CreateClosureParameters>( // -- |
| 850 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode | 850 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode |
| 851 "JSCreateClosure", // name | 851 "JSCreateClosure", // name |
| 852 0, 1, 1, 1, 1, 0, // counts | 852 0, 1, 1, 1, 1, 0, // counts |
| 853 parameters); // parameter | 853 parameters); // parameter |
| 854 } | 854 } |
| 855 | 855 |
| 856 const Operator* JSOperatorBuilder::CreateLiteralArray( | 856 const Operator* JSOperatorBuilder::CreateLiteralArray( |
| 857 Handle<FixedArray> constant_elements, int literal_flags, int literal_index, | 857 Handle<ConstantElementsPair> constant_elements, int literal_flags, |
| 858 int number_of_elements) { | 858 int literal_index, int number_of_elements) { |
| 859 CreateLiteralParameters parameters(constant_elements, number_of_elements, | 859 CreateLiteralParameters parameters(constant_elements, number_of_elements, |
| 860 literal_flags, literal_index); | 860 literal_flags, literal_index); |
| 861 return new (zone()) Operator1<CreateLiteralParameters>( // -- | 861 return new (zone()) Operator1<CreateLiteralParameters>( // -- |
| 862 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode | 862 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode |
| 863 "JSCreateLiteralArray", // name | 863 "JSCreateLiteralArray", // name |
| 864 1, 1, 1, 1, 1, 2, // counts | 864 1, 1, 1, 1, 1, 2, // counts |
| 865 parameters); // parameter | 865 parameters); // parameter |
| 866 } | 866 } |
| 867 | 867 |
| 868 const Operator* JSOperatorBuilder::CreateLiteralObject( | 868 const Operator* JSOperatorBuilder::CreateLiteralObject( |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 932 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
| 933 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 933 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 934 "JSCreateScriptContext", // name | 934 "JSCreateScriptContext", // name |
| 935 1, 1, 1, 1, 1, 2, // counts | 935 1, 1, 1, 1, 1, 2, // counts |
| 936 scpope_info); // parameter | 936 scpope_info); // parameter |
| 937 } | 937 } |
| 938 | 938 |
| 939 } // namespace compiler | 939 } // namespace compiler |
| 940 } // namespace internal | 940 } // namespace internal |
| 941 } // namespace v8 | 941 } // namespace v8 |
| OLD | NEW |