| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    83     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |    83     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|    84     TestInterface5ImplementationV8Internal::doubleAttributeAttributeGetter(info)
      ; |    84     TestInterface5ImplementationV8Internal::doubleAttributeAttributeGetter(info)
      ; | 
|    85     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |    85     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|    86 } |    86 } | 
|    87  |    87  | 
|    88 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
      8::PropertyCallbackInfo<void>& info) |    88 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
      8::PropertyCallbackInfo<void>& info) | 
|    89 { |    89 { | 
|    90     v8::Local<v8::Object> holder = info.Holder(); |    90     v8::Local<v8::Object> holder = info.Holder(); | 
|    91     ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
      e", "TestInterface5", holder, info.GetIsolate()); |    91     ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
      e", "TestInterface5", holder, info.GetIsolate()); | 
|    92     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |    92     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|    93     TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toRestrictedDouble(v8Value, e
      xceptionState), exceptionState); |    93     TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toRestrictedDo
      uble(v8Value, exceptionState), exceptionState), return); | 
|    94     impl->setDoubleAttribute(cppValue); |    94     impl->setDoubleAttribute(cppValue); | 
|    95 } |    95 } | 
|    96  |    96  | 
|    97 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
      cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |    97 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
      cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|    98 { |    98 { | 
|    99     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |    99     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   100     TestInterface5ImplementationV8Internal::doubleAttributeAttributeSetter(v8Val
      ue, info); |   100     TestInterface5ImplementationV8Internal::doubleAttributeAttributeSetter(v8Val
      ue, info); | 
|   101     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   101     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   102 } |   102 } | 
|   103  |   103  | 
|   104 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
      ue>& info) |   104 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
      ue>& info) | 
|   105 { |   105 { | 
|   106     v8::Local<v8::Object> holder = info.Holder(); |   106     v8::Local<v8::Object> holder = info.Holder(); | 
|   107     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   107     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   108     v8SetReturnValue(info, impl->floatAttribute()); |   108     v8SetReturnValue(info, impl->floatAttribute()); | 
|   109 } |   109 } | 
|   110  |   110  | 
|   111 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
      8::PropertyCallbackInfo<v8::Value>& info) |   111 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
      8::PropertyCallbackInfo<v8::Value>& info) | 
|   112 { |   112 { | 
|   113     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   113     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   114     TestInterface5ImplementationV8Internal::floatAttributeAttributeGetter(info); |   114     TestInterface5ImplementationV8Internal::floatAttributeAttributeGetter(info); | 
|   115     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   115     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   116 } |   116 } | 
|   117  |   117  | 
|   118 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
      ::PropertyCallbackInfo<void>& info) |   118 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
      ::PropertyCallbackInfo<void>& info) | 
|   119 { |   119 { | 
|   120     v8::Local<v8::Object> holder = info.Holder(); |   120     v8::Local<v8::Object> holder = info.Holder(); | 
|   121     ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
      ", "TestInterface5", holder, info.GetIsolate()); |   121     ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
      ", "TestInterface5", holder, info.GetIsolate()); | 
|   122     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   122     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   123     TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toRestrictedFloat(v8Value, exc
      eptionState), exceptionState); |   123     TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toRestrictedFlo
      at(v8Value, exceptionState), exceptionState), return); | 
|   124     impl->setFloatAttribute(cppValue); |   124     impl->setFloatAttribute(cppValue); | 
|   125 } |   125 } | 
|   126  |   126  | 
|   127 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
      al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   127 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
      al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   128 { |   128 { | 
|   129     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   129     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   130     TestInterface5ImplementationV8Internal::floatAttributeAttributeSetter(v8Valu
      e, info); |   130     TestInterface5ImplementationV8Internal::floatAttributeAttributeSetter(v8Valu
      e, info); | 
|   131     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   131     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   132 } |   132 } | 
|   133  |   133  | 
|   134 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
      kInfo<v8::Value>& info) |   134 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
      kInfo<v8::Value>& info) | 
|   135 { |   135 { | 
|   136     v8::Local<v8::Object> holder = info.Holder(); |   136     v8::Local<v8::Object> holder = info.Holder(); | 
|   137     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   137     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   138     v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |   138     v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); | 
|   139 } |   139 } | 
|   140  |   140  | 
|   141 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
      ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |   141 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
      ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   142 { |   142 { | 
|   143     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   143     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   144     TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
      Getter(info); |   144     TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
      Getter(info); | 
|   145     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   145     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   146 } |   146 } | 
|   147  |   147  | 
|   148 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
      lue, const v8::PropertyCallbackInfo<void>& info) |   148 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
      lue, const v8::PropertyCallbackInfo<void>& info) | 
