Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index 3365493d3d007fab4881e8dfa65665e48a9124b5..ceb97743eb81ecedcdf89b8aca2558b0fc14c5bb 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -71,6 +71,10 @@ typedef v8::internal::EnumSet<CcTestExtensionIds> CcTestExtensionFlags; |
EXTENSION_LIST(DEFINE_EXTENSION_FLAG) |
#undef DEFINE_EXTENSION_FLAG |
+// Temporary macros for accessing current isolate and its subobjects. |
+// They provide better readability, especially when used a lot in the code. |
+#define HEAP (v8::internal::Isolate::Current()->heap()) |
+ |
class CcTest { |
public: |
typedef void (TestFunction)(); |