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