Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 { | 106 { |
| 107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 108 SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info); | 108 SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info); |
| 109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 110 } | 110 } |
| 111 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 111 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 112 | 112 |
| 113 #if ENABLE(Condition11) || ENABLE(Condition12) | 113 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 114 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 114 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 115 { | 115 { |
| 116 ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalSt aticAttr", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
|
sof
2013/12/03 16:04:29
Unused? Seems a pity to stack allocate these if no
Mike West
2013/12/04 08:42:19
Hrm. Yes, we used to have checks to create the obj
| |
| 116 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 117 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 117 SupportTestPartialInterface::setSupplementalStaticAttr(cppValue); | 118 SupportTestPartialInterface::setSupplementalStaticAttr(cppValue); |
| 118 } | 119 } |
| 119 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 120 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 120 | 121 |
| 121 #if ENABLE(Condition11) || ENABLE(Condition12) | 122 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 122 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 123 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 123 { | 124 { |
| 124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 125 SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValu e, info); | 126 SupportTestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValu e, info); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 { | 158 { |
| 158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 159 SupportTestInterfaceV8Internal::supplementalStr2AttributeGetter(info); | 160 SupportTestInterfaceV8Internal::supplementalStr2AttributeGetter(info); |
| 160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 161 } | 162 } |
| 162 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 163 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 163 | 164 |
| 164 #if ENABLE(Condition11) || ENABLE(Condition12) | 165 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 165 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 166 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 166 { | 167 { |
| 168 ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalSt r2", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
| 167 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 169 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 168 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 170 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 169 SupportTestPartialInterface::setSupplementalStr2(imp, cppValue); | 171 SupportTestPartialInterface::setSupplementalStr2(imp, cppValue); |
| 170 } | 172 } |
| 171 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 173 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 172 | 174 |
| 173 #if ENABLE(Condition11) || ENABLE(Condition12) | 175 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 174 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 176 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 175 { | 177 { |
| 176 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 178 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 { | 212 { |
| 211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 212 SupportTestInterfaceV8Internal::supplementalNodeAttributeGetter(info); | 214 SupportTestInterfaceV8Internal::supplementalNodeAttributeGetter(info); |
| 213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 215 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 214 } | 216 } |
| 215 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 217 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 216 | 218 |
| 217 #if ENABLE(Condition11) || ENABLE(Condition12) | 219 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 218 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 220 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 219 { | 221 { |
| 222 ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalNo de", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
| 220 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 223 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 221 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); | 224 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); |
| 222 SupportTestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)) ; | 225 SupportTestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)) ; |
| 223 } | 226 } |
| 224 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 227 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 225 | 228 |
| 226 #if ENABLE(Condition11) || ENABLE(Condition12) | 229 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 227 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 230 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 228 { | 231 { |
| 229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 245 { | 248 { |
| 246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 247 SupportTestInterfaceV8Internal::Node13AttributeGetter(info); | 250 SupportTestInterfaceV8Internal::Node13AttributeGetter(info); |
| 248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 249 } | 252 } |
| 250 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 253 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 251 | 254 |
| 252 #if ENABLE(Condition11) || ENABLE(Condition12) | 255 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 253 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) | 256 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) |
| 254 { | 257 { |
| 258 ExceptionState exceptionState(ExceptionState::SetterContext, "Node13", "Supp ortTestInterface", info.Holder(), info.GetIsolate()); | |
| 255 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 259 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 256 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); | 260 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); |
| 257 SupportTestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); | 261 SupportTestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); |
| 258 } | 262 } |
| 259 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 263 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 260 | 264 |
| 261 #if ENABLE(Condition11) || ENABLE(Condition12) | 265 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 262 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 266 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 263 { | 267 { |
| 264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 268 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 280 { | 284 { |
| 281 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 285 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 282 SupportTestInterfaceV8Internal::Node14AttributeGetter(info); | 286 SupportTestInterfaceV8Internal::Node14AttributeGetter(info); |
| 283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 287 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 284 } | 288 } |
| 285 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 289 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 286 | 290 |
| 287 #if ENABLE(Condition11) || ENABLE(Condition12) | 291 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 288 static void Node14AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) | 292 static void Node14AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) |
| 289 { | 293 { |
| 294 ExceptionState exceptionState(ExceptionState::SetterContext, "Node14", "Supp ortTestInterface", info.Holder(), info.GetIsolate()); | |
| 290 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 295 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 291 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); | 296 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); |
| 292 SupportTestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); | 297 SupportTestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); |
| 293 } | 298 } |
| 294 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 299 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 295 | 300 |
| 296 #if ENABLE(Condition11) || ENABLE(Condition12) | 301 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 297 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 302 static void Node14AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 298 { | 303 { |
| 299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 300 SupportTestInterfaceV8Internal::Node14AttributeSetter(jsValue, info); | 305 SupportTestInterfaceV8Internal::Node14AttributeSetter(jsValue, info); |
| 301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 302 } | 307 } |
| 303 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 308 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 304 | 309 |
| 305 #if ENABLE(Condition11) || ENABLE(Condition12) | 310 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 306 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 311 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 307 { | 312 { |
| 313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod1", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
| 308 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 314 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 309 SupportTestPartialInterface::supplementalMethod1(imp); | 315 SupportTestPartialInterface::supplementalMethod1(imp); |
| 310 } | 316 } |
| 311 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 317 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 312 | 318 |
| 313 #if ENABLE(Condition11) || ENABLE(Condition12) | 319 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 314 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 320 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 315 { | 321 { |
| 316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 322 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 317 SupportTestInterfaceV8Internal::supplementalMethod1Method(info); | 323 SupportTestInterfaceV8Internal::supplementalMethod1Method(info); |
| 318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 324 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 319 } | 325 } |
| 320 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 326 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 321 | 327 |
| 322 #if ENABLE(Condition11) || ENABLE(Condition12) | 328 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 323 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 329 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 324 { | 330 { |
| 331 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod2", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
| 325 if (UNLIKELY(info.Length() < 2)) { | 332 if (UNLIKELY(info.Length() < 2)) { |
| 326 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "SupportTestInterface", ExceptionMessages::notEnoughArguments(2, info.Length()) ), info.GetIsolate()); | 333 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "SupportTestInterface", ExceptionMessages::notEnoughArguments(2, info.Length()) ), info.GetIsolate()); |
| 327 return; | 334 return; |
| 328 } | 335 } |
| 329 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); | 336 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |
| 330 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 331 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); | 337 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
| 332 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.Ge tIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(info[1])) : 0); | 338 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.Ge tIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(info[1])) : 0); |
| 333 ExecutionContext* scriptContext = getExecutionContext(); | 339 ExecutionContext* scriptContext = getExecutionContext(); |
| 334 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, exceptionState); | 340 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, exceptionState); |
| 335 if (exceptionState.throwIfNeeded()) | 341 if (exceptionState.throwIfNeeded()) |
| 336 return; | 342 return; |
| 337 v8SetReturnValue(info, result.release()); | 343 v8SetReturnValue(info, result.release()); |
| 338 } | 344 } |
| 339 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 345 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 340 | 346 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 352 { | 358 { |
| 353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 354 V8SupportTestInterface::supplementalMethod3MethodCustom(info); | 360 V8SupportTestInterface::supplementalMethod3MethodCustom(info); |
| 355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 356 } | 362 } |
| 357 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 363 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 358 | 364 |
| 359 #if ENABLE(Condition11) || ENABLE(Condition12) | 365 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 360 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 366 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 361 { | 367 { |
| 368 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod4", "SupportTestInterface", info.Holder(), info.GetIsolate()); | |
| 362 SupportTestPartialInterface::supplementalMethod4(); | 369 SupportTestPartialInterface::supplementalMethod4(); |
| 363 } | 370 } |
| 364 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 371 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 365 | 372 |
| 366 #if ENABLE(Condition11) || ENABLE(Condition12) | 373 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 367 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 374 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 368 { | 375 { |
| 369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 370 SupportTestInterfaceV8Internal::supplementalMethod4Method(info); | 377 SupportTestInterfaceV8Internal::supplementalMethod4Method(info); |
| 371 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 512 fromInternalPointer(object)->deref(); | 519 fromInternalPointer(object)->deref(); |
| 513 } | 520 } |
| 514 | 521 |
| 515 template<> | 522 template<> |
| 516 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) | 523 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) |
| 517 { | 524 { |
| 518 return toV8(impl, creationContext, isolate); | 525 return toV8(impl, creationContext, isolate); |
| 519 } | 526 } |
| 520 | 527 |
| 521 } // namespace WebCore | 528 } // namespace WebCore |
| OLD | NEW |