| 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 "V8TestIntegerIndexedGlobal.h" | 7 #include "V8TestIntegerIndexedGlobal.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/GeneratedCodeHelper.h" | 10 #include "bindings/core/v8/GeneratedCodeHelper.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 76 { | 76 { |
| 77 v8::Local<v8::Value> v8Value = info[0]; | 77 v8::Local<v8::Value> v8Value = info[0]; |
| 78 TestIntegerIndexedGlobalV8Internal::lengthAttributeSetter(v8Value, info); | 78 TestIntegerIndexedGlobalV8Internal::lengthAttributeSetter(v8Value, info); |
| 79 } | 79 } |
| 80 | 80 |
| 81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 82 { | 82 { |
| 83 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(info.Hol
der()); |
| 84 |
| 83 if (UNLIKELY(info.Length() < 1)) { | 85 if (UNLIKELY(info.Length() < 1)) { |
| 84 V8ThrowException::throwException(info.GetIsolate(), V8ThrowException::cr
eateTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodD
ocument", "TestIntegerIndexedGlobal", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())))); | 86 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodDocument", "TestIntegerIndexedGlobal", ExceptionMessag
es::notEnoughArguments(1, info.Length()))); |
| 85 return; | 87 return; |
| 86 } | 88 } |
| 87 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(info.Hol
der()); | 89 |
| 88 Document* document; | 90 Document* document; |
| 89 { | 91 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
| 90 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 92 if (!document) { |
| 91 if (!document) { | 93 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodDocument", "TestIntegerIndexedGlobal", "parameter 1 is
not of type 'Document'.")); |
| 92 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("voidMethodDocument", "TestIntegerIndexedGlobal", "parameter
1 is not of type 'Document'.")); | 94 |
| 93 return; | 95 return; |
| 94 } | |
| 95 } | 96 } |
| 97 |
| 96 impl->voidMethodDocument(document); | 98 impl->voidMethodDocument(document); |
| 97 } | 99 } |
| 98 | 100 |
| 99 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 101 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 100 { | 102 { |
| 101 TestIntegerIndexedGlobalV8Internal::voidMethodDocumentMethod(info); | 103 TestIntegerIndexedGlobalV8Internal::voidMethodDocumentMethod(info); |
| 102 } | 104 } |
| 103 | 105 |
| 104 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) | 106 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) |
| 105 { | 107 { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 { | 219 { |
| 218 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 220 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 219 } | 221 } |
| 220 | 222 |
| 221 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) | 223 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) |
| 222 { | 224 { |
| 223 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 225 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
| 224 } | 226 } |
| 225 | 227 |
| 226 } // namespace blink | 228 } // namespace blink |
| OLD | NEW |