|   149 { |   149 { | 
|   150     v8::Local<v8::Object> holder = info.Holder(); |   150     v8::Local<v8::Object> holder = info.Holder(); | 
|   151     ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
      ubleAttribute", "TestInterface5", holder, info.GetIsolate()); |   151     ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
      ubleAttribute", "TestInterface5", holder, info.GetIsolate()); | 
|   152     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   152     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   153     TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt
      ate), exceptionState); |   153     TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toDouble(v8Val
      ue, exceptionState), exceptionState), return); | 
|   154     impl->setUnrestrictedDoubleAttribute(cppValue); |   154     impl->setUnrestrictedDoubleAttribute(cppValue); | 
|   155 } |   155 } | 
|   156  |   156  | 
|   157 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
      ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   157 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
      ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   158 { |   158 { | 
|   159     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   159     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   160     TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
      Setter(v8Value, info); |   160     TestInterface5ImplementationV8Internal::unrestrictedDoubleAttributeAttribute
      Setter(v8Value, info); | 
|   161     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   161     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   162 } |   162 } | 
|   163  |   163  | 
|   164 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
      Info<v8::Value>& info) |   164 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
      Info<v8::Value>& info) | 
|   165 { |   165 { | 
|   166     v8::Local<v8::Object> holder = info.Holder(); |   166     v8::Local<v8::Object> holder = info.Holder(); | 
|   167     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   167     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   168     v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |   168     v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); | 
|   169 } |   169 } | 
|   170  |   170  | 
|   171 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
      ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |   171 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
      ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   172 { |   172 { | 
|   173     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   173     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   174     TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeG
      etter(info); |   174     TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeG
      etter(info); | 
|   175     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   175     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   176 } |   176 } | 
|   177  |   177  | 
|   178 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
      ue, const v8::PropertyCallbackInfo<void>& info) |   178 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
      ue, const v8::PropertyCallbackInfo<void>& info) | 
|   179 { |   179 { | 
|   180     v8::Local<v8::Object> holder = info.Holder(); |   180     v8::Local<v8::Object> holder = info.Holder(); | 
|   181     ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
      oatAttribute", "TestInterface5", holder, info.GetIsolate()); |   181     ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
      oatAttribute", "TestInterface5", holder, info.GetIsolate()); | 
|   182     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   182     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   183     TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
      e), exceptionState); |   183     TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value
      , exceptionState), exceptionState), return); | 
|   184     impl->setUnrestrictedFloatAttribute(cppValue); |   184     impl->setUnrestrictedFloatAttribute(cppValue); | 
|   185 } |   185 } | 
|   186  |   186  | 
|   187 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
      ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   187 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
      ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   188 { |   188 { | 
|   189     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   189     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   190     TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeS
      etter(v8Value, info); |   190     TestInterface5ImplementationV8Internal::unrestrictedFloatAttributeAttributeS
      etter(v8Value, info); | 
|   191     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   191     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   192 } |   192 } | 
|   193  |   193  | 
|   194 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
      v8::Value>& info) |   194 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
      v8::Value>& info) | 
|   195 { |   195 { | 
|   196     v8SetReturnValueString(info, TestInterface5Implementation::staticStringAttri
      bute(), info.GetIsolate()); |   196     v8SetReturnValueString(info, TestInterface5Implementation::staticStringAttri
      bute(), info.GetIsolate()); | 
|   197 } |   197 } | 
|   198  |   198  | 
|   199 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, 
      const v8::PropertyCallbackInfo<v8::Value>& info) |   199 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, 
      const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   200 { |   200 { | 
|   201     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   201     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   202     TestInterface5ImplementationV8Internal::staticStringAttributeAttributeGetter
      (info); |   202     TestInterface5ImplementationV8Internal::staticStringAttributeAttributeGetter
      (info); | 
|   203     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   203     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   204 } |   204 } | 
|   205  |   205  | 
|   206 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
      onst v8::PropertyCallbackInfo<void>& info) |   206 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
      onst v8::PropertyCallbackInfo<void>& info) | 
