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

Issue 8591033: Support globals in frog isolates. (Closed)

Created:
9 years, 1 month ago by Siggi Cherem (dart-lang)
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support globals in frog isolates. Committed: https://code.google.com/p/dart/source/detail?r=1667

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 12

Patch Set 4 : john comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+745 lines, -647 lines) Patch
M frog/corejs.dart View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M frog/evaluator.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M frog/frogsh View 1 2 3 241 chunks +614 lines, -575 lines 0 comments Download
M frog/gen.dart View 1 2 3 5 chunks +43 lines, -13 lines 0 comments Download
M frog/lib/isolate.dart View 1 2 22 chunks +58 lines, -46 lines 0 comments Download
M frog/member.dart View 1 2 3 3 chunks +16 lines, -2 lines 0 comments Download
M frog/value.dart View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M tests/co19/co19-frog.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M tests/isolate/isolate.status View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Siggi Cherem (dart-lang)
This also addresses a few of the comments raised after I submitted the previous CL ...
9 years, 1 month ago (2011-11-18 01:28:09 UTC) #1
Jennifer Messerly
lgtm http://codereview.chromium.org/8591033/diff/5001/frog/gen.dart File frog/gen.dart (right): http://codereview.chromium.org/8591033/diff/5001/frog/gen.dart#newcode373 frog/gen.dart:373: writer.enterBlock('function \$static_init(){'); presumably library top-level variables need to ...
9 years, 1 month ago (2011-11-18 01:46:39 UTC) #2
Jennifer Messerly
http://codereview.chromium.org/8591033/diff/5001/frog/gen.dart File frog/gen.dart (right): http://codereview.chromium.org/8591033/diff/5001/frog/gen.dart#newcode373 frog/gen.dart:373: writer.enterBlock('function \$static_init(){'); On 2011/11/18 01:46:39, John Messerly wrote: > ...
9 years, 1 month ago (2011-11-18 01:47:03 UTC) #3
jimhug
LGTM! On to web workers? http://codereview.chromium.org/8591033/diff/5001/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591033/diff/5001/corelib/src/implementation/hash_map_set.dart#newcode40 corelib/src/implementation/hash_map_set.dart:40: static final _DeletedKeySentinel _DELETED_KEY ...
9 years, 1 month ago (2011-11-18 17:49:17 UTC) #4
Siggi Cherem (dart-lang)
9 years, 1 month ago (2011-11-18 18:33:17 UTC) #5
thanks!

http://codereview.chromium.org/8591033/diff/5001/frog/member.dart
File frog/member.dart (right):

http://codereview.chromium.org/8591033/diff/5001/frog/member.dart#newcode407
frog/member.dart:407: if (declaringType.library == world.dom) {
On 2011/11/18 01:46:39, John Messerly wrote:
> On 2011/11/18 01:28:10, sigmund wrote:
> > I don't like all these subtle cases (here/below), let me know if you think
of
> > something more general here. 
> > 
> > Basically we don't want to move natives into $globals, in the case of the
DOM
> > this is not marked as a native field, maybe it should be?
> 
> yes, if it can be solved by marking native--that would be ideal.
> 
> I think the issue is that there's no way to put "native" on top level
variables.
> :\

yeah :(

http://codereview.chromium.org/8591033/diff/5001/frog/member.dart#newcode765
frog/member.dart:765: declaringType.markUsed();
On 2011/11/18 01:46:39, John Messerly wrote:
> hmmm, we probably don't want to generate an entire type because one static
> method is implicitly closure bound. However, I noticed that "invoke" has the
> same issue. Can you add a TODO here and in MethodMember.invoke?

Sure. Done.

Powered by Google App Engine
This is Rietveld 408576698