summaryrefslogtreecommitdiff
path: root/deps/v8/src/macro-assembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/macro-assembler.h')
-rw-r--r--deps/v8/src/macro-assembler.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/deps/v8/src/macro-assembler.h b/deps/v8/src/macro-assembler.h
index 686a61c36..d261f57da 100644
--- a/deps/v8/src/macro-assembler.h
+++ b/deps/v8/src/macro-assembler.h
@@ -83,4 +83,31 @@ const int kInvalidProtoDepth = -1;
#error Unsupported target architecture.
#endif
+namespace v8 {
+namespace internal {
+
+// Support for "structured" code comments.
+#ifdef DEBUG
+
+class Comment {
+ public:
+ Comment(MacroAssembler* masm, const char* msg);
+ ~Comment();
+
+ private:
+ MacroAssembler* masm_;
+ const char* msg_;
+};
+
+#else
+
+class Comment {
+ public:
+ Comment(MacroAssembler*, const char*) {}
+};
+
+#endif // DEBUG
+
+} } // namespace v8::internal
+
#endif // V8_MACRO_ASSEMBLER_H_