OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |