| 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 "V8TestSpecialOperationsOverrideBuiltins.h" | 8 #include "V8TestSpecialOperationsOverrideBuiltins.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 v8SetReturnValueString(info, result, info.GetIsolate()); | 52 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 53 } | 53 } |
| 54 | 54 |
| 55 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 55 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 56 { | 56 { |
| 57 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 57 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 58 TestSpecialOperationsOverrideBuiltinsV8Internal::namedPropertyGetter(name, i
nfo); | 58 TestSpecialOperationsOverrideBuiltinsV8Internal::namedPropertyGetter(name, i
nfo); |
| 59 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 59 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 60 } | 60 } |
| 61 | 61 |
| 62 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 62 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 63 { | 63 { |
| 64 TestSpecialOperationsOverrideBuiltins* impl = V8TestSpecialOperationsOverrid
eBuiltins::toNative(info.Holder()); | 64 TestSpecialOperationsOverrideBuiltins* impl = V8TestSpecialOperationsOverrid
eBuiltins::toNative(info.Holder()); |
| 65 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name)
; | 65 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name)
; |
| 66 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, jsVa
lue); | 66 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); |
| 67 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); | 67 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); |
| 68 if (!result) | 68 if (!result) |
| 69 return; | 69 return; |
| 70 v8SetReturnValue(info, jsValue); | 70 v8SetReturnValue(info, v8Value); |
| 71 } | 71 } |
| 72 | 72 |
| 73 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 73 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 74 { | 74 { |
| 75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 76 TestSpecialOperationsOverrideBuiltinsV8Internal::namedPropertySetter(name, j
sValue, info); | 76 TestSpecialOperationsOverrideBuiltinsV8Internal::namedPropertySetter(name, v
8Value, info); |
| 77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 78 } | 78 } |
| 79 | 79 |
| 80 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) | 80 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) |
| 81 { | 81 { |
| 82 TestSpecialOperationsOverrideBuiltins* impl = V8TestSpecialOperationsOverrid
eBuiltins::toNative(info.Holder()); | 82 TestSpecialOperationsOverrideBuiltins* impl = V8TestSpecialOperationsOverrid
eBuiltins::toNative(info.Holder()); |
| 83 AtomicString propertyName = toCoreAtomicString(name); | 83 AtomicString propertyName = toCoreAtomicString(name); |
| 84 v8::String::Utf8Value namedProperty(name); | 84 v8::String::Utf8Value namedProperty(name); |
| 85 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestSpecialOperationsOverrideBuiltins", info.Holder(), info.GetIsolate()); | 85 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestSpecialOperationsOverrideBuiltins", info.Holder(), info.GetIsolate()); |
| 86 bool result = impl->namedPropertyQuery(propertyName, exceptionState); | 86 bool result = impl->namedPropertyQuery(propertyName, exceptionState); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 if (!result.IsEmpty()) | 147 if (!result.IsEmpty()) |
| 148 return result; | 148 return result; |
| 149 | 149 |
| 150 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 150 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
| 151 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 151 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
| 152 configureV8TestSpecialOperationsOverrideBuiltinsTemplate(result, isolate); | 152 configureV8TestSpecialOperationsOverrideBuiltinsTemplate(result, isolate); |
| 153 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 153 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
| 154 return result; | 154 return result; |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool V8TestSpecialOperationsOverrideBuiltins::hasInstance(v8::Handle<v8::Value>
jsValue, v8::Isolate* isolate) | 157 bool V8TestSpecialOperationsOverrideBuiltins::hasInstance(v8::Handle<v8::Value>
v8Value, v8::Isolate* isolate) |
| 158 { | 158 { |
| 159 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 159 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 160 } | 160 } |
| 161 | 161 |
| 162 v8::Handle<v8::Object> V8TestSpecialOperationsOverrideBuiltins::findInstanceInPr
ototypeChain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 162 v8::Handle<v8::Object> V8TestSpecialOperationsOverrideBuiltins::findInstanceInPr
ototypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 163 { | 163 { |
| 164 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 164 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 165 } | 165 } |
| 166 | 166 |
| 167 TestSpecialOperationsOverrideBuiltins* V8TestSpecialOperationsOverrideBuiltins::
toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 167 TestSpecialOperationsOverrideBuiltins* V8TestSpecialOperationsOverrideBuiltins::
toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 168 { | 168 { |
| 169 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 169 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 170 } | 170 } |
| 171 | 171 |
| 172 v8::Handle<v8::Object> V8TestSpecialOperationsOverrideBuiltins::createWrapper(Pa
ssRefPtr<TestSpecialOperationsOverrideBuiltins> impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) | 172 v8::Handle<v8::Object> V8TestSpecialOperationsOverrideBuiltins::createWrapper(Pa
ssRefPtr<TestSpecialOperationsOverrideBuiltins> impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) |
| 173 { | 173 { |
| 174 ASSERT(impl); | 174 ASSERT(impl); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 194 fromInternalPointer(object)->deref(); | 194 fromInternalPointer(object)->deref(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 template<> | 197 template<> |
| 198 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsOverrideBuiltins* impl,
v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 198 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsOverrideBuiltins* impl,
v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 199 { | 199 { |
| 200 return toV8(impl, creationContext, isolate); | 200 return toV8(impl, creationContext, isolate); |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace WebCore | 203 } // namespace WebCore |
| OLD | NEW |