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

Issue 10447088: Add a new magic element type for annotating types that have Javascript array behavior. (Closed)

Created:
8 years, 6 months ago by ngeoffray
Modified:
8 years, 6 months ago
Reviewers:
ahe, sra1, kasperl
CC:
reviews_dartlang.org, karlklose, Lasse Reichstein Nielsen, sra1
Visibility:
Public.

Description

Add a new magic element kind for annotating types that have Javascript array behavior. Committed: https://code.google.com/p/dart/source/detail?r=8611

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -6 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M lib/compiler/implementation/lib/js_helper.dart View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M lib/compiler/implementation/native_handler.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 5 chunks +12 lines, -5 lines 0 comments Download
M lib/compiler/implementation/warnings.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
ngeoffray
This change is intended to make progress on improving performance on array-like objects in the ...
8 years, 6 months ago (2012-05-30 15:14:03 UTC) #1
floitsch
On 2012/05/30 15:14:03, ngeoffray wrote: > This change is intended to make progress on improving ...
8 years, 6 months ago (2012-05-30 19:03:54 UTC) #2
sra1
Question: does injecting the name this way make it visible by importing the library? Should ...
8 years, 6 months ago (2012-05-30 20:35:39 UTC) #3
ahe
I have been thinking about this. I think the approach makes sense, but I'll like ...
8 years, 6 months ago (2012-05-31 08:29:47 UTC) #4
ngeoffray
PTAL @Stephen: The interface will only be visible to libraries we decide can have access ...
8 years, 6 months ago (2012-06-06 12:20:45 UTC) #5
ngeoffray
Ping
8 years, 6 months ago (2012-06-11 10:19:13 UTC) #6
sra1
lgtm
8 years, 6 months ago (2012-06-12 17:48:37 UTC) #7
ahe
LGTM! https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implementation/compiler.dart#newcode116 lib/compiler/implementation/compiler.dart:116: ClassElement javaScriptIndexingBehaviorInterface; How about jsIndexingBehaviorInterface? https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart ...
8 years, 6 months ago (2012-06-12 18:30:04 UTC) #8
ngeoffray
8 years, 6 months ago (2012-06-13 13:02:42 UTC) #9
Thanks Peter and Stephen

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
File lib/compiler/implementation/compiler.dart (right):

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
lib/compiler/implementation/compiler.dart:116: ClassElement
javaScriptIndexingBehaviorInterface;
On 2012/06/12 18:30:04, ahe wrote:
> How about jsIndexingBehaviorInterface?

Done.

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
File lib/compiler/implementation/lib/js_helper.dart (right):

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
lib/compiler/implementation/lib/js_helper.dart:1079: * visible to anyone, and is
only injected into special lirbaries.
On 2012/06/12 18:30:04, ahe wrote:
> lirbaries -> libraries

Done.

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
File lib/compiler/implementation/native_handler.dart (right):

https://chromiumcodereview.appspot.com/10447088/diff/8001/lib/compiler/implem...
lib/compiler/implementation/native_handler.dart:86:
library.define(compiler.javaScriptIndexingBehaviorInterface, compiler);
On 2012/06/12 18:30:04, ahe wrote:
> For the unit tests, it may make sense to test for null here.

Done.

Powered by Google App Engine
This is Rietveld 408576698