OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 122 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
123 { | 123 { |
124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
125 TestObjectPythonV8Internal::readonlyStringAttributeAttributeGetter(info); | 125 TestObjectPythonV8Internal::readonlyStringAttributeAttributeGetter(info); |
126 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
127 } | 127 } |
128 | 128 |
129 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 129 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
130 { | 130 { |
131 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 131 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
132 RefPtr<TestInterfaceEmpty> result = imp->readonlyTestInterfaceEmptyAttribute
(); | 132 RefPtr<TestInterfaceEmpty> result(imp->readonlyTestInterfaceEmptyAttribute()
); |
133 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 133 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
134 return; | 134 return; |
135 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 135 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
136 if (!wrapper.IsEmpty()) { | 136 if (!wrapper.IsEmpty()) { |
137 setHiddenValue(info.GetIsolate(), info.Holder(), "readonlyTestInterfaceE
mptyAttribute", wrapper); | 137 setHiddenValue(info.GetIsolate(), info.Holder(), "readonlyTestInterfaceE
mptyAttribute", wrapper); |
138 v8SetReturnValue(info, wrapper); | 138 v8SetReturnValue(info, wrapper); |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
142 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 142 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2207 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2208 { | 2208 { |
2209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2210 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tterForMainWorld(info); | 2210 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tterForMainWorld(info); |
2211 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2211 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2212 } | 2212 } |
2213 | 2213 |
2214 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2214 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2215 { | 2215 { |
2216 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2216 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2217 RefPtr<TestInterfaceEmpty> result = imp->perWorldBindingsReadonlyTestInterfa
ceEmptyAttribute(); | 2217 RefPtr<TestInterfaceEmpty> result(imp->perWorldBindingsReadonlyTestInterface
EmptyAttribute()); |
2218 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 2218 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
2219 return; | 2219 return; |
2220 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 2220 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
2221 if (!wrapper.IsEmpty()) { | 2221 if (!wrapper.IsEmpty()) { |
2222 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon
lyTestInterfaceEmptyAttribute", wrapper); | 2222 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon
lyTestInterfaceEmptyAttribute", wrapper); |
2223 v8SetReturnValue(info, wrapper); | 2223 v8SetReturnValue(info, wrapper); |
2224 } | 2224 } |
2225 } | 2225 } |
2226 | 2226 |
2227 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2227 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2228 { | 2228 { |
2229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2230 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetter(info); | 2230 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetter(info); |
2231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2232 } | 2232 } |
2233 | 2233 |
2234 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2234 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2235 { | 2235 { |
2236 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2236 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2237 RefPtr<TestInterfaceEmpty> result = imp->perWorldBindingsReadonlyTestInterfa
ceEmptyAttribute(); | 2237 RefPtr<TestInterfaceEmpty> result(imp->perWorldBindingsReadonlyTestInterface
EmptyAttribute()); |
2238 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) | 2238 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) |
2239 return; | 2239 return; |
2240 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 2240 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
2241 if (!wrapper.IsEmpty()) { | 2241 if (!wrapper.IsEmpty()) { |
2242 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon
lyTestInterfaceEmptyAttribute", wrapper); | 2242 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon
lyTestInterfaceEmptyAttribute", wrapper); |
2243 v8SetReturnValue(info, wrapper); | 2243 v8SetReturnValue(info, wrapper); |
2244 } | 2244 } |
2245 } | 2245 } |
2246 | 2246 |
2247 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 2247 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2517 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 2517 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
2518 { | 2518 { |
2519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2520 TestObjectPythonV8Internal::locationAttributeGetter(info); | 2520 TestObjectPythonV8Internal::locationAttributeGetter(info); |
2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2522 } | 2522 } |
2523 | 2523 |
2524 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) | 2524 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) |
2525 { | 2525 { |
2526 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2526 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
2527 TestNode* imp = proxyImp->location(); | 2527 TestNode* imp = WTF::getPtr(proxyImp->location()); |
2528 if (!imp) | 2528 if (!imp) |
2529 return; | 2529 return; |
2530 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2530 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2531 imp->setHref(cppValue); | 2531 imp->setHref(cppValue); |
2532 } | 2532 } |
2533 | 2533 |
2534 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2534 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2535 { | 2535 { |
2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2537 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); | 2537 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); |
2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2539 } | 2539 } |
2540 | 2540 |
2541 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 2541 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
2542 { | 2542 { |
2543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2544 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithException()), imp); | 2544 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithException()), imp); |
2545 } | 2545 } |
2546 | 2546 |
2547 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2547 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
2548 { | 2548 { |
2549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2550 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); | 2550 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); |
2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2552 } | 2552 } |
2553 | 2553 |
2554 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 2554 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
2555 { | 2555 { |
2556 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2556 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
2557 TestNode* imp = proxyImp->locationWithException(); | 2557 TestNode* imp = WTF::getPtr(proxyImp->locationWithException()); |
2558 if (!imp) | 2558 if (!imp) |
2559 return; | 2559 return; |
2560 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2560 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2561 imp->setHrefThrows(cppValue); | 2561 imp->setHrefThrows(cppValue); |
2562 } | 2562 } |
2563 | 2563 |
2564 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2564 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2565 { | 2565 { |
2566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2567 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); | 2567 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); |
2568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2569 } | 2569 } |
2570 | 2570 |
2571 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2571 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
2572 { | 2572 { |
2573 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2573 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2574 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithCallWith()), imp); | 2574 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithCallWith()), imp); |
2575 } | 2575 } |
2576 | 2576 |
2577 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2577 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2578 { | 2578 { |
2579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2580 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); | 2580 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); |
2581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2582 } | 2582 } |
2583 | 2583 |
2584 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 2584 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
2585 { | 2585 { |
2586 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2586 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
2587 TestNode* imp = proxyImp->locationWithCallWith(); | 2587 TestNode* imp = WTF::getPtr(proxyImp->locationWithCallWith()); |
2588 if (!imp) | 2588 if (!imp) |
2589 return; | 2589 return; |
2590 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2590 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2591 imp->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(i
nfo.GetIsolate()), cppValue); | 2591 imp->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(i
nfo.GetIsolate()), cppValue); |
2592 } | 2592 } |
2593 | 2593 |
2594 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2594 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2595 { | 2595 { |
2596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2597 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); | 2597 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); |
2598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2599 } | 2599 } |
2600 | 2600 |
2601 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2601 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2602 { | 2602 { |
2603 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2603 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2604 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithPerWorldBindings()),
imp); | 2604 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithPerWorldBindings()),
imp); |
2605 } | 2605 } |
2606 | 2606 |
2607 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2607 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2608 { | 2608 { |
2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2610 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); | 2610 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); |
2611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2612 } | 2612 } |
2613 | 2613 |
2614 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2614 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
2615 { | 2615 { |
2616 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2616 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
2617 TestNode* imp = proxyImp->locationWithPerWorldBindings(); | 2617 TestNode* imp = WTF::getPtr(proxyImp->locationWithPerWorldBindings()); |
2618 if (!imp) | 2618 if (!imp) |
2619 return; | 2619 return; |
2620 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2620 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2621 imp->setHref(cppValue); | 2621 imp->setHref(cppValue); |
2622 } | 2622 } |
2623 | 2623 |
2624 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2624 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2625 { | 2625 { |
2626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2627 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); | 2627 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); |
2628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2629 } | 2629 } |
2630 | 2630 |
2631 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 2631 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
2632 { | 2632 { |
2633 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2633 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
2634 v8SetReturnValueForMainWorld(info, WTF::getPtr(imp->locationWithPerWorldBind
ings())); | 2634 v8SetReturnValueForMainWorld(info, WTF::getPtr(imp->locationWithPerWorldBind
ings())); |
2635 } | 2635 } |
2636 | 2636 |
2637 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2637 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2638 { | 2638 { |
2639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2640 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); | 2640 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); |
2641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2642 } | 2642 } |
2643 | 2643 |
2644 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2644 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2645 { | 2645 { |
2646 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2646 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
2647 TestNode* imp = proxyImp->locationWithPerWorldBindings(); | 2647 TestNode* imp = WTF::getPtr(proxyImp->locationWithPerWorldBindings()); |
2648 if (!imp) | 2648 if (!imp) |
2649 return; | 2649 return; |
2650 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2650 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2651 imp->setHref(cppValue); | 2651 imp->setHref(cppValue); |
2652 } | 2652 } |
2653 | 2653 |
2654 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 2654 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
2655 { | 2655 { |
2656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2657 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa
inWorld(jsValue, info); | 2657 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa
inWorld(jsValue, info); |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3452 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3452 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
3453 { | 3453 { |
3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3455 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); | 3455 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); |
3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3457 } | 3457 } |
3458 | 3458 |
3459 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 3459 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
3460 { | 3460 { |
3461 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 3461 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
3462 TestNode* imp = proxyImp->locationReplaceable(); | 3462 TestNode* imp = WTF::getPtr(proxyImp->locationReplaceable()); |
3463 if (!imp) | 3463 if (!imp) |
3464 return; | 3464 return; |
3465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3466 imp->setHref(cppValue); | 3466 imp->setHref(cppValue); |
3467 } | 3467 } |
3468 | 3468 |
3469 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3469 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3470 { | 3470 { |
3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3472 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info
); | 3472 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info
); |
(...skipping 4249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7722 fromInternalPointer(object)->deref(); | 7722 fromInternalPointer(object)->deref(); |
7723 } | 7723 } |
7724 | 7724 |
7725 template<> | 7725 template<> |
7726 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 7726 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
7727 { | 7727 { |
7728 return toV8(impl, creationContext, isolate); | 7728 return toV8(impl, creationContext, isolate); |
7729 } | 7729 } |
7730 | 7730 |
7731 } // namespace WebCore | 7731 } // namespace WebCore |
OLD | NEW |