| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 104 TestInterface5ImplementationV8Internal::doubleAttributeAttributeGetter(info)
; | 104 TestInterface5ImplementationV8Internal::doubleAttributeAttributeGetter(info)
; |
| 105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 106 } | 106 } |
| 107 | 107 |
| 108 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 108 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 109 { | 109 { |
| 110 v8::Local<v8::Object> holder = info.Holder(); | 110 v8::Local<v8::Object> holder = info.Holder(); |
| 111 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestInterface5", holder, info.GetIsolate()); | 111 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestInterface5", holder, info.GetIsolate()); |
| 112 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 112 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 113 double cppValue = toRestrictedDouble(v8Value, exceptionState); | 113 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt
ate); |
| 114 if (exceptionState.throwIfNeeded()) | 114 if (exceptionState.throwIfNeeded()) |
| 115 return; | 115 return; |
| 116 impl->setDoubleAttribute(cppValue); | 116 impl->setDoubleAttribute(cppValue); |
| 117 } | 117 } |
| 118 | 118 |
| 119 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 119 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 120 { | 120 { |
| 121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 122 TestInterface5ImplementationV8Internal::doubleAttributeAttributeSetter(v8Val
ue, info); | 122 TestInterface5ImplementationV8Internal::doubleAttributeAttributeSetter(v8Val
ue, info); |
| 123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 136 TestInterface5ImplementationV8Internal::floatAttributeAttributeGetter(info); | 136 TestInterface5ImplementationV8Internal::floatAttributeAttributeGetter(info); |
| 137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 138 } | 138 } |
| 139 | 139 |
| 140 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 140 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 141 { | 141 { |
| 142 v8::Local<v8::Object> holder = info.Holder(); | 142 v8::Local<v8::Object> holder = info.Holder(); |
| 143 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestInterface5", holder, info.GetIsolate()); | 143 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestInterface5", holder, info.GetIsolate()); |
| 144 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 144 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 145 float cppValue = toRestrictedFloat(v8Value, exceptionState); | 145 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); |
| 146 if (exceptionState.throwIfNeeded()) | 146 if (exceptionState.throwIfNeeded()) |
| 147 return; | 147 return; |
| 148 impl->setFloatAttribute(cppValue); | 148 impl->setFloatAttribute(cppValue); |
| 149 } | 149 } |
| 150 | 150 |
| 151 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 151 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 152 { | 152 { |
| 153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 154 TestInterface5ImplementationV8Internal::floatAttributeAttributeSetter(v8Valu
e, info); | 154 TestInterface5ImplementationV8Internal::floatAttributeAttributeSetter(v8Valu
e, info); |
| 155 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 155 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 167 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 167 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 168 TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
Getter(info); | 168 TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
Getter(info); |
| 169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 170 } | 170 } |
| 171 | 171 |
| 172 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 172 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 173 { | 173 { |
| 174 v8::Local<v8::Object> holder = info.Holder(); | 174 v8::Local<v8::Object> holder = info.Holder(); |
| 175 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestInterface5", holder, info.GetIsolate()); | 175 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestInterface5", holder, info.GetIsolate()); |
| 176 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 176 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 177 double cppValue = toDouble(v8Value, exceptionState); | 177 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); |
| 178 if (exceptionState.throwIfNeeded()) | 178 if (exceptionState.throwIfNeeded()) |
| 179 return; | 179 return; |
| 180 impl->setUnrestrictedDoubleAttribute(cppValue); | 180 impl->setUnrestrictedDoubleAttribute(cppValue); |
| 181 } | 181 } |
| 182 | 182 |
| 183 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 183 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 184 { | 184 { |
| 185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 186 TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
Setter(v8Value, info); | 186 TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
Setter(v8Value, info); |
| 187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 200 TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeG
etter(info); | 200 TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeG
etter(info); |
| 201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 202 } | 202 } |
| 203 | 203 |
| 204 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 204 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 205 { | 205 { |
| 206 v8::Local<v8::Object> holder = info.Holder(); | 206 v8::Local<v8::Object> holder = info.Holder(); |
| 207 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestInterface5", holder, info.GetIsolate()); | 207 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestInterface5", holder, info.GetIsolate()); |
| 208 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 208 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 209 float cppValue = toFloat(v8Value, exceptionState); | 209 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); |
| 210 if (exceptionState.throwIfNeeded()) | 210 if (exceptionState.throwIfNeeded()) |
| 211 return; | 211 return; |
| 212 impl->setUnrestrictedFloatAttribute(cppValue); | 212 impl->setUnrestrictedFloatAttribute(cppValue); |
| 213 } | 213 } |
| 214 | 214 |
| 215 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 215 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 216 { | 216 { |
| 217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 218 TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeS
etter(v8Value, info); | 218 TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeS
etter(v8Value, info); |
| 219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 38 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(v8Value, exceptionState); | 268 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
| 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::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 274 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::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(v8Value, exceptionState); | 300 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
| 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::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 306 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::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(v8Value, exceptionState); | 332 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
| 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::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 338 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::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 29 matching lines...) Expand all Loading... |
| 372 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArgFloatArg", "TestInterface5", info.Holder(), info.GetIsolate()); | 372 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArgFloatArg", "TestInterface5", info.Holder(), info.GetIsolate()); |
| 373 if (UNLIKELY(info.Length() < 2)) { | 373 if (UNLIKELY(info.Length() < 2)) { |
| 374 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 374 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 375 exceptionState.throwIfNeeded(); | 375 exceptionState.throwIfNeeded(); |
| 376 return; | 376 return; |
| 377 } | 377 } |
| 378 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 378 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 379 double doubleArg; | 379 double doubleArg; |
| 380 float floatArg; | 380 float floatArg; |
| 381 { | 381 { |
| 382 doubleArg = toRestrictedDouble(info[0], exceptionState); | 382 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat
e); |
| 383 if (exceptionState.throwIfNeeded()) | 383 if (exceptionState.throwIfNeeded()) |
| 384 return; | 384 return; |
| 385 floatArg = toRestrictedFloat(info[1], exceptionState); | 385 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState)
; |
| 386 if (exceptionState.throwIfNeeded()) | 386 if (exceptionState.throwIfNeeded()) |
| 387 return; | 387 return; |
| 388 } | 388 } |
| 389 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); | 389 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |
| 390 } | 390 } |
| 391 | 391 |
| 392 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 392 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 393 { | 393 { |
| 394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 395 TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(in
fo); | 395 TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(in
fo); |
| 396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 397 } | 397 } |
| 398 | 398 |
| 399 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 399 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 400 { | 400 { |
| 401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface5", info.Holder(), info
.GetIsolate()); | 401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface5", info.Holder(), info
.GetIsolate()); |
| 402 if (UNLIKELY(info.Length() < 2)) { | 402 if (UNLIKELY(info.Length() < 2)) { |
| 403 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 403 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 404 exceptionState.throwIfNeeded(); | 404 exceptionState.throwIfNeeded(); |
| 405 return; | 405 return; |
| 406 } | 406 } |
| 407 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 407 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 408 double unrestrictedDoubleArg; | 408 double unrestrictedDoubleArg; |
| 409 float unrestrictedFloatArg; | 409 float unrestrictedFloatArg; |
| 410 { | 410 { |
| 411 unrestrictedDoubleArg = toDouble(info[0], exceptionState); | 411 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionSt
ate); |
| 412 if (exceptionState.throwIfNeeded()) | 412 if (exceptionState.throwIfNeeded()) |
| 413 return; | 413 return; |
| 414 unrestrictedFloatArg = toFloat(info[1], exceptionState); | 414 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionStat
e); |
| 415 if (exceptionState.throwIfNeeded()) | 415 if (exceptionState.throwIfNeeded()) |
| 416 return; | 416 return; |
| 417 } | 417 } |
| 418 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); | 418 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); |
| 419 } | 419 } |
| 420 | 420 |
| 421 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 421 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 422 { | 422 { |
| 423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 424 TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnres
trictedFloatArgMethod(info); | 424 TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnres
trictedFloatArgMethod(info); |
| (...skipping 619 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 |