| 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 "V8TestInterface3.h" | 8 #include "V8TestInterface3.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 51 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 52 TestInterface3V8Internal::keysMethod(info); | 52 TestInterface3V8Internal::keysMethod(info); |
| 53 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 53 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 54 } | 54 } |
| 55 | 55 |
| 56 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 56 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 57 { | 57 { |
| 58 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T
estInterface3", info.Holder(), info.GetIsolate()); | 58 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T
estInterface3", info.Holder(), info.GetIsolate()); |
| 59 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); | 59 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); |
| 60 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 60 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 61 RawPtr<Iterator> result = impl->values(scriptState, exceptionState); | 61 RawPtr<Iterator> result = impl->valuesForBinding(scriptState, exceptionState
); |
| 62 if (exceptionState.hadException()) { | 62 if (exceptionState.hadException()) { |
| 63 exceptionState.throwIfNeeded(); | 63 exceptionState.throwIfNeeded(); |
| 64 return; | 64 return; |
| 65 } | 65 } |
| 66 v8SetReturnValue(info, result.release()); | 66 v8SetReturnValue(info, result.release()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 69 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 70 { | 70 { |
| 71 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 71 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 72 TestInterface3V8Internal::valuesMethod(info); | 72 TestInterface3V8Internal::valuesMethod(info); |
| 73 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 73 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 74 } | 74 } |
| 75 | 75 |
| 76 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 76 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 77 { | 77 { |
| 78 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "
TestInterface3", info.Holder(), info.GetIsolate()); | 78 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "
TestInterface3", info.Holder(), info.GetIsolate()); |
| 79 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); | 79 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); |
| 80 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 80 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 81 RawPtr<Iterator> result = impl->entries(scriptState, exceptionState); | 81 RawPtr<Iterator> result = impl->entriesForBinding(scriptState, exceptionStat
e); |
| 82 if (exceptionState.hadException()) { | 82 if (exceptionState.hadException()) { |
| 83 exceptionState.throwIfNeeded(); | 83 exceptionState.throwIfNeeded(); |
| 84 return; | 84 return; |
| 85 } | 85 } |
| 86 v8SetReturnValue(info, result.release()); | 86 v8SetReturnValue(info, result.release()); |
| 87 } | 87 } |
| 88 | 88 |
| 89 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 89 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
| 90 { | 90 { |
| 91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 107 { | 107 { |
| 108 if (!info[0]->IsFunction()) { | 108 if (!info[0]->IsFunction()) { |
| 109 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 109 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
| 110 exceptionState.throwIfNeeded(); | 110 exceptionState.throwIfNeeded(); |
| 111 return; | 111 return; |
| 112 } | 112 } |
| 113 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 113 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
| 114 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 114 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
| 115 } | 115 } |
| 116 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 116 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 117 impl->forEach(scriptState, ScriptValue(scriptState, info.This()), callback,
thisArg, exceptionState); | 117 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); |
| 118 if (exceptionState.hadException()) { | 118 if (exceptionState.hadException()) { |
| 119 exceptionState.throwIfNeeded(); | 119 exceptionState.throwIfNeeded(); |
| 120 return; | 120 return; |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 124 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
| 125 { | 125 { |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 127 TestInterface3V8Internal::forEachMethod(info); | 127 TestInterface3V8Internal::forEachMethod(info); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 { | 278 { |
| 279 scriptWrappable->toImpl<TestInterface3>()->ref(); | 279 scriptWrappable->toImpl<TestInterface3>()->ref(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) | 282 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) |
| 283 { | 283 { |
| 284 scriptWrappable->toImpl<TestInterface3>()->deref(); | 284 scriptWrappable->toImpl<TestInterface3>()->deref(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| OLD | NEW |