Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/compiler/js-operator.cc

Issue 2659603003: Adapt use-site to new BoilerplateDescription. (Closed)
Patch Set: One more use-site. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698