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 "V8TestSpecialOperations.h" | 8 #include "V8TestSpecialOperations.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 if (UNLIKELY(info.Length() < 1)) { | 49 if (UNLIKELY(info.Length() < 1)) { |
50 throwMinimumArityTypeErrorForMethod("namedItem", "TestSpecialOperations"
, 1, info.Length(), info.GetIsolate()); | 50 throwMinimumArityTypeErrorForMethod("namedItem", "TestSpecialOperations"
, 1, info.Length(), info.GetIsolate()); |
51 return; | 51 return; |
52 } | 52 } |
53 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder(
)); | 53 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder(
)); |
54 V8StringResource<> name; | 54 V8StringResource<> name; |
55 { | 55 { |
56 TOSTRING_VOID_INTERNAL(name, info[0]); | 56 TOSTRING_VOID_INTERNAL(name, info[0]); |
57 } | 57 } |
58 bool result0Enabled = false; | 58 bool result0Enabled = false; |
59 RefPtr<Node> result0; | 59 RefPtrWillBeRawPtr<Node> result0; |
60 bool result1Enabled = false; | 60 bool result1Enabled = false; |
61 RefPtrWillBeRawPtr<NodeList> result1; | 61 RefPtrWillBeRawPtr<NodeList> result1; |
62 impl->getItem(name, result0Enabled, result0, result1Enabled, result1); | 62 impl->getItem(name, result0Enabled, result0, result1Enabled, result1); |
63 if (result0Enabled) { | 63 if (result0Enabled) { |
64 v8SetReturnValue(info, result0.release()); | 64 v8SetReturnValue(info, result0.release()); |
65 return; | 65 return; |
66 } | 66 } |
67 if (result1Enabled) { | 67 if (result1Enabled) { |
68 v8SetReturnValue(info, result1.release()); | 68 v8SetReturnValue(info, result1.release()); |
69 return; | 69 return; |
70 } | 70 } |
71 v8SetReturnValueNull(info); | 71 v8SetReturnValueNull(info); |
72 } | 72 } |
73 | 73 |
74 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 74 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
75 { | 75 { |
76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
77 TestSpecialOperationsV8Internal::namedItemMethod(info); | 77 TestSpecialOperationsV8Internal::namedItemMethod(info); |
78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
79 } | 79 } |
80 | 80 |
81 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 81 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
82 { | 82 { |
83 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder(
)); | 83 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder(
)); |
84 AtomicString propertyName = toCoreAtomicString(name); | 84 AtomicString propertyName = toCoreAtomicString(name); |
85 bool result0Enabled = false; | 85 bool result0Enabled = false; |
86 RefPtr<Node> result0; | 86 RefPtrWillBeRawPtr<Node> result0; |
87 bool result1Enabled = false; | 87 bool result1Enabled = false; |
88 RefPtrWillBeRawPtr<NodeList> result1; | 88 RefPtrWillBeRawPtr<NodeList> result1; |
89 impl->getItem(propertyName, result0Enabled, result0, result1Enabled, result1
); | 89 impl->getItem(propertyName, result0Enabled, result0, result1Enabled, result1
); |
90 if (!result0Enabled && !result1Enabled) | 90 if (!result0Enabled && !result1Enabled) |
91 return; | 91 return; |
92 if (result0Enabled) { | 92 if (result0Enabled) { |
93 v8SetReturnValueFast(info, WTF::getPtr(result0.release()), impl); | 93 v8SetReturnValueFast(info, WTF::getPtr(result0.release()), impl); |
94 return; | 94 return; |
95 } | 95 } |
96 if (result1Enabled) { | 96 if (result1Enabled) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 fromInternalPointer(object)->deref(); | 246 fromInternalPointer(object)->deref(); |
247 } | 247 } |
248 | 248 |
249 template<> | 249 template<> |
250 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 250 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
251 { | 251 { |
252 return toV8(impl, creationContext, isolate); | 252 return toV8(impl, creationContext, isolate); |
253 } | 253 } |
254 | 254 |
255 } // namespace WebCore | 255 } // namespace WebCore |
OLD | NEW |