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 "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 39 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
40 { | 40 { |
41 if (UNLIKELY(info.Length() < 1)) { | 41 if (UNLIKELY(info.Length() < 1)) { |
42 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "namedItem", "TestSpecialOperations", 1, info.Length()), info.G
etIsolate()); | 42 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "namedItem", "TestSpecialOperations", 1, info.Length()), info.G
etIsolate()); |
43 return; | 43 return; |
44 } | 44 } |
45 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder())
; | 45 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder())
; |
46 V8StringResource<> name; | 46 V8StringResource<> name; |
47 { | 47 { |
48 TOSTRING_VOID_INTERNAL(name, info[0]); | 48 TONATIVE_CONVERT((name = info[0]).prepare(), return); |
49 } | 49 } |
50 NodeOrNodeList result; | 50 NodeOrNodeList result; |
51 impl->getItem(name, result); | 51 impl->getItem(name, result); |
52 v8SetReturnValue(info, result); | 52 v8SetReturnValue(info, result); |
53 } | 53 } |
54 | 54 |
55 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 55 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
56 { | 56 { |
57 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 57 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
58 TestSpecialOperationsV8Internal::namedItemMethod(info); | 58 TestSpecialOperationsV8Internal::namedItemMethod(info); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 { | 202 { |
203 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); | 203 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); |
204 } | 204 } |
205 | 205 |
206 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) | 206 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) |
207 { | 207 { |
208 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | 208 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); |
209 } | 209 } |
210 | 210 |
211 } // namespace blink | 211 } // namespace blink |
OLD | NEW |