|
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
Total comments: 16
|
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
|
Total messages: 8 (4 generated)
|