| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ASSEMBLER_IA32_H_ | 5 #ifndef VM_ASSEMBLER_IA32_H_ |
| 6 #define VM_ASSEMBLER_IA32_H_ | 6 #define VM_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. | 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 } | 565 } |
| 566 | 566 |
| 567 // Debugging and bringup support. | 567 // Debugging and bringup support. |
| 568 void Stop(const char* message); | 568 void Stop(const char* message); |
| 569 void Unimplemented(const char* message); | 569 void Unimplemented(const char* message); |
| 570 void Untested(const char* message); | 570 void Untested(const char* message); |
| 571 void Unreachable(const char* message); | 571 void Unreachable(const char* message); |
| 572 | 572 |
| 573 static void InitializeMemoryWithBreakpoints(uword data, int length); | 573 static void InitializeMemoryWithBreakpoints(uword data, int length); |
| 574 | 574 |
| 575 void Comment(const char* comment); | 575 void Comment(const char* format, ...); |
| 576 const Code::Comments& GetCodeComments() const; | 576 const Code::Comments& GetCodeComments() const; |
| 577 | 577 |
| 578 private: | 578 private: |
| 579 AssemblerBuffer buffer_; | 579 AssemblerBuffer buffer_; |
| 580 int prolog_offset_; | 580 int prolog_offset_; |
| 581 | 581 |
| 582 class CodeComment : public ZoneAllocated { | 582 class CodeComment : public ZoneAllocated { |
| 583 public: | 583 public: |
| 584 CodeComment(intptr_t pc_offset, const String& comment) | 584 CodeComment(intptr_t pc_offset, const String& comment) |
| 585 : pc_offset_(pc_offset), comment_(comment) { } | 585 : pc_offset_(pc_offset), comment_(comment) { } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 } | 644 } |
| 645 | 645 |
| 646 | 646 |
| 647 inline void Assembler::EmitOperandSizeOverride() { | 647 inline void Assembler::EmitOperandSizeOverride() { |
| 648 EmitUint8(0x66); | 648 EmitUint8(0x66); |
| 649 } | 649 } |
| 650 | 650 |
| 651 } // namespace dart | 651 } // namespace dart |
| 652 | 652 |
| 653 #endif // VM_ASSEMBLER_IA32_H_ | 653 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |