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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp

Issue 2494823002: V8ScriptValueSerializer: Use PartitionAlloc for the buffer, and avoid copying it into a String. (Closed)
Patch Set: mild streamlining Created 4 years, 1 month 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/bindings/core/v8/ScriptValueSerializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
index a891e84154d7fc68777ffb5ae9eef2f5c63f9781..1b34600f0bf212d6555dc39a0986c92f7e18a4b0 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
@@ -811,7 +811,7 @@ void ScriptValueSerializer::transferData(
ExceptionState& exceptionState,
SerializedScriptValue* serializedValue) {
serializedValue->setData(m_writer.takeWireString());
- DCHECK(serializedValue->data().impl()->hasOneRef());
+ DCHECK(serializedValue->dataHasOneRef());
if (!transferables)
return;

Powered by Google App Engine
This is Rietveld 408576698