| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 259 TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeGette
r(info); | 259 TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeGette
r(info); |
| 260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 261 } | 261 } |
| 262 | 262 |
| 263 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 263 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 264 { | 264 { |
| 265 v8::Local<v8::Object> holder = info.Holder(); | 265 v8::Local<v8::Object> holder = info.Holder(); |
| 266 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); | 266 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); |
| 267 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 267 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 268 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); | 268 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 269 if (exceptionState.throwIfNeeded()) | 269 if (exceptionState.throwIfNeeded()) |
| 270 return; | 270 return; |
| 271 impl->setAlwaysExposedAttribute(cppValue); | 271 impl->setAlwaysExposedAttribute(cppValue); |
| 272 } | 272 } |
| 273 | 273 |
| 274 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 274 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 275 { | 275 { |
| 276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 277 TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeSette
r(v8Value, info); | 277 TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeSette
r(v8Value, info); |
| 278 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 278 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 291 TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeGette
r(info); | 291 TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeGette
r(info); |
| 292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 293 } | 293 } |
| 294 | 294 |
| 295 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 295 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 296 { | 296 { |
| 297 v8::Local<v8::Object> holder = info.Holder(); | 297 v8::Local<v8::Object> holder = info.Holder(); |
| 298 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); | 298 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); |
| 299 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 299 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 300 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); | 300 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 301 if (exceptionState.throwIfNeeded()) | 301 if (exceptionState.throwIfNeeded()) |
| 302 return; | 302 return; |
| 303 impl->setWorkerExposedAttribute(cppValue); | 303 impl->setWorkerExposedAttribute(cppValue); |
| 304 } | 304 } |
| 305 | 305 |
| 306 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 306 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 307 { | 307 { |
| 308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 309 TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeSette
r(v8Value, info); | 309 TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeSette
r(v8Value, info); |
| 310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 323 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeGette
r(info); | 323 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeGette
r(info); |
| 324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 325 } | 325 } |
| 326 | 326 |
| 327 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 327 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 328 { | 328 { |
| 329 v8::Local<v8::Object> holder = info.Holder(); | 329 v8::Local<v8::Object> holder = info.Holder(); |
| 330 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); | 330 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
ttribute", "TestInterface5", holder, info.GetIsolate()); |
| 331 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 331 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 332 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); | 332 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 333 if (exceptionState.throwIfNeeded()) | 333 if (exceptionState.throwIfNeeded()) |
| 334 return; | 334 return; |
| 335 impl->setWindowExposedAttribute(cppValue); | 335 impl->setWindowExposedAttribute(cppValue); |
| 336 } | 336 } |
| 337 | 337 |
| 338 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 338 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 339 { | 339 { |
| 340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 341 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
r(v8Value, info); | 341 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
r(v8Value, info); |
| 342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1044 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1047 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 1048 { | 1048 { |
| 1049 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1049 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 } // namespace blink | 1052 } // namespace blink |
| 1053 #endif // ENABLE(CONDITION) | 1053 #endif // ENABLE(CONDITION) |
| OLD | NEW |