|   207 { |   207 { | 
|   208     TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |   208     TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
      ), return); | 
|   209     TestInterface5Implementation::setStaticStringAttribute(cppValue); |   209     TestInterface5Implementation::setStaticStringAttribute(cppValue); | 
|   210 } |   210 } | 
|   211  |   211  | 
|   212 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, 
      v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   212 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, 
      v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   213 { |   213 { | 
|   214     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   214     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   215     TestInterface5ImplementationV8Internal::staticStringAttributeAttributeSetter
      (v8Value, info); |   215     TestInterface5ImplementationV8Internal::staticStringAttributeAttributeSetter
      (v8Value, info); | 
|   216     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   216     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   217 } |   217 } | 
|   218  |   218  | 
|   219 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) |   219 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) | 
|   220 { |   220 { | 
|   221     v8::Local<v8::Object> holder = info.Holder(); |   221     v8::Local<v8::Object> holder = info.Holder(); | 
|   222     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   222     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   223     v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); |   223     v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); | 
|   224 } |   224 } | 
|   225  |   225  | 
|   226 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) |   226 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   227 { |   227 { | 
|   228     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   228     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   229     TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeGette
      r(info); |   229     TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeGette
      r(info); | 
|   230     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   230     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   231 } |   231 } | 
|   232  |   232  | 
|   233 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) |   233 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) | 
|   234 { |   234 { | 
|   235     v8::Local<v8::Object> holder = info.Holder(); |   235     v8::Local<v8::Object> holder = info.Holder(); | 
|   236     ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); |   236     ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); | 
|   237     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   237     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   238     TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
      , exceptionState); |   238     TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, 
      exceptionState), exceptionState), return); | 
|   239     impl->setAlwaysExposedAttribute(cppValue); |   239     impl->setAlwaysExposedAttribute(cppValue); | 
|   240 } |   240 } | 
|   241  |   241  | 
|   242 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   242 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   243 { |   243 { | 
|   244     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   244     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   245     TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeSette
      r(v8Value, info); |   245     TestInterface5ImplementationV8Internal::alwaysExposedAttributeAttributeSette
      r(v8Value, info); | 
|   246     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   246     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   247 } |   247 } | 
|   248  |   248  | 
|   249 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) |   249 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) | 
|   250 { |   250 { | 
|   251     v8::Local<v8::Object> holder = info.Holder(); |   251     v8::Local<v8::Object> holder = info.Holder(); | 
|   252     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   252     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   253     v8SetReturnValueInt(info, impl->workerExposedAttribute()); |   253     v8SetReturnValueInt(info, impl->workerExposedAttribute()); | 
|   254 } |   254 } | 
|   255  |   255  | 
|   256 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) |   256 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   257 { |   257 { | 
|   258     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   258     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   259     TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeGette
      r(info); |   259     TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeGette
      r(info); | 
|   260     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   260     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   261 } |   261 } | 
|   262  |   262  | 
|   263 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) |   263 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) | 
|   264 { |   264 { | 
|   265     v8::Local<v8::Object> holder = info.Holder(); |   265     v8::Local<v8::Object> holder = info.Holder(); | 
|   266     ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); |   266     ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); | 
|   267     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   267     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   268     TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
      , exceptionState); |   268     TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, 
      exceptionState), exceptionState), return); | 
|   269     impl->setWorkerExposedAttribute(cppValue); |   269     impl->setWorkerExposedAttribute(cppValue); | 
|   270 } |   270 } | 
|   271  |   271  | 
|   272 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   272 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   273 { |   273 { | 
|   274     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   274     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   275     TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeSette
      r(v8Value, info); |   275     TestInterface5ImplementationV8Internal::workerExposedAttributeAttributeSette
      r(v8Value, info); | 
|   276     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   276     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   277 } |   277 } | 
|   278  |   278  | 
|   279 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) |   279 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) | 
|   280 { |   280 { | 
|   281     v8::Local<v8::Object> holder = info.Holder(); |   281     v8::Local<v8::Object> holder = info.Holder(); | 
|   282     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   282     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   283     v8SetReturnValueInt(info, impl->windowExposedAttribute()); |   283     v8SetReturnValueInt(info, impl->windowExposedAttribute()); | 
|   284 } |   284 } | 
|   285  |   285  | 
|   286 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) |   286 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>,
       const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   287 { |   287 { | 
|   288     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |   288     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 
|   289     TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeGette
      r(info); |   289     TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeGette
      r(info); | 
|   290     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   290     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   291 } |   291 } | 
|   292  |   292  | 
|   293 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) |   293 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<void>& info) | 
|   294 { |   294 { | 
|   295     v8::Local<v8::Object> holder = info.Holder(); |   295     v8::Local<v8::Object> holder = info.Holder(); | 
|   296     ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); |   296     ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
      ttribute", "TestInterface5", holder, info.GetIsolate()); | 
|   297     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |   297     TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 
|   298     TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
      , exceptionState); |   298     TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, 
      exceptionState), exceptionState), return); | 
