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. | 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 11701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11712 v8::Local<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Local<v8::V
alue> v8Value, v8::Isolate* isolate) { | 11712 v8::Local<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Local<v8::V
alue> v8Value, v8::Isolate* isolate) { |
11713 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 11713 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
11714 } | 11714 } |
11715 | 11715 |
11716 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8
::Value> value) { | 11716 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8
::Value> value) { |
11717 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 11717 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
11718 } | 11718 } |
11719 | 11719 |
11720 void V8TestObject::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> con
text, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::L
ocal<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTem
plate) { | 11720 void V8TestObject::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> con
text, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::L
ocal<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTem
plate) { |
11721 v8::Isolate* isolate = context->GetIsolate(); | 11721 v8::Isolate* isolate = context->GetIsolate(); |
| 11722 |
11722 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 11723 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
11723 v8::Local<v8::Object> unscopables; | 11724 v8::Local<v8::Object> unscopables; |
11724 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) | 11725 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) |
11725 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); | 11726 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); |
11726 else | 11727 else |
11727 unscopables = v8::Object::New(isolate); | 11728 unscopables = v8::Object::New(isolate); |
11728 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableLo
ngAttribute"), v8::True(isolate)).FromJust(); | 11729 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableLo
ngAttribute"), v8::True(isolate)).FromJust(); |
11729 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableOr
iginTrialEnabledLongAttribute"), v8::True(isolate)).FromJust(); | 11730 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableOr
iginTrialEnabledLongAttribute"), v8::True(isolate)).FromJust(); |
11730 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 11731 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
11731 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); | 11732 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); |
11732 } | 11733 } |
11733 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 11734 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
11734 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); | 11735 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); |
11735 } | 11736 } |
11736 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 11737 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
11737 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 11738 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
11738 } | 11739 } |
11739 | 11740 |
11740 } // namespace blink | 11741 } // namespace blink |
OLD | NEW |