| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 5266 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5277     {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback, 
      0, 0}, | 5277     {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback, 
      0, 0}, | 
| 5278 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 5278 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 
| 5279     {"callbackFunctionReturnValue", TestObjV8Internal::callbackFunctionReturnVal
      ueMethodCallback, 0, 0}, | 5279     {"callbackFunctionReturnValue", TestObjV8Internal::callbackFunctionReturnVal
      ueMethodCallback, 0, 0}, | 
| 5280     {"callbackFunctionArgument", TestObjV8Internal::callbackFunctionArgumentMeth
      odCallback, 0, 1}, | 5280     {"callbackFunctionArgument", TestObjV8Internal::callbackFunctionArgumentMeth
      odCallback, 0, 1}, | 
| 5281     {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0, 1
      }, | 5281     {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0, 1
      }, | 
| 5282     {"overloadedMethodA", TestObjV8Internal::overloadedMethodAMethodCallback, 0,
       1}, | 5282     {"overloadedMethodA", TestObjV8Internal::overloadedMethodAMethodCallback, 0,
       1}, | 
| 5283     {"overloadedMethodB", TestObjV8Internal::overloadedMethodBMethodCallback, 0,
       1}, | 5283     {"overloadedMethodB", TestObjV8Internal::overloadedMethodBMethodCallback, 0,
       1}, | 
| 5284     {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
      ck, 0, 2}, | 5284     {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
      ck, 0, 2}, | 
| 5285     {"methodWithUnsignedLongSequence", TestObjV8Internal::methodWithUnsignedLong
      SequenceMethodCallback, 0, 1}, | 5285     {"methodWithUnsignedLongSequence", TestObjV8Internal::methodWithUnsignedLong
      SequenceMethodCallback, 0, 1}, | 
| 5286     {"stringArrayFunction", TestObjV8Internal::stringArrayFunctionMethodCallback
      , 0, 1}, | 5286     {"stringArrayFunction", TestObjV8Internal::stringArrayFunctionMethodCallback
      , 0, 1}, | 
|  | 5287     {"domStringListFunction", TestObjV8Internal::domStringListFunctionMethodCall
      back, 0, 1}, | 
| 5287     {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0, 0}, | 5288     {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0, 0}, | 
|  | 5289     {"convert1", TestObjV8Internal::convert1MethodCallback, 0, 1}, | 
|  | 5290     {"convert2", TestObjV8Internal::convert2MethodCallback, 0, 1}, | 
| 5288     {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
      ck, 0, 0}, | 5291     {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
      ck, 0, 0}, | 
| 5289     {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
      llback, 0, 0}, | 5292     {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
      llback, 0, 0}, | 
|  | 5293     {"svgPointMethod", TestObjV8Internal::svgPointMethodMethodCallback, 0, 2}, | 
| 5290     {"strictSVGPointMethod", TestObjV8Internal::strictSVGPointMethodMethodCallba
      ck, 0, 2}, | 5294     {"strictSVGPointMethod", TestObjV8Internal::strictSVGPointMethodMethodCallba
      ck, 0, 2}, | 
| 5291     {"orange", TestObjV8Internal::orangeMethodCallback, 0, 0}, | 5295     {"orange", TestObjV8Internal::orangeMethodCallback, 0, 0}, | 
| 5292     {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0, 3}, | 5296     {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0, 3}, | 
| 5293     {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
      ck, 0, 2}, | 5297     {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
      ck, 0, 2}, | 
| 5294     {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
      ck, 0, 2}, | 5298     {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
      ck, 0, 2}, | 
|  | 5299     {"variadicNodeMethod", TestObjV8Internal::variadicNodeMethodMethodCallback, 
      0, 2}, | 
| 5295     {"methodWithNullableArguments", TestObjV8Internal::methodWithNullableArgumen
      tsMethodCallback, 0, 3}, | 5300     {"methodWithNullableArguments", TestObjV8Internal::methodWithNullableArgumen
      tsMethodCallback, 0, 3}, | 