|   299     impl->setWindowExposedAttribute(cppValue); |   299     impl->setWindowExposedAttribute(cppValue); | 
|   300 } |   300 } | 
|   301  |   301  | 
|   302 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |   302 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
       v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 
|   303 { |   303 { | 
|   304     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |   304     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 
|   305     TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
      r(v8Value, info); |   305     TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette
      r(v8Value, info); | 
|   306     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   306     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   307 } |   307 } | 
|   308  |   308  | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   357     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
      oubleArgFloatArg", "TestInterface5", info.Holder(), info.GetIsolate()); |   357     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
      oubleArgFloatArg", "TestInterface5", info.Holder(), info.GetIsolate()); | 
|   358     if (UNLIKELY(info.Length() < 2)) { |   358     if (UNLIKELY(info.Length() < 2)) { | 
|   359         setMinimumArityTypeError(exceptionState, 2, info.Length()); |   359         setMinimumArityTypeError(exceptionState, 2, info.Length()); | 
|   360         exceptionState.throwIfNeeded(); |   360         exceptionState.throwIfNeeded(); | 
|   361         return; |   361         return; | 
|   362     } |   362     } | 
|   363     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   363     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   364     double doubleArg; |   364     double doubleArg; | 
|   365     float floatArg; |   365     float floatArg; | 
|   366     { |   366     { | 
|   367         TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info
      [0], exceptionState), exceptionState); |   367         TONATIVE_CONVERT(convertAndThrow(doubleArg = toRestrictedDouble(info[0],
       exceptionState), exceptionState), return); | 
|   368         TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[1
      ], exceptionState), exceptionState); |   368         TONATIVE_CONVERT(convertAndThrow(floatArg = toRestrictedFloat(info[1], e
      xceptionState), exceptionState), return); | 
|   369     } |   369     } | 
|   370     impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |   370     impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); | 
|   371 } |   371 } | 
|   372  |   372  | 
|   373 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
      Info<v8::Value>& info) |   373 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
      Info<v8::Value>& info) | 
|   374 { |   374 { | 
|   375     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |   375     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|   376     TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(in
      fo); |   376     TestInterface5ImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(in
      fo); | 
|   377     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   377     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   378 } |   378 } | 
|   379  |   379  | 
|   380 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
      FunctionCallbackInfo<v8::Value>& info) |   380 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
      FunctionCallbackInfo<v8::Value>& info) | 
|   381 { |   381 { | 
|   382     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
      nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface5", info.Holder(), info
      .GetIsolate()); |   382     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
      nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface5", info.Holder(), info
      .GetIsolate()); | 
|   383     if (UNLIKELY(info.Length() < 2)) { |   383     if (UNLIKELY(info.Length() < 2)) { | 
|   384         setMinimumArityTypeError(exceptionState, 2, info.Length()); |   384         setMinimumArityTypeError(exceptionState, 2, info.Length()); | 
|   385         exceptionState.throwIfNeeded(); |   385         exceptionState.throwIfNeeded(); | 
|   386         return; |   386         return; | 
|   387     } |   387     } | 
|   388     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   388     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   389     double unrestrictedDoubleArg; |   389     double unrestrictedDoubleArg; | 
|   390     float unrestrictedFloatArg; |   390     float unrestrictedFloatArg; | 
|   391     { |   391     { | 
|   392         TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedDoubleArg, toDouble(in
      fo[0], exceptionState), exceptionState); |   392         TONATIVE_CONVERT(convertAndThrow(unrestrictedDoubleArg = toDouble(info[0
      ], exceptionState), exceptionState), return); | 
|   393         TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedFloatArg, toFloat(info
      [1], exceptionState), exceptionState); |   393         TONATIVE_CONVERT(convertAndThrow(unrestrictedFloatArg = toFloat(info[1],
       exceptionState), exceptionState), return); | 
