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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 2741793003: Accurate transfer of SerializedScriptValue allocation costs. (Closed)
Patch Set: address (un)signed warnings Created 3 years, 9 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/bindings/tests/results/core/V8TestObject.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
index 0c7632faa8357958406d1d968573dac07c91caa2..008d25f1ca2ba6ab0b005460e4f9b25176d401f9 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
@@ -7700,8 +7700,8 @@ static void postMessageImpl(const char* interfaceName, TestObject* instance, con
// FIXME: Only pass scriptState/exceptionState if instance really requires it.
ScriptState* scriptState = ScriptState::current(info.GetIsolate());
+ message->unregisterMemoryAllocatedWithCurrentScriptContext();
instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState);
- message->unregisterMemoryAllocatedByCurrentScriptContext();
}
static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {

Powered by Google App Engine
This is Rietveld 408576698