OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #include "mips/constants-mips.h" | 76 #include "mips/constants-mips.h" |
77 #include "assembler.h" | 77 #include "assembler.h" |
78 #include "mips/assembler-mips.h" | 78 #include "mips/assembler-mips.h" |
79 #include "mips/assembler-mips-inl.h" | 79 #include "mips/assembler-mips-inl.h" |
80 #include "code.h" // must be after assembler_*.h | 80 #include "code.h" // must be after assembler_*.h |
81 #include "mips/macro-assembler-mips.h" | 81 #include "mips/macro-assembler-mips.h" |
82 #else | 82 #else |
83 #error Unsupported target architecture. | 83 #error Unsupported target architecture. |
84 #endif | 84 #endif |
85 | 85 |
| 86 namespace v8 { |
| 87 namespace internal { |
| 88 |
| 89 // Support for "structured" code comments. |
| 90 #ifdef DEBUG |
| 91 |
| 92 class Comment { |
| 93 public: |
| 94 Comment(MacroAssembler* masm, const char* msg); |
| 95 ~Comment(); |
| 96 |
| 97 private: |
| 98 MacroAssembler* masm_; |
| 99 const char* msg_; |
| 100 }; |
| 101 |
| 102 #else |
| 103 |
| 104 class Comment { |
| 105 public: |
| 106 Comment(MacroAssembler*, const char*) {} |
| 107 }; |
| 108 |
| 109 #endif // DEBUG |
| 110 |
| 111 } } // namespace v8::internal |
| 112 |
86 #endif // V8_MACRO_ASSEMBLER_H_ | 113 #endif // V8_MACRO_ASSEMBLER_H_ |
OLD | NEW |