| 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 #include "V8TestCallbackInterface.h" | 8 #include "V8TestCallbackInterface.h" |
| 9 | 9 |
| 10 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 10 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 if (m_scriptState->contextIsEmpty()) | 179 if (m_scriptState->contextIsEmpty()) |
| 180 return; | 180 return; |
| 181 | 181 |
| 182 ScriptState::Scope scope(m_scriptState.get()); | 182 ScriptState::Scope scope(m_scriptState.get()); |
| 183 v8::Handle<v8::Value> thisHandle = thisValue.v8Value(); | 183 v8::Handle<v8::Value> thisHandle = thisValue.v8Value(); |
| 184 if (thisHandle.IsEmpty()) { | 184 if (thisHandle.IsEmpty()) { |
| 185 if (!isScriptControllerTerminating()) | 185 if (!isScriptControllerTerminating()) |
| 186 CRASH(); | 186 CRASH(); |
| 187 return; | 187 return; |
| 188 } | 188 } |
| 189 ASSERT(thisHandle->IsObject()); | |
| 190 v8::Handle<v8::Value> stringArgHandle = v8String(isolate, stringArg); | 189 v8::Handle<v8::Value> stringArgHandle = v8String(isolate, stringArg); |
| 191 if (stringArgHandle.IsEmpty()) { | 190 if (stringArgHandle.IsEmpty()) { |
| 192 if (!isScriptControllerTerminating()) | 191 if (!isScriptControllerTerminating()) |
| 193 CRASH(); | 192 CRASH(); |
| 194 return; | 193 return; |
| 195 } | 194 } |
| 196 v8::Handle<v8::Value> argv[] = { stringArgHandle }; | 195 v8::Handle<v8::Value> argv[] = { stringArgHandle }; |
| 197 | 196 |
| 198 invokeCallback(m_scriptState.get(), m_callback.newLocal(isolate), v8::Handle
<v8::Object>::Cast(thisHandle), 1, argv); | 197 invokeCallback(m_scriptState.get(), m_callback.newLocal(isolate), thisHandle
, 1, argv); |
| 199 } | 198 } |
| 200 | 199 |
| 201 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedSequenceArg(const
WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& sequ
enceArg) | 200 void V8TestCallbackInterface::voidMethodWillBeGarbageCollectedSequenceArg(const
WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& sequ
enceArg) |
| 202 { | 201 { |
| 203 if (!canInvokeCallback()) | 202 if (!canInvokeCallback()) |
| 204 return; | 203 return; |
| 205 | 204 |
| 206 v8::Isolate* isolate = m_scriptState->isolate(); | 205 v8::Isolate* isolate = m_scriptState->isolate(); |
| 207 if (m_scriptState->contextIsEmpty()) | 206 if (m_scriptState->contextIsEmpty()) |
| 208 return; | 207 return; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 234 if (!isScriptControllerTerminating()) | 233 if (!isScriptControllerTerminating()) |
| 235 CRASH(); | 234 CRASH(); |
| 236 return; | 235 return; |
| 237 } | 236 } |
| 238 v8::Handle<v8::Value> argv[] = { arrayArgHandle }; | 237 v8::Handle<v8::Value> argv[] = { arrayArgHandle }; |
| 239 | 238 |
| 240 invokeCallback(m_scriptState.get(), m_callback.newLocal(isolate), 1, argv); | 239 invokeCallback(m_scriptState.get(), m_callback.newLocal(isolate), 1, argv); |
| 241 } | 240 } |
| 242 | 241 |
| 243 } // namespace WebCore | 242 } // namespace WebCore |
| OLD | NEW |