| 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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 CreateLiteralParameters parameters(constant_elements, number_of_elements, | 989 CreateLiteralParameters parameters(constant_elements, number_of_elements, |
| 990 literal_flags, literal_index); | 990 literal_flags, literal_index); |
| 991 return new (zone()) Operator1<CreateLiteralParameters>( // -- | 991 return new (zone()) Operator1<CreateLiteralParameters>( // -- |
| 992 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode | 992 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode |
| 993 "JSCreateLiteralArray", // name | 993 "JSCreateLiteralArray", // name |
| 994 1, 1, 1, 1, 1, 2, // counts | 994 1, 1, 1, 1, 1, 2, // counts |
| 995 parameters); // parameter | 995 parameters); // parameter |
| 996 } | 996 } |
| 997 | 997 |
| 998 const Operator* JSOperatorBuilder::CreateLiteralObject( | 998 const Operator* JSOperatorBuilder::CreateLiteralObject( |
| 999 Handle<FixedArray> constant_properties, int literal_flags, | 999 Handle<BoilerplateDescription> constant_properties, int literal_flags, |
| 1000 int literal_index, int number_of_properties) { | 1000 int literal_index, int number_of_properties) { |
| 1001 CreateLiteralParameters parameters(constant_properties, number_of_properties, | 1001 CreateLiteralParameters parameters(constant_properties, number_of_properties, |
| 1002 literal_flags, literal_index); | 1002 literal_flags, literal_index); |
| 1003 return new (zone()) Operator1<CreateLiteralParameters>( // -- | 1003 return new (zone()) Operator1<CreateLiteralParameters>( // -- |
| 1004 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode | 1004 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode |
| 1005 "JSCreateLiteralObject", // name | 1005 "JSCreateLiteralObject", // name |
| 1006 1, 1, 1, 1, 1, 2, // counts | 1006 1, 1, 1, 1, 1, 2, // counts |
| 1007 parameters); // parameter | 1007 parameters); // parameter |
| 1008 } | 1008 } |
| 1009 | 1009 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 1062 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
| 1063 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 1063 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 1064 "JSCreateScriptContext", // name | 1064 "JSCreateScriptContext", // name |
| 1065 1, 1, 1, 1, 1, 2, // counts | 1065 1, 1, 1, 1, 1, 2, // counts |
| 1066 scope_info); // parameter | 1066 scope_info); // parameter |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 } // namespace compiler | 1069 } // namespace compiler |
| 1070 } // namespace internal | 1070 } // namespace internal |
| 1071 } // namespace v8 | 1071 } // namespace v8 |
| OLD | NEW |