| 5296     {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
      8Internal::perWorldMethodMethodCallbackForMainWorld, 0}, | 5301     {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
      8Internal::perWorldMethodMethodCallbackForMainWorld, 0}, | 
| 5297     {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
      odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
      d, 1}, | 5302     {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
      odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
      d, 1}, | 
| 5298     {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
      back, 0, 1}, | 5303     {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
      back, 0, 1}, | 
| 5299     {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
      back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, | 5304     {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
      back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, | 
| 5300     {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
      solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
      ldMethodMethodCallbackForMainWorld, 1}, | 5305     {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
      solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
      ldMethodMethodCallbackForMainWorld, 1}, | 
| 5301     {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
      edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
      allbackForMainWorld, 1}, | 5306     {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
      edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
      allbackForMainWorld, 1}, | 
| 5302     {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
      }, | 5307     {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
      }, | 
| 5303 }; | 5308 }; | 
| 5304 | 5309 | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5344     COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TheValueOfTestObj_DEPRECAT
      ED_CONSTANTDoesntMatchWithImplementation); | 5349     COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TheValueOfTestObj_DEPRECAT
      ED_CONSTANTDoesntMatchWithImplementation); | 
| 5345     functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestObjV8Int
      ernal::indexedPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObj
      >); | 5350     functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestObjV8Int
      ernal::indexedPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObj
      >); | 
| 5346     functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestObjV8Inter
      nal::namedPropertyGetterCallback, 0, TestObjV8Internal::namedPropertyQueryCallba
      ck, 0, TestObjV8Internal::namedPropertyEnumeratorCallback); | 5351     functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestObjV8Inter
      nal::namedPropertyGetterCallback, 0, TestObjV8Internal::namedPropertyQueryCallba
      ck, 0, TestObjV8Internal::namedPropertyEnumeratorCallback); | 
| 5347     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "staticMethodWithCall
      backAndOptionalArg", v8::String::kInternalizedString), v8::FunctionTemplate::New
      (isolate, TestObjV8Internal::staticMethodWithCallbackAndOptionalArgMethodCallbac
      k, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 5352     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "staticMethodWithCall
      backAndOptionalArg", v8::String::kInternalizedString), v8::FunctionTemplate::New
      (isolate, TestObjV8Internal::staticMethodWithCallbackAndOptionalArgMethodCallbac
      k, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 
| 5348     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "staticMethodWithCall
      backArg", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, T
      estObjV8Internal::staticMethodWithCallbackArgMethodCallback, v8Undefined(), v8::
      Local<v8::Signature>(), 1)); | 5353     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "staticMethodWithCall
      backArg", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, T
      estObjV8Internal::staticMethodWithCallbackArgMethodCallback, v8Undefined(), v8::
      Local<v8::Signature>(), 1)); | 
| 5349     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethod", v8::St
      ring::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Internal
      ::classMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 5354     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethod", v8::St
      ring::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Internal
      ::classMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 
| 5350     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethodWithOptio
      nal", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestO
      bjV8Internal::classMethodWithOptionalMethodCallback, v8Undefined(), v8::Local<v8
      ::Signature>(), 0)); | 5355     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethodWithOptio
      nal", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestO
      bjV8Internal::classMethodWithOptionalMethodCallback, v8Undefined(), v8::Local<v8
      ::Signature>(), 0)); | 
| 5351     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethod2", v8::S
      tring::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Interna
      l::classMethod2MethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); | 5356     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "classMethod2", v8::S
      tring::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Interna
      l::classMethod2MethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); | 
| 5352     if (RuntimeEnabledFeatures::featureNameEnabled()) | 5357     if (RuntimeEnabledFeatures::featureNameEnabled()) | 
| 5353         prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "enabledAtRuntim
      eMethod", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, T
      estObjV8Internal::enabledAtRuntimeMethodMethodCallback, v8Undefined(), defaultSi
      gnature, 1)); | 5358         prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "enabledAtRuntim
      eMethod", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, T
      estObjV8Internal::enabledAtRuntimeMethodMethodCallback, v8Undefined(), defaultSi
      gnature, 1)); | 