|   394     } |   394     } | 
|   395     impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
      Arg, unrestrictedFloatArg); |   395     impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
      Arg, unrestrictedFloatArg); | 
|   396 } |   396 } | 
|   397  |   397  | 
|   398 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
      nst v8::FunctionCallbackInfo<v8::Value>& info) |   398 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
      nst v8::FunctionCallbackInfo<v8::Value>& info) | 
|   399 { |   399 { | 
|   400     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |   400     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|   401     TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnres
      trictedFloatArgMethod(info); |   401     TestInterface5ImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnres
      trictedFloatArgMethod(info); | 
|   402     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   402     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   403 } |   403 } | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   520 { |   520 { | 
|   521     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
      ooleanOrDOMStringArg", "TestInterface5", info.Holder(), info.GetIsolate()); |   521     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
      ooleanOrDOMStringArg", "TestInterface5", info.Holder(), info.GetIsolate()); | 
|   522     if (UNLIKELY(info.Length() < 1)) { |   522     if (UNLIKELY(info.Length() < 1)) { | 
|   523         setMinimumArityTypeError(exceptionState, 1, info.Length()); |   523         setMinimumArityTypeError(exceptionState, 1, info.Length()); | 
|   524         exceptionState.throwIfNeeded(); |   524         exceptionState.throwIfNeeded(); | 
|   525         return; |   525         return; | 
|   526     } |   526     } | 
|   527     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   527     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   528     BooleanOrString arg; |   528     BooleanOrString arg; | 
|   529     { |   529     { | 
|   530         TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8BooleanOrString::toImpl(info.
      GetIsolate(), info[0], arg, exceptionState), exceptionState); |   530         TONATIVE_CONVERT(V8BooleanOrString::toImpl(info.GetIsolate(), info[0], a
      rg, exceptionState), return exceptionState.throwException()); | 
|   531     } |   531     } | 
|   532     impl->voidMethodBooleanOrDOMStringArg(arg); |   532     impl->voidMethodBooleanOrDOMStringArg(arg); | 
|   533 } |   533 } | 
|   534  |   534  | 
|   535 static void voidMethodBooleanOrDOMStringArgMethodCallback(const v8::FunctionCall
      backInfo<v8::Value>& info) |   535 static void voidMethodBooleanOrDOMStringArgMethodCallback(const v8::FunctionCall
      backInfo<v8::Value>& info) | 
|   536 { |   536 { | 
|   537     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |   537     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|   538     TestInterface5ImplementationV8Internal::voidMethodBooleanOrDOMStringArgMetho
      d(info); |   538     TestInterface5ImplementationV8Internal::voidMethodBooleanOrDOMStringArgMetho
      d(info); | 
|   539     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   539     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   540 } |   540 } | 
|   541  |   541  | 
|   542 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<
      v8::Value>& info) |   542 static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<
      v8::Value>& info) | 
|   543 { |   543 { | 
|   544     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
      oubleOrDOMStringArg", "TestInterface5", info.Holder(), info.GetIsolate()); |   544     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
      oubleOrDOMStringArg", "TestInterface5", info.Holder(), info.GetIsolate()); | 
|   545     if (UNLIKELY(info.Length() < 1)) { |   545     if (UNLIKELY(info.Length() < 1)) { | 
|   546         setMinimumArityTypeError(exceptionState, 1, info.Length()); |   546         setMinimumArityTypeError(exceptionState, 1, info.Length()); | 
|   547         exceptionState.throwIfNeeded(); |   547         exceptionState.throwIfNeeded(); | 
|   548         return; |   548         return; | 
|   549     } |   549     } | 
|   550     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   550     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   551     DoubleOrString arg; |   551     DoubleOrString arg; | 
|   552     { |   552     { | 
|   553         TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.G
      etIsolate(), info[0], arg, exceptionState), exceptionState); |   553         TONATIVE_CONVERT(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], ar
      g, exceptionState), return exceptionState.throwException()); | 
|   554     } |   554     } | 
|   555     impl->voidMethodDoubleOrDOMStringArg(arg); |   555     impl->voidMethodDoubleOrDOMStringArg(arg); | 
|   556 } |   556 } | 
|   557  |   557  | 
|   558 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
      ackInfo<v8::Value>& info) |   558 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
      ackInfo<v8::Value>& info) | 
