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

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

Issue 554763003: Couple of fixes to typer (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/typer.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 // Opcodes for control operators. 8 // Opcodes for control operators.
9 #define CONTROL_OP_LIST(V) \ 9 #define INNER_CONTROL_OP_LIST(V) \
10 V(Start) \
11 V(Dead) \ 10 V(Dead) \
12 V(Loop) \ 11 V(Loop) \
13 V(End) \
14 V(Branch) \ 12 V(Branch) \
15 V(IfTrue) \ 13 V(IfTrue) \
16 V(IfFalse) \ 14 V(IfFalse) \
17 V(Merge) \ 15 V(Merge) \
18 V(Return) \ 16 V(Return) \
19 V(Throw) 17 V(Throw)
20 18
19 #define CONTROL_OP_LIST(V) \
20 INNER_CONTROL_OP_LIST(V) \
21 V(Start) \
22 V(End)
23
21 // Opcodes for common operators. 24 // Opcodes for common operators.
22 #define LEAF_OP_LIST(V) \ 25 #define LEAF_OP_LIST(V) \
23 V(Int32Constant) \ 26 V(Int32Constant) \
24 V(Int64Constant) \ 27 V(Int64Constant) \
25 V(Float64Constant) \ 28 V(Float64Constant) \
26 V(ExternalConstant) \ 29 V(ExternalConstant) \
27 V(NumberConstant) \ 30 V(NumberConstant) \
28 V(HeapConstant) 31 V(HeapConstant)
29 32
30 #define INNER_OP_LIST(V) \ 33 #define INNER_OP_LIST(V) \
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 79
77 #define JS_LOGIC_UNOP_LIST(V) V(JSUnaryNot) 80 #define JS_LOGIC_UNOP_LIST(V) V(JSUnaryNot)
78 81
79 #define JS_CONVERSION_UNOP_LIST(V) \ 82 #define JS_CONVERSION_UNOP_LIST(V) \
80 V(JSToBoolean) \ 83 V(JSToBoolean) \
81 V(JSToNumber) \ 84 V(JSToNumber) \
82 V(JSToString) \ 85 V(JSToString) \
83 V(JSToName) \ 86 V(JSToName) \
84 V(JSToObject) 87 V(JSToObject)
85 88
86 #define JS_OTHER_UNOP_LIST(V) V(JSTypeOf) 89 #define JS_OTHER_UNOP_LIST(V) \
90 V(JSTypeOf)
87 91
88 #define JS_SIMPLE_UNOP_LIST(V) \ 92 #define JS_SIMPLE_UNOP_LIST(V) \
89 JS_LOGIC_UNOP_LIST(V) \ 93 JS_LOGIC_UNOP_LIST(V) \
90 JS_CONVERSION_UNOP_LIST(V) \ 94 JS_CONVERSION_UNOP_LIST(V) \
91 JS_OTHER_UNOP_LIST(V) 95 JS_OTHER_UNOP_LIST(V)
92 96
93 #define JS_OBJECT_OP_LIST(V) \ 97 #define JS_OBJECT_OP_LIST(V) \
94 V(JSCreate) \ 98 V(JSCreate) \
95 V(JSLoadProperty) \ 99 V(JSLoadProperty) \
96 V(JSLoadNamed) \ 100 V(JSLoadNamed) \
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return false; 296 return false;
293 } 297 }
294 } 298 }
295 }; 299 };
296 300
297 } // namespace compiler 301 } // namespace compiler
298 } // namespace internal 302 } // namespace internal
299 } // namespace v8 303 } // namespace v8
300 304
301 #endif // V8_COMPILER_OPCODES_H_ 305 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698