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

Side by Side Diff: src/compiler/opcodes.h

Issue 2662263002: [turbo] Rename CallConstruct* operators to Construct*. (Closed)
Patch Set: 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
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/operator-properties.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #define JS_CONTEXT_OP_LIST(V) \ 152 #define JS_CONTEXT_OP_LIST(V) \
153 V(JSLoadContext) \ 153 V(JSLoadContext) \
154 V(JSStoreContext) \ 154 V(JSStoreContext) \
155 V(JSCreateFunctionContext) \ 155 V(JSCreateFunctionContext) \
156 V(JSCreateCatchContext) \ 156 V(JSCreateCatchContext) \
157 V(JSCreateWithContext) \ 157 V(JSCreateWithContext) \
158 V(JSCreateBlockContext) \ 158 V(JSCreateBlockContext) \
159 V(JSCreateScriptContext) 159 V(JSCreateScriptContext)
160 160
161 #define JS_OTHER_OP_LIST(V) \ 161 #define JS_OTHER_OP_LIST(V) \
162 V(JSCallConstruct) \ 162 V(JSConstruct) \
163 V(JSCallConstructWithSpread) \ 163 V(JSConstructWithSpread) \
164 V(JSCallForwardVarargs) \ 164 V(JSCallForwardVarargs) \
165 V(JSCallFunction) \ 165 V(JSCallFunction) \
166 V(JSCallFunctionWithSpread) \ 166 V(JSCallFunctionWithSpread) \
167 V(JSCallRuntime) \ 167 V(JSCallRuntime) \
168 V(JSConvertReceiver) \ 168 V(JSConvertReceiver) \
169 V(JSForInNext) \ 169 V(JSForInNext) \
170 V(JSForInPrepare) \ 170 V(JSForInPrepare) \
171 V(JSLoadMessage) \ 171 V(JSLoadMessage) \
172 V(JSStoreMessage) \ 172 V(JSStoreMessage) \
173 V(JSLoadModule) \ 173 V(JSLoadModule) \
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 static bool IsMergeOpcode(Value value) { 792 static bool IsMergeOpcode(Value value) {
793 return value == kMerge || value == kLoop; 793 return value == kMerge || value == kLoop;
794 } 794 }
795 795
796 static bool IsIfProjectionOpcode(Value value) { 796 static bool IsIfProjectionOpcode(Value value) {
797 return kIfTrue <= value && value <= kIfDefault; 797 return kIfTrue <= value && value <= kIfDefault;
798 } 798 }
799 799
800 // Returns true if opcode can be inlined. 800 // Returns true if opcode can be inlined.
801 static bool IsInlineeOpcode(Value value) { 801 static bool IsInlineeOpcode(Value value) {
802 return value == kJSCallConstruct || value == kJSCallFunction; 802 return value == kJSConstruct || value == kJSCallFunction;
803 } 803 }
804 804
805 // Returns true if opcode for comparison operator. 805 // Returns true if opcode for comparison operator.
806 static bool IsComparisonOpcode(Value value) { 806 static bool IsComparisonOpcode(Value value) {
807 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || 807 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
808 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || 808 (kNumberEqual <= value && value <= kStringLessThanOrEqual) ||
809 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); 809 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual);
810 } 810 }
811 811
812 static bool IsContextChainExtendingOpcode(Value value) { 812 static bool IsContextChainExtendingOpcode(Value value) {
813 return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext; 813 return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext;
814 } 814 }
815 }; 815 };
816 816
817 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); 817 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value);
818 818
819 } // namespace compiler 819 } // namespace compiler
820 } // namespace internal 820 } // namespace internal
821 } // namespace v8 821 } // namespace v8
822 822
823 #endif // V8_COMPILER_OPCODES_H_ 823 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/operator-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698