Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: third_party/WebKit/Source/wtf/ArrayBufferContents.h

Issue 1577783004: [v8] don't crash when ArrayBuffer allocation fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a little comment explaining the contract Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/ArrayBufferContents.h
diff --git a/third_party/WebKit/Source/wtf/ArrayBufferContents.h b/third_party/WebKit/Source/wtf/ArrayBufferContents.h
index d5b4fc304c7beb60549620322c4e9517f9c22962..32cfbf449f56330d546818b4720d4edade45bc44 100644
--- a/third_party/WebKit/Source/wtf/ArrayBufferContents.h
+++ b/third_party/WebKit/Source/wtf/ArrayBufferContents.h
@@ -72,6 +72,7 @@ public:
void copyTo(ArrayBufferContents& other);
static void allocateMemory(size_t, InitializationPolicy, void*&);
+ static void allocateMemoryOrNull(size_t, InitializationPolicy, void*&);
static void freeMemory(void*, size_t);
static void setAdjustAmoutOfExternalAllocatedMemoryFunction(AdjustAmountOfExternalAllocatedMemoryFunction function)
{
@@ -80,6 +81,7 @@ public:
}
private:
+ static void allocateMemoryWithFlags(size_t, InitializationPolicy, int, void*&);
class DataHolder : public ThreadSafeRefCounted<DataHolder> {
WTF_MAKE_NONCOPYABLE(DataHolder);
public:
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp ('k') | third_party/WebKit/Source/wtf/ArrayBufferContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698