| 5354 |  | 
| 5355     // Custom Signature 'domStringListFunction' |  | 
| 5356     const int domStringListFunctionArgc = 1; |  | 
| 5357     v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc
      tionArgc] = { V8PerIsolateData::from(isolate)->rawDOMTemplate(&V8DOMStringList::
      wrapperTypeInfo, currentWorldType) }; |  | 
| 5358     v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne
      w(isolate, functionTemplate, domStringListFunctionArgc, domStringListFunctionArg
      v); |  | 
| 5359     prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "domStringListFuncti
      on", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestOb
      jV8Internal::domStringListFunctionMethodCallback, v8Undefined(), domStringListFu
      nctionSignature, 1)); |  | 
| 5360 |  | 
| 5361     // Custom Signature 'convert1' |  | 
| 5362     const int convert1Argc = 1; |  | 
| 5363     v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate
      Data::from(isolate)->rawDOMTemplate(&V8TestNode::wrapperTypeInfo, currentWorldTy
      pe) }; |  | 
| 5364     v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(isolate, fu
      nctionTemplate, convert1Argc, convert1Argv); |  | 
| 5365     prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "convert1", v8::Stri
      ng::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Internal::
      convert1MethodCallback, v8Undefined(), convert1Signature, 1)); |  | 
| 5366 |  | 
| 5367     // Custom Signature 'convert2' |  | 
| 5368     const int convert2Argc = 1; |  | 
| 5369     v8::Handle<v8::FunctionTemplate> convert2Argv[convert2Argc] = { V8PerIsolate
      Data::from(isolate)->rawDOMTemplate(&V8TestNode::wrapperTypeInfo, currentWorldTy
      pe) }; |  | 
| 5370     v8::Handle<v8::Signature> convert2Signature = v8::Signature::New(isolate, fu
      nctionTemplate, convert2Argc, convert2Argv); |  | 
| 5371     prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "convert2", v8::Stri
      ng::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Internal::
      convert2MethodCallback, v8Undefined(), convert2Signature, 1)); |  | 
| 5372 |  | 
| 5373     // Custom Signature 'svgPointMethod' |  | 
| 5374     const int svgPointMethodArgc = 2; |  | 
| 5375     v8::Handle<v8::FunctionTemplate> svgPointMethodArgv[svgPointMethodArgc] = { 
      V8PerIsolateData::from(isolate)->rawDOMTemplate(&V8SVGPoint::wrapperTypeInfo, cu
      rrentWorldType), v8::Handle<v8::FunctionTemplate>() }; |  | 
| 5376     v8::Handle<v8::Signature> svgPointMethodSignature = v8::Signature::New(isola
      te, functionTemplate, svgPointMethodArgc, svgPointMethodArgv); |  | 
| 5377     prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "svgPointMethod", v8
      ::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8Inte
      rnal::svgPointMethodMethodCallback, v8Undefined(), svgPointMethodSignature, 2)); |  | 
| 5378 |  | 
| 5379     // Custom Signature 'variadicNodeMethod' |  | 
| 5380     const int variadicNodeMethodArgc = 2; |  | 
| 5381     v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr
      gc] = { V8PerIsolateData::from(isolate)->rawDOMTemplate(&V8Node::wrapperTypeInfo
      , currentWorldType), V8PerIsolateData::from(isolate)->rawDOMTemplate(&V8Node::wr
      apperTypeInfo, currentWorldType) }; |  | 
| 5382     v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(i
      solate, functionTemplate, variadicNodeMethodArgc, variadicNodeMethodArgv); |  | 
| 5383     prototypeTemplate->Set(v8::String::NewFromUtf8(isolate, "variadicNodeMethod"
      , v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestObjV8
      Internal::variadicNodeMethodMethodCallback, v8Undefined(), variadicNodeMethodSig
      nature, 2)); |  | 
| 5384     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "deprecatedStaticMeth
      od", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestOb
      jV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::
      Signature>(), 0)); | 5359     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "deprecatedStaticMeth
      od", v8::String::kInternalizedString), v8::FunctionTemplate::New(isolate, TestOb
      jV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(), v8::Local<v8::
      Signature>(), 0)); | 