|   559 { |   559 { | 
|   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 } | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   629         setMinimumArityTypeError(exceptionState, 1, info.Length()); |   629         setMinimumArityTypeError(exceptionState, 1, info.Length()); | 
|   630         exceptionState.throwIfNeeded(); |   630         exceptionState.throwIfNeeded(); | 
|   631         return; |   631         return; | 
|   632     } |   632     } | 
|   633     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   633     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   634     ScriptValue callback; |   634     ScriptValue callback; | 
|   635     ScriptValue thisArg; |   635     ScriptValue thisArg; | 
|   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->forEachForBinding(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; | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   702 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
      backInfo<v8::Value>& info) |   702 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
      backInfo<v8::Value>& info) | 
|   703 { |   703 { | 
|   704     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); |   704     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); | 
|   705     TestInterface5ImplementationV8Internal::indexedPropertyGetter(index, info); |   705     TestInterface5ImplementationV8Internal::indexedPropertyGetter(index, info); | 
|   706     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   706     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   707 } |   707 } | 
|   708  |   708  | 
|   709 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<v8::Value>& info) |   709 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, 
      const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   710 { |   710 { | 
|   711     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   711     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   712     TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); |   712     TONATIVE_DECLARE(V8StringResource<>, propertyValue, (propertyValue = v8Value
      ).prepare(), return); | 
|   713     bool result = impl->anonymousIndexedSetter(index, propertyValue); |   713     bool result = impl->anonymousIndexedSetter(index, propertyValue); | 
|   714     if (!result) |   714     if (!result) | 
|   715         return; |   715         return; | 
|   716     v8SetReturnValue(info, v8Value); |   716     v8SetReturnValue(info, v8Value); | 
|   717 } |   717 } | 
|   718  |   718  | 
|   719 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
      8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |   719 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
      8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   720 { |   720 { | 
|   721     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); |   721     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); | 
|   722     TestInterface5ImplementationV8Internal::indexedPropertySetter(index, v8Value
      , info); |   722     TestInterface5ImplementationV8Internal::indexedPropertySetter(index, v8Value
      , info); | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   768     if (!name->IsString()) |   768     if (!name->IsString()) | 
|   769         return; |   769         return; | 
|   770     auto nameString = name.As<v8::String>(); |   770     auto nameString = name.As<v8::String>(); | 
|   771     if (info.Holder()->HasRealNamedProperty(nameString)) |   771     if (info.Holder()->HasRealNamedProperty(nameString)) | 
|   772         return; |   772         return; | 
|   773     if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty
      ()) |   773     if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty
      ()) | 
|   774         return; |   774         return; | 
|   775  |   775  | 
|   776     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; |   776     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
      ; | 
|   777     TOSTRING_VOID(V8StringResource<>, propertyName, nameString); |   777     TOSTRING_VOID(V8StringResource<>, propertyName, nameString); | 
|   778     TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); |   778     TONATIVE_DECLARE(V8StringResource<>, propertyValue, (propertyValue = v8Value
      ).prepare(), return); | 
|   779     bool result = impl->anonymousNamedSetter(propertyName, propertyValue); |   779     bool result = impl->anonymousNamedSetter(propertyName, propertyValue); | 
|   780     if (!result) |   780     if (!result) | 
|   781         return; |   781         return; | 
|   782     v8SetReturnValue(info, v8Value); |   782     v8SetReturnValue(info, v8Value); | 
|   783 } |   783 } | 
|   784  |   784  | 
|   785 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
      Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |   785 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
      Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 
|   786 { |   786 { | 
|   787     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |   787     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 
|   788     TestInterface5ImplementationV8Internal::namedPropertySetter(name, v8Value, i
      nfo); |   788     TestInterface5ImplementationV8Internal::namedPropertySetter(name, v8Value, i
      nfo); | 
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1013     scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |  1013     scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 
|  1014 } |  1014 } | 
|  1015  |  1015  | 
|  1016 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |  1016 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 
|  1017 { |  1017 { | 
|  1018     scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |  1018     scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 
|  1019 } |  1019 } | 
|  1020  |  1020  | 
|  1021 } // namespace blink |  1021 } // namespace blink | 
|  1022 #endif // ENABLE(CONDITION) |  1022 #endif // ENABLE(CONDITION) | 
| OLD | NEW |