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

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

Issue 607033002: Take output type into account in JSTypedLowering reduction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/compiler/js-typed-lowering.cc ('k') | no next file » | 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 INNER_CONTROL_OP_LIST(V) \ 9 #define INNER_CONTROL_OP_LIST(V) \
10 V(Dead) \ 10 V(Dead) \
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 #define RETURN_NAME(x) \ 282 #define RETURN_NAME(x) \
283 case k##x: \ 283 case k##x: \
284 return true; 284 return true;
285 CONTROL_OP_LIST(RETURN_NAME) 285 CONTROL_OP_LIST(RETURN_NAME)
286 #undef RETURN_NAME 286 #undef RETURN_NAME
287 default: 287 default:
288 return false; 288 return false;
289 } 289 }
290 } 290 }
291 291
292
293 static bool IsLeafOpcode(Value val) {
294 switch (val) {
295 #define RETURN_NAME(x) \
296 case k##x: \
297 return true;
298 LEAF_OP_LIST(RETURN_NAME)
299 #undef RETURN_NAME
300 default:
301 return false;
302 }
303 }
304
305
292 static bool IsCommonOpcode(Value val) { 306 static bool IsCommonOpcode(Value val) {
293 switch (val) { 307 switch (val) {
294 #define RETURN_NAME(x) \ 308 #define RETURN_NAME(x) \
295 case k##x: \ 309 case k##x: \
296 return true; 310 return true;
297 CONTROL_OP_LIST(RETURN_NAME) 311 CONTROL_OP_LIST(RETURN_NAME)
298 COMMON_OP_LIST(RETURN_NAME) 312 COMMON_OP_LIST(RETURN_NAME)
299 #undef RETURN_NAME 313 #undef RETURN_NAME
300 default: 314 default:
301 return false; 315 return false;
302 } 316 }
303 } 317 }
304 }; 318 };
305 319
306 } // namespace compiler 320 } // namespace compiler
307 } // namespace internal 321 } // namespace internal
308 } // namespace v8 322 } // namespace v8
309 323
310 #endif // V8_COMPILER_OPCODES_H_ 324 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698