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

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

Issue 2509213003: DO NOT SUBMIT: enable v8bsc and instrument partitionlloc
Patch Set: misc -- most importantly, passing the actualSize to realloc 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/SerializedScriptValue.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
index 87116cda10a25f213fbe150663baee1defe7f8ad..a28bc4c1d646e05f7de2a0c1bf402506d622a4c2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
@@ -145,6 +145,7 @@ String SerializedScriptValue::toWireString() const {
size_t stringSizeBytes = (m_dataBufferSize + 1) & ~1;
String wireString =
String::createUninitialized(stringSizeBytes / 2, destination);
+ LOG(ERROR) << "wire string at " << ((void*)wireString.impl()) << ", buffer at " << ((void*)destination);
memcpy(destination, m_dataBuffer.get(), m_dataBufferSize);
if (stringSizeBytes > m_dataBufferSize)
reinterpret_cast<char*>(destination)[stringSizeBytes - 1] = '\0';

Powered by Google App Engine
This is Rietveld 408576698