| Index: Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| diff --git a/Source/core/platform/Partitions.cpp b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| similarity index 74%
|
| copy from Source/core/platform/Partitions.cpp
|
| copy to Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| index 609672b70424436c0ca835c78de6e96cbc45dc53..063ebf68c77a05038c7c4e9574a56e14f2aba3c1 100644
|
| --- a/Source/core/platform/Partitions.cpp
|
| +++ b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| @@ -28,24 +28,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -
|
| #include "config.h"
|
| -#include "core/platform/Partitions.h"
|
| +#include "bindings/v8/ExceptionStatePlaceholder.h"
|
|
|
| -#if ENABLE(PARTITION_ALLOC)
|
| namespace WebCore {
|
|
|
| -PartitionRoot Partitions::m_objectModelRoot;
|
| +IgnorableExceptionState::IgnorableExceptionState()
|
| + : ExceptionState(0) { }
|
|
|
| -void Partitions::init()
|
| +void IgnorableExceptionState::throwDOMException(const ExceptionCode& ec, const char*)
|
| {
|
| - partitionAllocInit(&m_objectModelRoot);
|
| + m_code = ec;
|
| }
|
|
|
| -void Partitions::shutdown()
|
| +#if !ASSERT_DISABLED
|
| +
|
| +NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
|
| + : ExceptionState(0)
|
| + , m_file(file)
|
| + , m_line(line) { }
|
| +
|
| +void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, const char*)
|
| {
|
| - partitionAllocShutdown(&m_objectModelRoot);
|
| + ASSERT_AT(false, m_file, m_line, "");
|
| }
|
| +
|
| #endif
|
|
|
| } // namespace WebCore
|
|
|