summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/ArrayBuffer.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-05-24 08:28:08 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-05-24 08:28:08 +0000
commita4e969f4965059196ca948db781e52f7cfebf19e (patch)
tree6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/JavaScriptCore/runtime/ArrayBuffer.cpp
parent41386e9cb918eed93b3f13648cbef387e371e451 (diff)
downloadWebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/JavaScriptCore/runtime/ArrayBuffer.cpp')
-rw-r--r--Source/JavaScriptCore/runtime/ArrayBuffer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/JavaScriptCore/runtime/ArrayBuffer.cpp b/Source/JavaScriptCore/runtime/ArrayBuffer.cpp
index 2c49b6976..5a7ad268e 100644
--- a/Source/JavaScriptCore/runtime/ArrayBuffer.cpp
+++ b/Source/JavaScriptCore/runtime/ArrayBuffer.cpp
@@ -28,7 +28,7 @@
#include "ArrayBufferNeuteringWatchpoint.h"
#include "JSArrayBufferView.h"
-#include "Operations.h"
+#include "JSCInlines.h"
#include <wtf/RefPtr.h>
namespace JSC {
@@ -44,20 +44,20 @@ bool ArrayBuffer::transfer(ArrayBufferContents& result)
bool isNeuterable = !m_pinCount;
- if (isNeuterable)
- m_contents.transfer(result);
- else {
+ if (!isNeuterable) {
m_contents.copyTo(result);
if (!result.m_data)
return false;
+ return true;
}
+ m_contents.transfer(result);
for (size_t i = numberOfIncomingReferences(); i--;) {
JSCell* cell = incomingReferenceAt(i);
if (JSArrayBufferView* view = jsDynamicCast<JSArrayBufferView*>(cell))
view->neuter();
else if (ArrayBufferNeuteringWatchpoint* watchpoint = jsDynamicCast<ArrayBufferNeuteringWatchpoint*>(cell))
- watchpoint->set()->fireAll();
+ watchpoint->fireAll();
}
return true;
}