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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
561 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod
(info); | 561 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod
(info); |
562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
563 } | 563 } |
564 | 564 |
565 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 565 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
566 { | 566 { |
567 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes
tInterface5", info.Holder(), info.GetIsolate()); | 567 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes
tInterface5", info.Holder(), info.GetIsolate()); |
568 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 568 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
569 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 569 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
570 RawPtr<Iterator> result = impl->keys(scriptState, exceptionState); | 570 RawPtr<Iterator> result = impl->keysForBinding(scriptState, exceptionState); |
571 if (exceptionState.hadException()) { | 571 if (exceptionState.hadException()) { |
572 exceptionState.throwIfNeeded(); | 572 exceptionState.throwIfNeeded(); |
573 return; | 573 return; |
574 } | 574 } |
575 v8SetReturnValue(info, result.release()); | 575 v8SetReturnValue(info, result.release()); |
576 } | 576 } |
577 | 577 |
578 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 578 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
579 { | 579 { |
580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
581 TestInterface5ImplementationV8Internal::keysMethod(info); | 581 TestInterface5ImplementationV8Internal::keysMethod(info); |
582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
583 } | 583 } |
584 | 584 |
585 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 585 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
586 { | 586 { |
587 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T
estInterface5", info.Holder(), info.GetIsolate()); | 587 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T
estInterface5", info.Holder(), info.GetIsolate()); |
588 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 588 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
589 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 589 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
590 RawPtr<Iterator> result = impl->values(scriptState, exceptionState); | 590 RawPtr<Iterator> result = impl->valuesForBinding(scriptState, exceptionState
); |
591 if (exceptionState.hadException()) { | 591 if (exceptionState.hadException()) { |
592 exceptionState.throwIfNeeded(); | 592 exceptionState.throwIfNeeded(); |
593 return; | 593 return; |
594 } | 594 } |
595 v8SetReturnValue(info, result.release()); | 595 v8SetReturnValue(info, result.release()); |
596 } | 596 } |
597 | 597 |
598 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 598 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
599 { | 599 { |
600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
601 TestInterface5ImplementationV8Internal::valuesMethod(info); | 601 TestInterface5ImplementationV8Internal::valuesMethod(info); |
602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
603 } | 603 } |
604 | 604 |
605 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 605 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
606 { | 606 { |
607 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "
TestInterface5", info.Holder(), info.GetIsolate()); | 607 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "
TestInterface5", info.Holder(), info.GetIsolate()); |
608 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 608 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
609 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 609 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
610 RawPtr<Iterator> result = impl->entries(scriptState, exceptionState); | 610 RawPtr<Iterator> result = impl->entriesForBinding(scriptState, exceptionStat
e); |
611 if (exceptionState.hadException()) { | 611 if (exceptionState.hadException()) { |
612 exceptionState.throwIfNeeded(); | 612 exceptionState.throwIfNeeded(); |
613 return; | 613 return; |
614 } | 614 } |
615 v8SetReturnValue(info, result.release()); | 615 v8SetReturnValue(info, result.release()); |
616 } | 616 } |
617 | 617 |
618 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 618 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
619 { | 619 { |
620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 15 matching lines...) Expand all Loading... |
636 { | 636 { |
637 if (!info[0]->IsFunction()) { | 637 if (!info[0]->IsFunction()) { |
638 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 638 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
639 exceptionState.throwIfNeeded(); | 639 exceptionState.throwIfNeeded(); |
640 return; | 640 return; |
641 } | 641 } |
642 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 642 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
643 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 643 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
644 } | 644 } |
645 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 645 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
646 impl->forEach(scriptState, ScriptValue(scriptState, info.This()), callback,
thisArg, exceptionState); | 646 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); |
647 if (exceptionState.hadException()) { | 647 if (exceptionState.hadException()) { |
648 exceptionState.throwIfNeeded(); | 648 exceptionState.throwIfNeeded(); |
649 return; | 649 return; |
650 } | 650 } |
651 } | 651 } |
652 | 652 |
653 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 653 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
654 { | 654 { |
655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
656 TestInterface5ImplementationV8Internal::forEachMethod(info); | 656 TestInterface5ImplementationV8Internal::forEachMethod(info); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1007 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1008 } | 1008 } |
1009 | 1009 |
1010 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1010 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1011 { | 1011 { |
1012 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1012 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1013 } | 1013 } |
1014 | 1014 |
1015 } // namespace blink | 1015 } // namespace blink |
1016 #endif // ENABLE(CONDITION) | 1016 #endif // ENABLE(CONDITION) |
OLD | NEW |