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

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

Issue 2562393002: [wasm] Introduce the TrapIf and TrapUnless operators to generate trap code. (Closed)
Patch Set: Rename UseSourcePosition to IsSourcePositionUsed 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/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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/compiler/state-values-utils.h" 9 #include "src/compiler/state-values-utils.h"
10 10
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 std::ostream& operator<<(std::ostream& os, const FlagsMode& fm) { 426 std::ostream& operator<<(std::ostream& os, const FlagsMode& fm) {
427 switch (fm) { 427 switch (fm) {
428 case kFlags_none: 428 case kFlags_none:
429 return os; 429 return os;
430 case kFlags_branch: 430 case kFlags_branch:
431 return os << "branch"; 431 return os << "branch";
432 case kFlags_deoptimize: 432 case kFlags_deoptimize:
433 return os << "deoptimize"; 433 return os << "deoptimize";
434 case kFlags_set: 434 case kFlags_set:
435 return os << "set"; 435 return os << "set";
436 case kFlags_trap:
437 return os << "trap";
436 } 438 }
437 UNREACHABLE(); 439 UNREACHABLE();
438 return os; 440 return os;
439 } 441 }
440 442
441 443
442 std::ostream& operator<<(std::ostream& os, const FlagsCondition& fc) { 444 std::ostream& operator<<(std::ostream& os, const FlagsCondition& fc) {
443 switch (fc) { 445 switch (fc) {
444 case kEqual: 446 case kEqual:
445 return os << "equal"; 447 return os << "equal";
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 for (int i = 0; i < code.InstructionBlockCount(); i++) { 1076 for (int i = 0; i < code.InstructionBlockCount(); i++) {
1075 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); 1077 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i));
1076 os << printable_block; 1078 os << printable_block;
1077 } 1079 }
1078 return os; 1080 return os;
1079 } 1081 }
1080 1082
1081 } // namespace compiler 1083 } // namespace compiler
1082 } // namespace internal 1084 } // namespace internal
1083 } // namespace v8 1085 } // 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