Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Issue 2962263002: fix #30030, fix #27327 - fix tearoffs and various Object member bugs (Closed)

Created:
3 years, 5 months ago by Jennifer Messerly
Modified:
3 years, 5 months ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix #30030, fix #27327 - fix tearoffs and various Object member bugs this includes various cleanups found along the way: * various issues with JS annotations, see #30043 * getGenericClass is now optimized when used in a JS builtin with a Type literal * typed list literals should be slightly faster to create * memoized getters used by dart:_runtime should be faster * registerExtension should be a tad faster, and now understands JSArray * dart.bind "safeName" hack gone in codegenerator * JSArray<E>.runtimeType returns List<E> * JSArray<E>.noSuchMethod works * cleans up code that generates `setExtensionBaseClass` (used only by JSArray) * _throwUnsafe helper for generating a `throw` in --unsafe compile mode * fix tearoff of JS interop types (_emitSimpleIdentifier) * fix TODO about splitting LazyJSType and AnonymousJSType * fix is/as/cast methods on TypeRep and related classes * fix codegenerator to not tearoff "hashCode" and "runtimeType" (they are not methods) * fix NoSuchMethodError.toString() (update via dart2js sdk impl) R=vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/5533a256cbb12c9db30650bf2418fb2a872f6854

Patch Set 1 #

Total comments: 16

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -466 lines) Patch
M pkg/dev_compiler/lib/sdk/ddc_sdk.sum View 1 Binary file 0 comments Download
M pkg/dev_compiler/lib/src/compiler/code_generator.dart View 1 27 chunks +176 lines, -202 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/js_interop.dart View 1 1 chunk +4 lines, -7 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/dev_compiler/test/browser/language_tests.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M pkg/dev_compiler/test/codegen_expected/unresolved_names.js View 1 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart View 1 1 chunk +19 lines, -27 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart View 1 4 chunks +23 lines, -41 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart View 1 5 chunks +50 lines, -28 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart View 1 2 chunks +4 lines, -28 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/types.dart View 1 3 chunks +77 lines, -87 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart View 1 3 chunks +17 lines, -19 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/interceptors.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/js_array.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language_strong/no_such_method_native_test.dart View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tests/language_strong/runtime_type_test.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language_strong/tearoff_dynamic_test.dart View 1 1 chunk +157 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jennifer Messerly
3 years, 5 months ago (2017-06-30 03:17:12 UTC) #4
vsm
lgtm https://codereview.chromium.org/2962263002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart File pkg/dev_compiler/lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2962263002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart#newcode385 pkg/dev_compiler/lib/src/compiler/code_generator.dart:385: String _getJSNameWithoutGlobal(Element e) { This will still support ...
3 years, 5 months ago (2017-06-30 18:08:48 UTC) #5
Jennifer Messerly
Thanks! I think I've addressed all of these so landing, but let me know if ...
3 years, 5 months ago (2017-07-05 21:17:16 UTC) #6
Jennifer Messerly
3 years, 5 months ago (2017-07-05 21:18:06 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:10001) manually as
5533a256cbb12c9db30650bf2418fb2a872f6854 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698