| OLD | NEW |
| 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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 13030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13041 v8::Local<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Local<v8::V
alue> v8Value, v8::Isolate* isolate) | 13041 v8::Local<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Local<v8::V
alue> v8Value, v8::Isolate* isolate) |
| 13042 { | 13042 { |
| 13043 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 13043 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 13044 } | 13044 } |
| 13045 | 13045 |
| 13046 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8
::Value> value) | 13046 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8
::Value> value) |
| 13047 { | 13047 { |
| 13048 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 13048 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 13049 } | 13049 } |
| 13050 | 13050 |
| 13051 void V8TestObject::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Ob
ject> prototypeObject) | 13051 void V8TestObject::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Ob
ject> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
| 13052 { | 13052 { |
| 13053 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext()); | 13053 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext()); |
| 13054 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 13054 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 13055 v8::Local<v8::Object> unscopeables; | 13055 v8::Local<v8::Object> unscopeables; |
| 13056 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb
ol))) | 13056 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb
ol))) |
| 13057 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca
lChecked().As<v8::Object>(); | 13057 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca
lChecked().As<v8::Object>(); |
| 13058 else | 13058 else |
| 13059 unscopeables = v8::Object::New(isolate); | 13059 unscopeables = v8::Object::New(isolate); |
| 13060 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope
ableLongAttribute"), v8::True(isolate)).FromJust(); | 13060 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope
ableLongAttribute"), v8::True(isolate)).FromJust(); |
| 13061 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 13061 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13597 ScriptState::Scope scope(scriptState); | 13597 ScriptState::Scope scope(scriptState); |
| 13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13598 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 13599 if (holder.IsEmpty()) | 13599 if (holder.IsEmpty()) |
| 13600 return false; | 13600 return false; |
| 13601 | 13601 |
| 13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13602 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13603 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 13604 } | 13604 } |
| 13605 | 13605 |
| 13606 } // namespace blink | 13606 } // namespace blink |
| OLD | NEW |