From ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 24 Feb 2012 16:36:50 +0100 Subject: Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790) --- Source/JavaScriptCore/runtime/WriteBarrier.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/JavaScriptCore/runtime/WriteBarrier.h') diff --git a/Source/JavaScriptCore/runtime/WriteBarrier.h b/Source/JavaScriptCore/runtime/WriteBarrier.h index 6ac52b7c7..7e9db12fb 100644 --- a/Source/JavaScriptCore/runtime/WriteBarrier.h +++ b/Source/JavaScriptCore/runtime/WriteBarrier.h @@ -26,6 +26,7 @@ #ifndef WriteBarrier_h #define WriteBarrier_h +#include "GCAssertions.h" #include "HandleTypes.h" #include "Heap.h" #include "SamplingCounter.h" @@ -73,6 +74,13 @@ public: validateCell(value); setEarlyValue(globalData, owner, value); } + + // This is meant to be used like operator=, but is called copyFrom instead, in + // order to kindly inform the C++ compiler that its advice is not appreciated. + void copyFrom(const WriteBarrierBase& other) + { + m_cell = other.m_cell; + } void setMayBeNull(JSGlobalData& globalData, const JSCell* owner, T* value) { -- cgit v1.2.1