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 // clang-format off | 7 // clang-format off |
8 | 8 |
9 #include "VoidCallbackFunctionModules.h" | 9 #include "VoidCallbackFunctionModules.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 : m_callback(isolate, callback) | 21 : m_callback(isolate, callback) |
22 { | 22 { |
23 DCHECK(!m_callback.isEmpty()); | 23 DCHECK(!m_callback.isEmpty()); |
24 m_callback.setPhantom(); | 24 m_callback.setPhantom(); |
25 } | 25 } |
26 | 26 |
27 DEFINE_TRACE(VoidCallbackFunctionModules) | 27 DEFINE_TRACE(VoidCallbackFunctionModules) |
28 { | 28 { |
29 } | 29 } |
30 | 30 |
| 31 DEFINE_TRACE_WRAPPERS(VoidCallbackFunctionModules) |
| 32 { |
| 33 visitor->traceWrappers(&m_callback.cast<v8::Object>()); |
| 34 } |
| 35 |
31 bool VoidCallbackFunctionModules::call(ScriptState* scriptState, ScriptWrappable
* scriptWrappable) | 36 bool VoidCallbackFunctionModules::call(ScriptState* scriptState, ScriptWrappable
* scriptWrappable) |
32 { | 37 { |
33 if (!scriptState->contextIsValid()) | 38 if (!scriptState->contextIsValid()) |
34 return false; | 39 return false; |
35 | 40 |
36 ExecutionContext* context = scriptState->getExecutionContext(); | 41 ExecutionContext* context = scriptState->getExecutionContext(); |
37 DCHECK(context); | 42 DCHECK(context); |
38 if (context->activeDOMObjectsAreSuspended() || context->activeDOMObjectsAreS
topped()) | 43 if (context->activeDOMObjectsAreSuspended() || context->activeDOMObjectsAreS
topped()) |
39 return false; | 44 return false; |
40 | 45 |
(...skipping 14 matching lines...) Expand all Loading... |
55 exceptionCatcher.SetVerbose(true); | 60 exceptionCatcher.SetVerbose(true); |
56 | 61 |
57 if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate())
, scriptState->getExecutionContext(), thisValue, 0, argv, scriptState->isolate()
).ToLocal(&v8ReturnValue)) | 62 if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate())
, scriptState->getExecutionContext(), thisValue, 0, argv, scriptState->isolate()
).ToLocal(&v8ReturnValue)) |
58 { | 63 { |
59 return true; | 64 return true; |
60 } | 65 } |
61 return false; | 66 return false; |
62 } | 67 } |
63 | 68 |
64 } // namespace blink | 69 } // namespace blink |
OLD | NEW |