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