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

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

Issue 2741793003: Accurate transfer of SerializedScriptValue allocation costs. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 7682 matching lines...) Expand 10 before | Expand all | Expand 10 after
7693 if (exceptionState.hadException()) 7693 if (exceptionState.hadException())
7694 return; 7694 return;
7695 // Neuter the original image bitmaps on the sender context. 7695 // Neuter the original image bitmaps on the sender context.
7696 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf erableImageBitmaps, exceptionState); 7696 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf erableImageBitmaps, exceptionState);
7697 if (exceptionState.hadException()) 7697 if (exceptionState.hadException())
7698 return; 7698 return;
7699 } 7699 }
7700 7700
7701 // FIXME: Only pass scriptState/exceptionState if instance really requires it. 7701 // FIXME: Only pass scriptState/exceptionState if instance really requires it.
7702 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7702 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7703 message->prepareForTransferringContext();
7703 instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState); 7704 instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState);
7704 message->unregisterMemoryAllocatedByCurrentScriptContext(); 7705 message->finalizeTransferringContext();
7705 } 7706 }
7706 7707
7707 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) { 7708 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) {
7708 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7709 TestObject* impl = V8TestObject::toImpl(info.Holder());
7709 7710
7710 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7711 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7711 } 7712 }
7712 7713
7713 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) { 7714 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) {
7714 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7715 TestObject* impl = V8TestObject::toImpl(info.Holder());
(...skipping 4024 matching lines...) Expand 10 before | Expand all | Expand 10 after
11739 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 11740 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
11740 } 11741 }
11741 if (RuntimeEnabledFeatures::featureNameEnabled()) { 11742 if (RuntimeEnabledFeatures::featureNameEnabled()) {
11742 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 11743 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
11743 } 11744 }
11744 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust(); 11745 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust();
11745 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust(); 11746 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust();
11746 } 11747 }
11747 11748
11748 } // namespace blink 11749 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698