| 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 "V8TestIntegerIndexed.h" | 7 #include "V8TestIntegerIndexed.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 { | 59 { |
| 60 TestIntegerIndexedV8Internal::lengthAttributeGetter(info); | 60 TestIntegerIndexedV8Internal::lengthAttributeGetter(info); |
| 61 } | 61 } |
| 62 | 62 |
| 63 static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functi
onCallbackInfo<v8::Value>& info) | 63 static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 64 { | 64 { |
| 65 v8::Local<v8::Object> holder = info.Holder(); | 65 v8::Local<v8::Object> holder = info.Holder(); |
| 66 ExceptionState exceptionState(ExceptionState::SetterContext, "length", "Test
IntegerIndexed", holder, info.GetIsolate()); | 66 ExceptionState exceptionState(ExceptionState::SetterContext, "length", "Test
IntegerIndexed", holder, info.GetIsolate()); |
| 67 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); | 67 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); |
| 68 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 68 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 69 if (exceptionState.throwIfNeeded()) | 69 if (exceptionState.hadException()) |
| 70 return; | 70 return; |
| 71 impl->setLength(cppValue); | 71 impl->setLength(cppValue); |
| 72 } | 72 } |
| 73 | 73 |
| 74 static void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 74 static void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 75 { | 75 { |
| 76 v8::Local<v8::Value> v8Value = info[0]; | 76 v8::Local<v8::Value> v8Value = info[0]; |
| 77 TestIntegerIndexedV8Internal::lengthAttributeSetter(v8Value, info); | 77 TestIntegerIndexedV8Internal::lengthAttributeSetter(v8Value, info); |
| 78 } | 78 } |
| 79 | 79 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 { | 197 { |
| 198 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 198 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 199 } | 199 } |
| 200 | 200 |
| 201 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola
te, v8::Local<v8::Value> value) | 201 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola
te, v8::Local<v8::Value> value) |
| 202 { | 202 { |
| 203 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 203 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace blink | 206 } // namespace blink |
| OLD | NEW |