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

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: sanity check diff adjustments 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 7709 matching lines...) Expand 10 before | Expand all | Expand 10 after
7720 if (exceptionState.hadException()) 7720 if (exceptionState.hadException())
7721 return; 7721 return;
7722 // Neuter the original image bitmaps on the sender context. 7722 // Neuter the original image bitmaps on the sender context.
7723 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf erableImageBitmaps, exceptionState); 7723 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf erableImageBitmaps, exceptionState);
7724 if (exceptionState.hadException()) 7724 if (exceptionState.hadException())
7725 return; 7725 return;
7726 } 7726 }
7727 7727
7728 // FIXME: Only pass scriptState/exceptionState if instance really requires it. 7728 // FIXME: Only pass scriptState/exceptionState if instance really requires it.
7729 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7729 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7730 message->unregisterMemoryAllocatedWithCurrentScriptContext();
7730 instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState); 7731 instance->postMessage(scriptState, message.get(), transferables.messagePorts, exceptionState);
7731 message->unregisterMemoryAllocatedByCurrentScriptContext();
7732 } 7732 }
7733 7733
7734 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) { 7734 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) {
7735 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7735 TestObject* impl = V8TestObject::toImpl(info.Holder());
7736 7736
7737 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7737 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7738 } 7738 }
7739 7739
7740 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) { 7740 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) {
7741 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7741 TestObject* impl = V8TestObject::toImpl(info.Holder());
(...skipping 4035 matching lines...) Expand 10 before | Expand all | Expand 10 after
11777 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 11777 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
11778 } 11778 }
11779 if (RuntimeEnabledFeatures::featureNameEnabled()) { 11779 if (RuntimeEnabledFeatures::featureNameEnabled()) {
11780 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 11780 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
11781 } 11781 }
11782 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust(); 11782 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust();
11783 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust(); 11783 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust();
11784 } 11784 }
11785 11785
11786 } // namespace blink 11786 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698