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

Side by Side Diff: src/compiler/instruction.cc

Issue 436593002: [turbofan] Add Int32AddWithOverflow machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add more tests. Created 6 years, 4 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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-codes.h » ('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/instruction.h" 5 #include "src/compiler/instruction.h"
6 6
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 case kUnorderedNotEqual: 232 case kUnorderedNotEqual:
233 return os << "unordered not equal"; 233 return os << "unordered not equal";
234 case kUnorderedLessThan: 234 case kUnorderedLessThan:
235 return os << "unordered less than"; 235 return os << "unordered less than";
236 case kUnorderedGreaterThanOrEqual: 236 case kUnorderedGreaterThanOrEqual:
237 return os << "unordered greater than or equal"; 237 return os << "unordered greater than or equal";
238 case kUnorderedLessThanOrEqual: 238 case kUnorderedLessThanOrEqual:
239 return os << "unordered less than or equal"; 239 return os << "unordered less than or equal";
240 case kUnorderedGreaterThan: 240 case kUnorderedGreaterThan:
241 return os << "unordered greater than"; 241 return os << "unordered greater than";
242 case kOverflow:
243 return os << "overflow";
244 case kNotOverflow:
245 return os << "not overflow";
242 } 246 }
243 UNREACHABLE(); 247 UNREACHABLE();
244 return os; 248 return os;
245 } 249 }
246 250
247 251
248 OStream& operator<<(OStream& os, const Instruction& instr) { 252 OStream& operator<<(OStream& os, const Instruction& instr) {
249 if (instr.OutputCount() > 1) os << "("; 253 if (instr.OutputCount() > 1) os << "(";
250 for (size_t i = 0; i < instr.OutputCount(); i++) { 254 for (size_t i = 0; i < instr.OutputCount(); i++) {
251 if (i > 0) os << ", "; 255 if (i > 0) os << ", ";
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 os << " B" << (*iter)->id(); 474 os << " B" << (*iter)->id();
471 } 475 }
472 os << "\n"; 476 os << "\n";
473 } 477 }
474 return os; 478 return os;
475 } 479 }
476 480
477 } // namespace compiler 481 } // namespace compiler
478 } // namespace internal 482 } // namespace internal
479 } // namespace v8 483 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698