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 // clang-format off | 7 // clang-format off |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 V8StringResource<> name; | 67 V8StringResource<> name; |
68 name = info[0]; | 68 name = info[0]; |
69 if (!name.prepare()) | 69 if (!name.prepare()) |
70 return; | 70 return; |
71 | 71 |
72 NodeOrNodeList result; | 72 NodeOrNodeList result; |
73 impl->getItem(name, result); | 73 impl->getItem(name, result); |
74 v8SetReturnValue(info, result); | 74 v8SetReturnValue(info, result); |
75 } | 75 } |
76 | 76 |
77 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 77 void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
78 { | 78 { |
79 TestSpecialOperationsV8Internal::namedItemMethod(info); | 79 TestSpecialOperationsV8Internal::namedItemMethod(info); |
80 } | 80 } |
81 | 81 |
82 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall
backInfo<v8::Value>& info) | 82 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall
backInfo<v8::Value>& info) |
83 { | 83 { |
84 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder())
; | 84 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder())
; |
85 NodeOrNodeList result; | 85 NodeOrNodeList result; |
86 impl->getItem(name, result); | 86 impl->getItem(name, result); |
87 if (result.isNull()) | 87 if (result.isNull()) |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 { | 217 { |
218 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 218 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
219 } | 219 } |
220 | 220 |
221 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) | 221 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) |
222 { | 222 { |
223 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 223 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
224 } | 224 } |
225 | 225 |
226 } // namespace blink | 226 } // namespace blink |
OLD | NEW |