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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp

Issue 214143003: Bindings: use |holder| local variable in attribute getters and setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceCheckSecurity.h" 8 #include "V8TestInterfaceCheckSecurity.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 27 matching lines...) Expand all
38 38
39 namespace WebCore { 39 namespace WebCore {
40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installPerContextEnabl edMethods, 0, WrapperTypeObjectPrototype, false }; 40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installPerContextEnabl edMethods, 0, WrapperTypeObjectPrototype, false };
41 41
42 namespace TestInterfaceCheckSecurityV8Internal { 42 namespace TestInterfaceCheckSecurityV8Internal {
43 43
44 template <typename T> void V8_USE(T) { } 44 template <typename T> void V8_USE(T) { }
45 45
46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
47 { 47 {
48 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 48 v8::Handle<v8::Object> holder = info.Holder();
49 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
49 v8SetReturnValueInt(info, impl->longAttribute()); 50 v8SetReturnValueInt(info, impl->longAttribute());
50 } 51 }
51 52
52 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 53 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
53 { 54 {
54 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 55 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
55 TestInterfaceCheckSecurityV8Internal::longAttributeAttributeGetter(info); 56 TestInterfaceCheckSecurityV8Internal::longAttributeAttributeGetter(info);
56 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 57 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
57 } 58 }
58 59
59 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 60 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
60 { 61 {
61 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 62 v8::Handle<v8::Object> holder = info.Holder();
63 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
62 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); 64 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute());
63 } 65 }
64 66
65 static void doNotCheckSecurityLongAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 67 static void doNotCheckSecurityLongAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
66 { 68 {
67 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 69 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
68 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info); 70 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info);
69 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 71 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
70 } 72 }
71 73
72 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 74 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
73 { 75 {
74 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate ()); 76 v8::Isolate* isolate = info.GetIsolate();
75 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 77 v8::Handle<v8::Object> holder = info.Holder();
78 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, isolate);
79 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
76 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 80 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
77 impl->setDoNotCheckSecurityLongAttribute(cppValue); 81 impl->setDoNotCheckSecurityLongAttribute(cppValue);
78 } 82 }
79 83
80 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 84 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
81 { 85 {
82 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
83 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(jsValue, info); 87 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(jsValue, info);
84 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
85 } 89 }
86 90
87 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 91 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
88 { 92 {
89 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 93 v8::Handle<v8::Object> holder = info.Holder();
94 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
90 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute()); 95 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute());
91 } 96 }
92 97
93 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 98 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
94 { 99 {
95 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
96 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReadonlyLongAttribut eAttributeGetter(info); 101 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReadonlyLongAttribut eAttributeGetter(info);
97 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
98 } 103 }
99 104
100 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 105 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
101 { 106 {
102 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 107 v8::Handle<v8::Object> holder = info.Holder();
108 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
103 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); 109 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute());
104 } 110 }
105 111
106 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 112 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
107 { 113 {
108 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
109 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info); 115 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info);
110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
111 } 117 }
112 118
113 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 119 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
114 { 120 {
115 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", info.Holder(), info.Ge tIsolate()); 121 v8::Isolate* isolate = info.GetIsolate();
116 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 122 v8::Handle<v8::Object> holder = info.Holder();
123 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, isolate);
124 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
117 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 125 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
118 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); 126 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
119 } 127 }
120 128
121 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v oid>& info) 129 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v oid>& info)
122 { 130 {
123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
124 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(jsValue, info); 132 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(jsValue, info);
125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
126 } 134 }
127 135
128 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 136 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
129 { 137 {
130 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 138 v8::Handle<v8::Object> holder = info.Holder();
139 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
131 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt ribute()); 140 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt ribute());
132 } 141 }
133 142
134 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 143 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
135 { 144 {
136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
137 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL ongAttributeAttributeGetter(info); 146 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL ongAttributeAttributeGetter(info);
138 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
139 } 148 }
140 149
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 fromInternalPointer(object)->deref(); 620 fromInternalPointer(object)->deref();
612 } 621 }
613 622
614 template<> 623 template<>
615 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 624 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
616 { 625 {
617 return toV8(impl, creationContext, isolate); 626 return toV8(impl, creationContext, isolate);
618 } 627 }
619 628
620 } // namespace WebCore 629 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698