summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp')
-rw-r--r--Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp b/Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp
index b11a0ad3a..11279f561 100644
--- a/Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp
+++ b/Source/JavaScriptCore/runtime/ArrayBufferNeuteringWatchpoint.cpp
@@ -26,12 +26,12 @@
#include "config.h"
#include "ArrayBufferNeuteringWatchpoint.h"
-#include "Operations.h"
+#include "JSCInlines.h"
namespace JSC {
const ClassInfo ArrayBufferNeuteringWatchpoint::s_info = {
- "ArrayBufferNeuteringWatchpoint", 0, 0, 0,
+ "ArrayBufferNeuteringWatchpoint", 0, 0,
CREATE_METHOD_TABLE(ArrayBufferNeuteringWatchpoint)
};
@@ -57,7 +57,12 @@ ArrayBufferNeuteringWatchpoint* ArrayBufferNeuteringWatchpoint::create(VM& vm)
Structure* ArrayBufferNeuteringWatchpoint::createStructure(VM& vm)
{
- return Structure::create(vm, 0, jsNull(), TypeInfo(CompoundType, StructureFlags), info());
+ return Structure::create(vm, 0, jsNull(), TypeInfo(CellType, StructureFlags), info());
+}
+
+void ArrayBufferNeuteringWatchpoint::fireAll()
+{
+ set()->fireAll(*vm(), "Array buffer was neutered");
}
} // namespace JSC