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 "V8TestIntegerIndexedPrimaryGlobal.h" | 7 #include "V8TestIntegerIndexedPrimaryGlobal.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 TestIntegerIndexedPrimaryGlobalV8Internal::lengthAttributeGetter(info); | 60 TestIntegerIndexedPrimaryGlobalV8Internal::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
IntegerIndexedPrimaryGlobal", holder, info.GetIsolate()); | 66 ExceptionState exceptionState(ExceptionState::SetterContext, "length", "Test
IntegerIndexedPrimaryGlobal", holder, info.GetIsolate()); |
67 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::t
oImpl(holder); | 67 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::t
oImpl(holder); |
68 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio
nState); | 68 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio
nState); |
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 TestIntegerIndexedPrimaryGlobalV8Internal::lengthAttributeSetter(v8Value, in
fo); | 77 TestIntegerIndexedPrimaryGlobalV8Internal::lengthAttributeSetter(v8Value, in
fo); |
78 } | 78 } |
79 | 79 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 { | 208 { |
209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
210 } | 210 } |
211 | 211 |
212 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) | 212 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) |
213 { | 213 { |
214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
215 } | 215 } |
216 | 216 |
217 } // namespace blink | 217 } // namespace blink |
OLD | NEW |