Chromium Code Reviews| Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart |
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
| index 02ef267082e332bf5b6d1e49159a20c8eecb49e0..fbc74d3cb3131bdc6a62d0e027a493aa8f31d10b 100644 |
| --- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
| +++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
| @@ -2318,7 +2318,7 @@ abstract class Closure implements Function { |
| throw 'Error in reflectionInfo.'; |
| } |
| - JS('', '#[#] = #', prototype, JS_SIGNATURE_NAME(), signatureFunction); |
| + JS('', '#[#] = #', prototype, JS_GET_NAME(JsGetName.SIGNATURE_NAME), signatureFunction); |
|
herhut
2015/06/03 08:58:28
Long line...
|
| JS('', '#[#] = #', prototype, callName, trampoline); |
| for (int i = 1; i < functions.length; i++) { |
| @@ -3221,28 +3221,28 @@ class RuntimeFunctionType extends RuntimeType { |
| _extractFunctionTypeObjectFrom(o) { |
| var interceptor = getInterceptor(o); |
| - return JS('bool', '# in #', JS_SIGNATURE_NAME(), interceptor) |
| - ? JS('', '#[#]()', interceptor, JS_SIGNATURE_NAME()) |
| + return JS('bool', '# in #', JS_GET_NAME(JsGetName.SIGNATURE_NAME), interceptor) |
|
herhut
2015/06/03 08:58:28
Long line...
|
| + ? JS('', '#[#]()', interceptor, JS_GET_NAME(JsGetName.SIGNATURE_NAME)) |
| : null; |
| } |
| toRti() { |
| var result = createDartFunctionTypeRti(); |
| if (isVoid) { |
| - JS('', '#[#] = true', result, JS_FUNCTION_TYPE_VOID_RETURN_TAG()); |
| + JS('', '#[#] = true', result, JS_GET_NAME(JsGetName.FUNCTION_TYPE_VOID_RETURN_TAG)); |
|
herhut
2015/06/03 08:58:28
Long line...
|
| } else { |
| if (returnType is! DynamicRuntimeType) { |
| - JS('', '#[#] = #', result, JS_FUNCTION_TYPE_RETURN_TYPE_TAG(), |
| + JS('', '#[#] = #', result, JS_GET_NAME(JsGetName.FUNCTION_TYPE_RETURN_TYPE_TAG), |
|
herhut
2015/06/03 08:58:28
Long line...
|
| returnType.toRti()); |
| } |
| } |
| if (parameterTypes != null && !parameterTypes.isEmpty) { |
| - JS('', '#[#] = #', result, JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG(), |
| + JS('', '#[#] = #', result, JS_GET_NAME(JsGetName.FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG), |
|
herhut
2015/06/03 08:58:27
Long line...
|
| listToRti(parameterTypes)); |
| } |
| if (optionalParameterTypes != null && !optionalParameterTypes.isEmpty) { |
| - JS('', '#[#] = #', result, JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG(), |
| + JS('', '#[#] = #', result, JS_GET_NAME(JsGetName.FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG), |
|
herhut
2015/06/03 08:58:27
Long line...
|
| listToRti(optionalParameterTypes)); |
| } |
| @@ -3254,7 +3254,7 @@ class RuntimeFunctionType extends RuntimeType { |
| var rti = JS('', '#[#]', namedParameters, name).toRti(); |
| JS('', '#[#] = #', namedRti, name, rti); |
| } |
| - JS('', '#[#] = #', result, JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG(), |
| + JS('', '#[#] = #', result, JS_GET_NAME(JsGetName.FUNCTION_TYPE_NAMED_PARAMETERS_TAG), |
|
herhut
2015/06/03 08:58:27
Long line...
|
| namedRti); |
| } |