| 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 "V8TestException.h" | 8 #include "V8TestException.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestException::domTemplate, V8TestException::derefObject, 0, 0, 0, V8TestExcep
tion::installPerContextEnabledMethods, 0, WrapperTypeExceptionPrototype, false }
; | 39 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestException::domTemplate, V8TestException::derefObject, 0, 0, 0, V8TestExcep
tion::installPerContextEnabledMethods, 0, WrapperTypeExceptionPrototype, false }
; |
| 40 | 40 |
| 41 namespace TestExceptionV8Internal { | 41 namespace TestExceptionV8Internal { |
| 42 | 42 |
| 43 template <typename T> void V8_USE(T) { } | 43 template <typename T> void V8_USE(T) { } |
| 44 | 44 |
| 45 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 45 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 46 { | 46 { |
| 47 TestException* impl = V8TestException::toNative(info.Holder()); | 47 v8::Handle<v8::Object> holder = info.Holder(); |
| 48 TestException* impl = V8TestException::toNative(holder); |
| 48 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute()); | 49 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute()); |
| 49 } | 50 } |
| 50 | 51 |
| 51 static void readonlyUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 52 static void readonlyUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 52 { | 53 { |
| 53 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 54 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 54 TestExceptionV8Internal::readonlyUnsignedShortAttributeAttributeGetter(info)
; | 55 TestExceptionV8Internal::readonlyUnsignedShortAttributeAttributeGetter(info)
; |
| 55 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 56 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 56 } | 57 } |
| 57 | 58 |
| 58 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 59 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 59 { | 60 { |
| 60 TestException* impl = V8TestException::toNative(info.Holder()); | 61 v8::Handle<v8::Object> holder = info.Holder(); |
| 62 TestException* impl = V8TestException::toNative(holder); |
| 61 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 63 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
| 62 } | 64 } |
| 63 | 65 |
| 64 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 66 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 65 { | 67 { |
| 66 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 68 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 67 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info); | 69 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info); |
| 68 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 70 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 69 } | 71 } |
| 70 | 72 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 fromInternalPointer(object)->deref(); | 166 fromInternalPointer(object)->deref(); |
| 165 } | 167 } |
| 166 | 168 |
| 167 template<> | 169 template<> |
| 168 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 170 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 169 { | 171 { |
| 170 return toV8(impl, creationContext, isolate); | 172 return toV8(impl, creationContext, isolate); |
| 171 } | 173 } |
| 172 | 174 |
| 173 } // namespace WebCore | 175 } // namespace WebCore |
| OLD | NEW |