| OLD | NEW |
| 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
| 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
| 5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
| 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
| 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
| (...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 | 1419 |
| 1420 if ($exposeJSAccessors) { | 1420 if ($exposeJSAccessors) { |
| 1421 $code .= "static void ${attrName}AttributeGetterCallback${forMainWorldSu
ffix}(const v8::FunctionCallbackInfo<v8::Value>& info)\n"; | 1421 $code .= "static void ${attrName}AttributeGetterCallback${forMainWorldSu
ffix}(const v8::FunctionCallbackInfo<v8::Value>& info)\n"; |
| 1422 } else { | 1422 } else { |
| 1423 $code .= "static void ${attrName}AttributeGetterCallback${forMainWorldSu
ffix}(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)\n"
; | 1423 $code .= "static void ${attrName}AttributeGetterCallback${forMainWorldSu
ffix}(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)\n"
; |
| 1424 } | 1424 } |
| 1425 $code .= "{\n"; | 1425 $code .= "{\n"; |
| 1426 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMGetter\");\n"; | 1426 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMGetter\");\n"; |
| 1427 $code .= GenerateFeatureObservation($attrExt->{"MeasureAs"}); | 1427 $code .= GenerateFeatureObservation($attrExt->{"MeasureAs"}); |
| 1428 $code .= GenerateDeprecationNotification($attrExt->{"DeprecateAs"}); | 1428 $code .= GenerateDeprecationNotification($attrExt->{"DeprecateAs"}); |
| 1429 $code .= GenerateAttrUsedAsNodeReceiverCheck($interface); |
| 1429 if (HasActivityLogging($forMainWorldSuffix, $attrExt, "Getter")) { | 1430 if (HasActivityLogging($forMainWorldSuffix, $attrExt, "Getter")) { |
| 1430 $code .= GenerateActivityLogging("Getter", $interface, "${attrName}"); | 1431 $code .= GenerateActivityLogging("Getter", $interface, "${attrName}"); |
| 1431 } | 1432 } |
| 1432 if (HasCustomGetter($attrExt)) { | 1433 if (HasCustomGetter($attrExt)) { |
| 1433 $code .= " ${v8ClassName}::${attrName}AttributeGetterCustom(info);\n"
; | 1434 $code .= " ${v8ClassName}::${attrName}AttributeGetterCustom(info);\n"
; |
| 1434 } else { | 1435 } else { |
| 1435 $code .= " ${implClassName}V8Internal::${attrName}AttributeGetter${fo
rMainWorldSuffix}(info);\n"; | 1436 $code .= " ${implClassName}V8Internal::${attrName}AttributeGetter${fo
rMainWorldSuffix}(info);\n"; |
| 1436 } | 1437 } |
| 1437 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; | 1438 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; |
| 1438 $code .= "}\n"; | 1439 $code .= "}\n"; |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 $code .= "static void ${attrName}AttributeSetterCallback${forMainWorldSu
ffix}(const v8::FunctionCallbackInfo<v8::Value>& info)\n"; | 1882 $code .= "static void ${attrName}AttributeSetterCallback${forMainWorldSu
ffix}(const v8::FunctionCallbackInfo<v8::Value>& info)\n"; |
| 1882 $code .= "{\n"; | 1883 $code .= "{\n"; |
| 1883 $code .= " v8::Local<v8::Value> jsValue = info[0];\n"; | 1884 $code .= " v8::Local<v8::Value> jsValue = info[0];\n"; |
| 1884 } else { | 1885 } else { |
| 1885 $code .= "static void ${attrName}AttributeSetterCallback${forMainWorldSu
ffix}(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info)\n"; | 1886 $code .= "static void ${attrName}AttributeSetterCallback${forMainWorldSu
ffix}(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info)\n"; |
| 1886 $code .= "{\n"; | 1887 $code .= "{\n"; |
| 1887 } | 1888 } |
| 1888 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMSetter\");\n"; | 1889 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMSetter\");\n"; |
| 1889 $code .= GenerateFeatureObservation($attrExt->{"MeasureAs"}); | 1890 $code .= GenerateFeatureObservation($attrExt->{"MeasureAs"}); |
| 1890 $code .= GenerateDeprecationNotification($attrExt->{"DeprecateAs"}); | 1891 $code .= GenerateDeprecationNotification($attrExt->{"DeprecateAs"}); |
| 1892 $code .= GenerateAttrUsedAsNodeReceiverCheck($interface); |
| 1893 $code .= GenerateAttrUsedAsNodeParameterCheckForSetter($attribute->type); |
| 1891 if (HasActivityLogging($forMainWorldSuffix, $attrExt, "Setter")) { | 1894 if (HasActivityLogging($forMainWorldSuffix, $attrExt, "Setter")) { |
| 1892 $code .= GenerateActivityLogging("Setter", $interface, "${attrName}"); | 1895 $code .= GenerateActivityLogging("Setter", $interface, "${attrName}"); |
| 1893 } | 1896 } |
| 1894 $code .= GenerateCustomElementInvocationScopeIfNeeded($attrExt); | 1897 $code .= GenerateCustomElementInvocationScopeIfNeeded($attrExt); |
| 1895 if (HasCustomSetter($attribute)) { | 1898 if (HasCustomSetter($attribute)) { |
| 1896 $code .= " ${v8ClassName}::${attrName}AttributeSetterCustom(jsValue,
info);\n"; | 1899 $code .= " ${v8ClassName}::${attrName}AttributeSetterCustom(jsValue,
info);\n"; |
| 1897 } else { | 1900 } else { |
| 1898 $code .= " ${implClassName}V8Internal::${attrName}AttributeSetter${fo
rMainWorldSuffix}(jsValue, info);\n"; | 1901 $code .= " ${implClassName}V8Internal::${attrName}AttributeSetter${fo
rMainWorldSuffix}(jsValue, info);\n"; |
| 1899 } | 1902 } |
| 1900 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; | 1903 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2250 last; | 2253 last; |
| 2251 } | 2254 } |
| 2252 $numParameters++; | 2255 $numParameters++; |
| 2253 } | 2256 } |
| 2254 if (!$hasVariadic) { | 2257 if (!$hasVariadic) { |
| 2255 push(@orExpression, GenerateParametersCheckExpression($numParameters, $f
unction)); | 2258 push(@orExpression, GenerateParametersCheckExpression($numParameters, $f
unction)); |
| 2256 } | 2259 } |
| 2257 return ($numMandatoryParams, join(" || ", @orExpression)); | 2260 return ($numMandatoryParams, join(" || ", @orExpression)); |
| 2258 } | 2261 } |
| 2259 | 2262 |
| 2263 sub GenerateAttrUsedAsNodeReceiverCheck |
| 2264 { |
| 2265 my $interface = shift; |
| 2266 |
| 2267 if ($interface->name eq "Node") { |
| 2268 AddToImplIncludes("core/frame/UseCounter.h"); |
| 2269 AddToImplIncludes("V8Attr.h"); |
| 2270 return <<END; |
| 2271 if (V8DOMWrapper::isWrapperOfType(info.Holder(), &V8Attr::wrapperTypeInfo)) |
| 2272 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodeRe
ceiver); |
| 2273 END |
| 2274 } |
| 2275 |
| 2276 return ""; |
| 2277 } |
| 2278 |
| 2279 sub GenerateAttrUsedAsNodeParameterCheck |
| 2280 { |
| 2281 my $function = shift; |
| 2282 |
| 2283 my $code = ""; |
| 2284 my $paramIndex = 0; |
| 2285 |
| 2286 foreach my $parameter (@{$function->parameters}) { |
| 2287 if ($parameter->type eq "Node") { |
| 2288 $code .= " if (V8DOMWrapper::isWrapperOfType(info[$paramIndex], &
V8Attr::wrapperTypeInfo))\n"; |
| 2289 $code .= " UseCounter::count(activeExecutionContext(), UseCou
nter::AttrUsedAsNodeParameter);\n"; |
| 2290 } |
| 2291 |
| 2292 $paramIndex += 1; |
| 2293 } |
| 2294 |
| 2295 if ($code) { |
| 2296 AddToImplIncludes("core/frame/UseCounter.h"); |
| 2297 AddToImplIncludes("V8Attr.h"); |
| 2298 } |
| 2299 |
| 2300 return $code; |
| 2301 } |
| 2302 |
| 2303 sub GenerateAttrUsedAsNodeParameterCheckForSetter |
| 2304 { |
| 2305 my $type = shift; |
| 2306 |
| 2307 if ($type eq "Node") { |
| 2308 AddToImplIncludes("core/frame/UseCounter.h"); |
| 2309 AddToImplIncludes("V8Attr.h"); |
| 2310 return <<END; |
| 2311 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo)) |
| 2312 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa
rameter); |
| 2313 END |
| 2314 } |
| 2315 |
| 2316 return ""; |
| 2317 } |
| 2318 |
| 2260 sub GenerateOverloadedFunction | 2319 sub GenerateOverloadedFunction |
| 2261 { | 2320 { |
| 2262 my $function = shift; | 2321 my $function = shift; |
| 2263 my $interface = shift; | 2322 my $interface = shift; |
| 2264 my $forMainWorldSuffix = shift; | 2323 my $forMainWorldSuffix = shift; |
| 2265 | 2324 |
| 2266 # Generate code for choosing the correct overload to call. Overloads are | 2325 # Generate code for choosing the correct overload to call. Overloads are |
| 2267 # chosen based on the total number of arguments passed and the type of | 2326 # chosen based on the total number of arguments passed and the type of |
| 2268 # values passed in non-primitive argument slots. When more than a single | 2327 # values passed in non-primitive argument slots. When more than a single |
| 2269 # overload is applicable, precedence is given according to the order of | 2328 # overload is applicable, precedence is given according to the order of |
| 2270 # declaration in the IDL. | 2329 # declaration in the IDL. |
| 2271 | 2330 |
| 2272 my $name = $function->name; | 2331 my $name = $function->name; |
| 2273 my $interfaceName = $interface->name; | 2332 my $interfaceName = $interface->name; |
| 2274 my $implClassName = GetImplName($interface); | 2333 my $implClassName = GetImplName($interface); |
| 2275 | 2334 |
| 2276 my $conditionalString = GenerateConditionalString($function); | 2335 my $conditionalString = GenerateConditionalString($function); |
| 2277 my $leastNumMandatoryParams = 255; | 2336 my $leastNumMandatoryParams = 255; |
| 2278 | 2337 |
| 2279 my $code = ""; | 2338 my $code = ""; |
| 2280 $code .= "#if ${conditionalString}\n\n" if $conditionalString; | 2339 $code .= "#if ${conditionalString}\n\n" if $conditionalString; |
| 2281 $code .= <<END; | 2340 $code .= <<END; |
| 2282 static void ${name}Method${forMainWorldSuffix}(const v8::FunctionCallbackInfo<v8
::Value>& info) | 2341 static void ${name}Method${forMainWorldSuffix}(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 2283 { | 2342 { |
| 2284 END | 2343 END |
| 2285 $code .= GenerateFeatureObservation($function->extendedAttributes->{"Measure
As"}); | 2344 $code .= GenerateFeatureObservation($function->extendedAttributes->{"Measure
As"}); |
| 2286 $code .= GenerateDeprecationNotification($function->extendedAttributes->{"De
precateAs"}); | 2345 $code .= GenerateDeprecationNotification($function->extendedAttributes->{"De
precateAs"}); |
| 2346 $code .= GenerateAttrUsedAsNodeReceiverCheck($interface); |
| 2287 | 2347 |
| 2288 foreach my $overload (@{$function->{overloads}}) { | 2348 foreach my $overload (@{$function->{overloads}}) { |
| 2349 $code .= GenerateAttrUsedAsNodeParameterCheck($overload); |
| 2289 my ($numMandatoryParams, $parametersCheck) = GenerateFunctionParametersC
heck($overload); | 2350 my ($numMandatoryParams, $parametersCheck) = GenerateFunctionParametersC
heck($overload); |
| 2290 $leastNumMandatoryParams = $numMandatoryParams if ($numMandatoryParams <
$leastNumMandatoryParams); | 2351 $leastNumMandatoryParams = $numMandatoryParams if ($numMandatoryParams <
$leastNumMandatoryParams); |
| 2291 $code .= " if ($parametersCheck) {\n"; | 2352 $code .= " if ($parametersCheck) {\n"; |
| 2292 my $overloadedIndexString = $overload->{overloadIndex}; | 2353 my $overloadedIndexString = $overload->{overloadIndex}; |
| 2293 $code .= " ${name}${overloadedIndexString}Method${forMainWorldSuf
fix}(info);\n"; | 2354 $code .= " ${name}${overloadedIndexString}Method${forMainWorldSuf
fix}(info);\n"; |
| 2294 $code .= " return;\n"; | 2355 $code .= " return;\n"; |
| 2295 $code .= " }\n"; | 2356 $code .= " }\n"; |
| 2296 } | 2357 } |
| 2297 if ($leastNumMandatoryParams >= 1) { | 2358 if ($leastNumMandatoryParams >= 1) { |
| 2298 $code .= " ExceptionState exceptionState(ExceptionState::ExecutionCon
text, \"${name}\", \"${interfaceName}\", info.Holder(), info.GetIsolate());\n"; | 2359 $code .= " ExceptionState exceptionState(ExceptionState::ExecutionCon
text, \"${name}\", \"${interfaceName}\", info.Holder(), info.GetIsolate());\n"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 my $conditionalString = GenerateConditionalString($function); | 2393 my $conditionalString = GenerateConditionalString($function); |
| 2333 my $code = ""; | 2394 my $code = ""; |
| 2334 $code .= "#if ${conditionalString}\n" if $conditionalString; | 2395 $code .= "#if ${conditionalString}\n" if $conditionalString; |
| 2335 $code .= <<END; | 2396 $code .= <<END; |
| 2336 static void ${name}MethodCallback${forMainWorldSuffix}(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 2397 static void ${name}MethodCallback${forMainWorldSuffix}(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 2337 { | 2398 { |
| 2338 END | 2399 END |
| 2339 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMMethod\");\n"; | 2400 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"Blink\", \"DOMMethod\");\n"; |
| 2340 $code .= GenerateFeatureObservation($function->extendedAttributes->{"Measure
As"}); | 2401 $code .= GenerateFeatureObservation($function->extendedAttributes->{"Measure
As"}); |
| 2341 $code .= GenerateDeprecationNotification($function->extendedAttributes->{"De
precateAs"}); | 2402 $code .= GenerateDeprecationNotification($function->extendedAttributes->{"De
precateAs"}); |
| 2403 $code .= GenerateAttrUsedAsNodeReceiverCheck($interface); |
| 2404 $code .= GenerateAttrUsedAsNodeParameterCheck($function); |
| 2342 if (HasActivityLogging($forMainWorldSuffix, $function->extendedAttributes, "
Access")) { | 2405 if (HasActivityLogging($forMainWorldSuffix, $function->extendedAttributes, "
Access")) { |
| 2343 $code .= GenerateActivityLogging("Method", $interface, "${name}"); | 2406 $code .= GenerateActivityLogging("Method", $interface, "${name}"); |
| 2344 } | 2407 } |
| 2345 if (HasCustomMethod($function->extendedAttributes)) { | 2408 if (HasCustomMethod($function->extendedAttributes)) { |
| 2346 $code .= " ${v8ClassName}::${name}MethodCustom(info);\n"; | 2409 $code .= " ${v8ClassName}::${name}MethodCustom(info);\n"; |
| 2347 } else { | 2410 } else { |
| 2348 $code .= " ${implClassName}V8Internal::${name}Method${forMainWorldSuf
fix}(info);\n"; | 2411 $code .= " ${implClassName}V8Internal::${name}Method${forMainWorldSuf
fix}(info);\n"; |
| 2349 } | 2412 } |
| 2350 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; | 2413 $code .= " TRACE_EVENT_SET_SAMPLING_STATE(\"V8\", \"V8Execution\");\n"; |
| 2351 $code .= "}\n"; | 2414 $code .= "}\n"; |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3728 my $methodName = GetImplName($indexedSetterFunction); | 3791 my $methodName = GetImplName($indexedSetterFunction); |
| 3729 my $interfaceName = $interface->name; | 3792 my $interfaceName = $interface->name; |
| 3730 | 3793 |
| 3731 my $type = $indexedSetterFunction->parameters->[1]->type; | 3794 my $type = $indexedSetterFunction->parameters->[1]->type; |
| 3732 my $raisesExceptions = $indexedSetterFunction->extendedAttributes->{"RaisesE
xception"}; | 3795 my $raisesExceptions = $indexedSetterFunction->extendedAttributes->{"RaisesE
xception"}; |
| 3733 my $treatNullAs = $indexedSetterFunction->parameters->[1]->extendedAttribute
s->{"TreatNullAs"}; | 3796 my $treatNullAs = $indexedSetterFunction->parameters->[1]->extendedAttribute
s->{"TreatNullAs"}; |
| 3734 my $treatUndefinedAs = $indexedSetterFunction->parameters->[1]->extendedAttr
ibutes->{"TreatUndefinedAs"}; | 3797 my $treatUndefinedAs = $indexedSetterFunction->parameters->[1]->extendedAttr
ibutes->{"TreatUndefinedAs"}; |
| 3735 | 3798 |
| 3736 my $code = "static void indexedPropertySetter(uint32_t index, v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)\n"; | 3799 my $code = "static void indexedPropertySetter(uint32_t index, v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)\n"; |
| 3737 $code .= "{\n"; | 3800 $code .= "{\n"; |
| 3801 $code .= GenerateAttrUsedAsNodeParameterCheckForSetter($type); |
| 3738 | 3802 |
| 3739 my $extraArguments = ""; | 3803 my $extraArguments = ""; |
| 3740 if ($raisesExceptions || IsIntegerType($type)) { | 3804 if ($raisesExceptions || IsIntegerType($type)) { |
| 3741 $code .= " ExceptionState exceptionState(info.Holder(), info.GetIsola
te());\n"; | 3805 $code .= " ExceptionState exceptionState(info.Holder(), info.GetIsola
te());\n"; |
| 3742 if ($raisesExceptions) { | 3806 if ($raisesExceptions) { |
| 3743 $extraArguments = ", exceptionState"; | 3807 $extraArguments = ", exceptionState"; |
| 3744 } | 3808 } |
| 3745 } | 3809 } |
| 3746 | 3810 |
| 3747 my $asSetterValue = 0; | 3811 my $asSetterValue = 0; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4038 my $methodName = GetImplName($namedSetterFunction); | 4102 my $methodName = GetImplName($namedSetterFunction); |
| 4039 my $interfaceName = $interface->name; | 4103 my $interfaceName = $interface->name; |
| 4040 | 4104 |
| 4041 my $type = $namedSetterFunction->parameters->[1]->type; | 4105 my $type = $namedSetterFunction->parameters->[1]->type; |
| 4042 my $raisesExceptions = $namedSetterFunction->extendedAttributes->{"RaisesExc
eption"}; | 4106 my $raisesExceptions = $namedSetterFunction->extendedAttributes->{"RaisesExc
eption"}; |
| 4043 my $treatNullAs = $namedSetterFunction->parameters->[1]->extendedAttributes-
>{"TreatNullAs"}; | 4107 my $treatNullAs = $namedSetterFunction->parameters->[1]->extendedAttributes-
>{"TreatNullAs"}; |
| 4044 my $treatUndefinedAs = $namedSetterFunction->parameters->[1]->extendedAttrib
utes->{"TreatUndefinedAs"}; | 4108 my $treatUndefinedAs = $namedSetterFunction->parameters->[1]->extendedAttrib
utes->{"TreatUndefinedAs"}; |
| 4045 | 4109 |
| 4046 my $code = "static void namedPropertySetter(v8::Local<v8::String> name, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)\n"; | 4110 my $code = "static void namedPropertySetter(v8::Local<v8::String> name, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)\n"; |
| 4047 $code .= "{\n"; | 4111 $code .= "{\n"; |
| 4112 $code .= GenerateAttrUsedAsNodeParameterCheckForSetter($type); |
| 4048 if (!$namedSetterFunction->extendedAttributes->{"OverrideBuiltins"}) { | 4113 if (!$namedSetterFunction->extendedAttributes->{"OverrideBuiltins"}) { |
| 4049 $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(n
ame).IsEmpty())\n"; | 4114 $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(n
ame).IsEmpty())\n"; |
| 4050 $code .= " return;\n"; | 4115 $code .= " return;\n"; |
| 4051 $code .= " if (info.Holder()->HasRealNamedCallbackProperty(name))\n"; | 4116 $code .= " if (info.Holder()->HasRealNamedCallbackProperty(name))\n"; |
| 4052 $code .= " return;\n"; | 4117 $code .= " return;\n"; |
| 4053 $code .= " if (info.Holder()->HasRealNamedProperty(name))\n"; | 4118 $code .= " if (info.Holder()->HasRealNamedProperty(name))\n"; |
| 4054 $code .= " return;\n"; | 4119 $code .= " return;\n"; |
| 4055 } | 4120 } |
| 4056 | 4121 |
| 4057 my $extraArguments = ""; | 4122 my $extraArguments = ""; |
| (...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6391 if ($parameter->type eq "SerializedScriptValue") { | 6456 if ($parameter->type eq "SerializedScriptValue") { |
| 6392 return 1; | 6457 return 1; |
| 6393 } elsif (IsIntegerType($parameter->type)) { | 6458 } elsif (IsIntegerType($parameter->type)) { |
| 6394 return 1; | 6459 return 1; |
| 6395 } | 6460 } |
| 6396 } | 6461 } |
| 6397 return 0; | 6462 return 0; |
| 6398 } | 6463 } |
| 6399 | 6464 |
| 6400 1; | 6465 1; |
| OLD | NEW |