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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 years 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698