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

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

Issue 214283002: Bindings: rename |jsValue| => |v8Value| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); 64 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute());
65 } 65 }
66 66
67 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)
68 { 68 {
69 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 69 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
70 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info); 70 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info);
71 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 71 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
72 } 72 }
73 73
74 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 74 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
75 { 75 {
76 v8::Handle<v8::Object> holder = info.Holder(); 76 v8::Handle<v8::Object> holder = info.Holder();
77 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate()); 77 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
78 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 78 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
79 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 79 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
80 impl->setDoNotCheckSecurityLongAttribute(cppValue); 80 impl->setDoNotCheckSecurityLongAttribute(cppValue);
81 } 81 }
82 82
83 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 83 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
84 { 84 {
85 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 85 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
86 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(jsValue, info); 86 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info);
87 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 87 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
88 } 88 }
89 89
90 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 90 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
91 { 91 {
92 v8::Handle<v8::Object> holder = info.Holder(); 92 v8::Handle<v8::Object> holder = info.Holder();
93 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 93 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
94 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute()); 94 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute());
95 } 95 }
96 96
(...skipping 11 matching lines...) Expand all
108 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); 108 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute());
109 } 109 }
110 110
111 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 111 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
112 { 112 {
113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
114 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info); 114 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info);
115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
116 } 116 }
117 117
118 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 118 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
119 { 119 {
120 v8::Handle<v8::Object> holder = info.Holder(); 120 v8::Handle<v8::Object> holder = info.Holder();
121 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e()); 121 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e());
122 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 122 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
123 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 123 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
124 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); 124 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
125 } 125 }
126 126
127 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v oid>& info) 127 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info)
128 { 128 {
129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
130 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(jsValue, info); 130 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info);
131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
132 } 132 }
133 133
134 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 134 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
135 { 135 {
136 v8::Handle<v8::Object> holder = info.Holder(); 136 v8::Handle<v8::Object> holder = info.Holder();
137 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 137 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
138 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt ribute()); 138 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt ribute());
139 } 139 }
140 140
141 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 141 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
142 { 142 {
143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
144 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL ongAttributeAttributeGetter(info); 144 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL ongAttributeAttributeGetter(info);
145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
146 } 146 }
147 147
148 static void TestInterfaceCheckSecurityReplaceableAttributeSetter(v8::Local<v8::S tring> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 148 static void TestInterfaceCheckSecurityReplaceableAttributeSetter(v8::Local<v8::S tring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
149 { 149 {
150 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder()); 150 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in fo.Holder());
151 v8::Isolate* isolate = info.GetIsolate(); 151 v8::Isolate* isolate = info.GetIsolate();
152 v8::String::Utf8Value attributeName(name); 152 v8::String::Utf8Value attributeName(name);
153 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), isolate); 153 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), isolate);
154 if (!BindingSecurity::shouldAllowAccessToFrame(isolate, impl->frame(), excep tionState)) { 154 if (!BindingSecurity::shouldAllowAccessToFrame(isolate, impl->frame(), excep tionState)) {
155 exceptionState.throwIfNeeded(); 155 exceptionState.throwIfNeeded();
156 return; 156 return;
157 } 157 }
158 info.This()->ForceSet(name, jsValue); 158 info.This()->ForceSet(name, v8Value);
159 } 159 }
160 160
161 static void TestInterfaceCheckSecurityReplaceableAttributeSetterCallback(v8::Loc al<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info) 161 static void TestInterfaceCheckSecurityReplaceableAttributeSetterCallback(v8::Loc al<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
162 { 162 {
163 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityReplaceableA ttributeSetter(name, jsValue, info); 163 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityReplaceableA ttributeSetter(name, v8Value, info);
164 } 164 }
165 165
166 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access Type type, v8::Local<v8::Value>) 166 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access Type type, v8::Local<v8::Value>)
167 { 167 {
168 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho st); 168 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho st);
169 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError); 169 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError);
170 } 170 }
171 171
172 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8 ::AccessType type, v8::Local<v8::Value>) 172 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8 ::AccessType type, v8::Local<v8::Value>)
173 { 173 {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 v8SetReturnValue(info, privateTemplate->GetFunction()); 492 v8SetReturnValue(info, privateTemplate->GetFunction());
493 } 493 }
494 494
495 static void doNotCheckSecurityUnforgeableVoidMethodOriginSafeMethodGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 495 static void doNotCheckSecurityUnforgeableVoidMethodOriginSafeMethodGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
496 { 496 {
497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
498 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityUnforgeableVoidMetho dOriginSafeMethodGetter(info); 498 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityUnforgeableVoidMetho dOriginSafeMethodGetter(info);
499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
500 } 500 }
501 501
502 static void TestInterfaceCheckSecurityOriginSafeMethodSetter(v8::Local<v8::Strin g> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 502 static void TestInterfaceCheckSecurityOriginSafeMethodSetter(v8::Local<v8::Strin g> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
503 { 503 {
504 v8::Isolate* isolate = info.GetIsolate(); 504 v8::Isolate* isolate = info.GetIsolate();
505 v8::Handle<v8::Object> holder = V8TestInterfaceCheckSecurity::findInstanceIn PrototypeChain(info.This(), isolate); 505 v8::Handle<v8::Object> holder = V8TestInterfaceCheckSecurity::findInstanceIn PrototypeChain(info.This(), isolate);
506 if (holder.IsEmpty()) 506 if (holder.IsEmpty())
507 return; 507 return;
508 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 508 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
509 v8::String::Utf8Value attributeName(name); 509 v8::String::Utf8Value attributeName(name);
510 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), isolate); 510 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), isolate);
511 if (!BindingSecurity::shouldAllowAccessToFrame(isolate, impl->frame(), excep tionState)) { 511 if (!BindingSecurity::shouldAllowAccessToFrame(isolate, impl->frame(), excep tionState)) {
512 exceptionState.throwIfNeeded(); 512 exceptionState.throwIfNeeded();
513 return; 513 return;
514 } 514 }
515 515
516 V8HiddenValue::setHiddenValue(isolate, info.This(), name, jsValue); 516 V8HiddenValue::setHiddenValue(isolate, info.This(), name, v8Value);
517 } 517 }
518 518
519 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info) 519 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
520 { 520 {
521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
522 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, jsValue, info); 522 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, v8Value, info);
523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
524 } 524 }
525 525
526 } // namespace TestInterfaceCheckSecurityV8Internal 526 } // namespace TestInterfaceCheckSecurityV8Internal
527 527
528 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu rityAttributes[] = { 528 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu rityAttributes[] = {
529 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 529 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
530 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 530 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
531 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 531 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
532 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 532 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 if (!result.IsEmpty()) 571 if (!result.IsEmpty())
572 return result; 572 return result;
573 573
574 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); 574 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
575 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode); 575 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
576 configureV8TestInterfaceCheckSecurityTemplate(result, isolate); 576 configureV8TestInterfaceCheckSecurityTemplate(result, isolate);
577 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ; 577 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
578 return result; 578 return result;
579 } 579 }
580 580
581 bool V8TestInterfaceCheckSecurity::hasInstance(v8::Handle<v8::Value> jsValue, v8 ::Isolate* isolate) 581 bool V8TestInterfaceCheckSecurity::hasInstance(v8::Handle<v8::Value> v8Value, v8 ::Isolate* isolate)
582 { 582 {
583 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e); 583 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
584 } 584 }
585 585
586 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChai n(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) 586 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChai n(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
587 { 587 {
588 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, jsValue); 588 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
589 } 589 }
590 590
591 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toNativeWithTypeCheck( v8::Isolate* isolate, v8::Handle<v8::Value> value) 591 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toNativeWithTypeCheck( v8::Isolate* isolate, v8::Handle<v8::Value> value)
592 { 592 {
593 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 593 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
594 } 594 }
595 595
596 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::createWrapper(PassRefPtr<Te stInterfaceCheckSecurity> impl, v8::Handle<v8::Object> creationContext, v8::Isol ate* isolate) 596 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::createWrapper(PassRefPtr<Te stInterfaceCheckSecurity> impl, v8::Handle<v8::Object> creationContext, v8::Isol ate* isolate)
597 { 597 {
598 ASSERT(impl); 598 ASSERT(impl);
(...skipping 19 matching lines...) Expand all
618 fromInternalPointer(object)->deref(); 618 fromInternalPointer(object)->deref();
619 } 619 }
620 620
621 template<> 621 template<>
622 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 622 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
623 { 623 {
624 return toV8(impl, creationContext, isolate); 624 return toV8(impl, creationContext, isolate);
625 } 625 }
626 626
627 } // namespace WebCore 627 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698