| 5385     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "st
      aticReadOnlyLongAttr", v8::String::kInternalizedString), TestObjV8Internal::stat
      icReadOnlyLongAttrAttributeGetterCallback, 0, v8::External::New(isolate, 0), sta
      tic_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), 
      static_cast<v8::AccessControl>(v8::DEFAULT)); | 5360     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "st
      aticReadOnlyLongAttr", v8::String::kInternalizedString), TestObjV8Internal::stat
      icReadOnlyLongAttrAttributeGetterCallback, 0, v8::External::New(isolate, 0), sta
      tic_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), 
      static_cast<v8::AccessControl>(v8::DEFAULT)); | 
| 5386     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "st
      aticStringAttr", v8::String::kInternalizedString), TestObjV8Internal::staticStri
      ngAttrAttributeGetterCallback, TestObjV8Internal::staticStringAttrAttributeSette
      rCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8:
      :None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::
      DEFAULT)); | 5361     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "st
      aticStringAttr", v8::String::kInternalizedString), TestObjV8Internal::staticStri
      ngAttrAttributeGetterCallback, TestObjV8Internal::staticStringAttrAttributeSette
      rCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8:
      :None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::
      DEFAULT)); | 
| 5387     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "Te
      stSubObj", v8::String::kInternalizedString), TestObjV8Internal::TestObjConstruct
      orGetter, 0, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestSubO
      bj::wrapperTypeInfo)), static_cast<v8::PropertyAttribute>(v8::DontEnum), v8::Han
      dle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 5362     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "Te
      stSubObj", v8::String::kInternalizedString), TestObjV8Internal::TestObjConstruct
      orGetter, 0, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestSubO
      bj::wrapperTypeInfo)), static_cast<v8::PropertyAttribute>(v8::DontEnum), v8::Han
      dle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 
| 5388     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "de
      precatedStaticReadOnlyAttr", v8::String::kInternalizedString), TestObjV8Internal
      ::deprecatedStaticReadOnlyAttrAttributeGetterCallback, 0, v8::External::New(isol
      ate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSi
      gnature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 5363     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "de
      precatedStaticReadOnlyAttr", v8::String::kInternalizedString), TestObjV8Internal
      ::deprecatedStaticReadOnlyAttrAttributeGetterCallback, 0, v8::External::New(isol
      ate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSi
      gnature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 
| 5389     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "de
      precatedStaticAttr", v8::String::kInternalizedString), TestObjV8Internal::deprec
      atedStaticAttrAttributeGetterCallback, TestObjV8Internal::deprecatedStaticAttrAt
      tributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAt
      tribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessC
      ontrol>(v8::DEFAULT)); | 5364     functionTemplate->SetNativeDataProperty(v8::String::NewFromUtf8(isolate, "de
      precatedStaticAttr", v8::String::kInternalizedString), TestObjV8Internal::deprec
      atedStaticAttrAttributeGetterCallback, TestObjV8Internal::deprecatedStaticAttrAt
      tributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAt
      tribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessC
      ontrol>(v8::DEFAULT)); | 
| 5390 | 5365 | 
| 5391     // Custom toString template | 5366     // Custom toString template | 
| 5392     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin
      g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); | 5367     functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin
      g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); | 
| 5393     return functionTemplate; | 5368     return functionTemplate; | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5469     fromInternalPointer(object)->deref(); | 5444     fromInternalPointer(object)->deref(); | 
| 5470 } | 5445 } | 
| 5471 | 5446 | 
| 5472 template<> | 5447 template<> | 
| 5473 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
      nContext, v8::Isolate* isolate) | 5448 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
      nContext, v8::Isolate* isolate) | 
| 5474 { | 5449 { | 
| 5475     return toV8(impl, creationContext, isolate); | 5450     return toV8(impl, creationContext, isolate); | 
| 5476 } | 5451 } | 
| 5477 | 5452 | 
| 5478 } // namespace WebCore | 5453 } // namespace WebCore | 
| OLD | NEW | 
|---|