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

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

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CHECK_NULL/NOT_NULL is back. Created 5 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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction.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 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 #ifndef V8_COMPILER_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 return opcode() == kSourcePositionInstruction; 513 return opcode() == kSourcePositionInstruction;
514 } 514 }
515 515
516 bool ClobbersRegisters() const { return IsCall(); } 516 bool ClobbersRegisters() const { return IsCall(); }
517 bool ClobbersTemps() const { return IsCall(); } 517 bool ClobbersTemps() const { return IsCall(); }
518 bool ClobbersDoubleRegisters() const { return IsCall(); } 518 bool ClobbersDoubleRegisters() const { return IsCall(); }
519 PointerMap* pointer_map() const { return pointer_map_; } 519 PointerMap* pointer_map() const { return pointer_map_; }
520 520
521 void set_pointer_map(PointerMap* map) { 521 void set_pointer_map(PointerMap* map) {
522 DCHECK(NeedsPointerMap()); 522 DCHECK(NeedsPointerMap());
523 DCHECK_EQ(NULL, pointer_map_); 523 DCHECK(!pointer_map_);
524 pointer_map_ = map; 524 pointer_map_ = map;
525 } 525 }
526 526
527 // Placement new operator so that we can smash instructions into 527 // Placement new operator so that we can smash instructions into
528 // zone-allocated memory. 528 // zone-allocated memory.
529 void* operator new(size_t, void* location) { return location; } 529 void* operator new(size_t, void* location) { return location; }
530 530
531 void operator delete(void* pointer, void* location) { UNREACHABLE(); } 531 void operator delete(void* pointer, void* location) { UNREACHABLE(); }
532 532
533 void OverwriteWithNop() { 533 void OverwriteWithNop() {
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 1055
1056 1056
1057 std::ostream& operator<<(std::ostream& os, 1057 std::ostream& operator<<(std::ostream& os,
1058 const PrintableInstructionSequence& code); 1058 const PrintableInstructionSequence& code);
1059 1059
1060 } // namespace compiler 1060 } // namespace compiler
1061 } // namespace internal 1061 } // namespace internal
1062 } // namespace v8 1062 } // namespace v8
1063 1063
1064 #endif // V8_COMPILER_INSTRUCTION_H_ 1064 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698