Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 303103002: Remove more ScriptState::current in core/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/v8/ScriptCallStackFactory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 7617 matching lines...) Expand 10 before | Expand all | Expand 10 after
7628 { 7628 {
7629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7630 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo); 7630 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo);
7631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7632 } 7632 }
7633 7633
7634 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 7634 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
7635 { 7635 {
7636 TestObject* impl = V8TestObject::toNative(info.Holder()); 7636 TestObject* impl = V8TestObject::toNative(info.Holder());
7637 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7637 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7638 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); 7638 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(scriptState, i nfo, 0));
7639 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume nts.release()); 7639 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume nts.release());
7640 } 7640 }
7641 7641
7642 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 7642 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
7643 { 7643 {
7644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7645 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 7645 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
7646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7647 } 7647 }
7648 7648
7649 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 7649 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
7650 { 7650 {
7651 TestObject* impl = V8TestObject::toNative(info.Holder()); 7651 TestObject* impl = V8TestObject::toNative(info.Holder());
7652 bool optionalBooleanArg; 7652 bool optionalBooleanArg;
7653 { 7653 {
7654 v8::TryCatch block; 7654 v8::TryCatch block;
7655 if (UNLIKELY(info.Length() <= 0)) { 7655 if (UNLIKELY(info.Length() <= 0)) {
7656 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7656 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7657 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7657 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(script State, info, 1));
7658 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release()); 7658 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release());
7659 return; 7659 return;
7660 } 7660 }
7661 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); 7661 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue());
7662 } 7662 }
7663 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7663 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7664 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7664 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(scriptState, i nfo, 1));
7665 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS tate, scriptArguments.release(), optionalBooleanArg); 7665 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS tate, scriptArguments.release(), optionalBooleanArg);
7666 } 7666 }
7667 7667
7668 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 7668 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
7669 { 7669 {
7670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7671 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info); 7671 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info);
7672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7673 } 7673 }
7674 7674
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
9368 fromInternalPointer(object)->deref(); 9368 fromInternalPointer(object)->deref();
9369 } 9369 }
9370 9370
9371 template<> 9371 template<>
9372 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9372 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9373 { 9373 {
9374 return toV8(impl, creationContext, isolate); 9374 return toV8(impl, creationContext, isolate);
9375 } 9375 }
9376 9376
9377 } // namespace WebCore 9377 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/v8/ScriptCallStackFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698