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

Issue 10065015: Reapply "Reduce size by emitting $.foo instead of Isolate.prototype.foo." (Closed)

Created:
8 years, 8 months ago by floitsch
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Reapply "Reduce size by emitting $.foo instead of Isolate.prototype.foo." This reapplies (a fixed version of) 6459 which had been reverted with 6460. Committed: https://code.google.com/p/dart/source/detail?r=6461

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -54 lines) Patch
M frog/tests/leg/src/ClassCodegenTest.dart View 3 chunks +8 lines, -13 lines 2 comments Download
M frog/tests/leg/src/NoDuplicateConstructorBodyTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/emitter.dart View 16 chunks +41 lines, -32 lines 0 comments Download
M lib/compiler/implementation/namer.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M lib/compiler/implementation/native_emitter.dart View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
Only needed to adjust the tests. Submitting TBR. Original CL has already been TBRed: https://chromiumcodereview.appspot.com//10052020
8 years, 8 months ago (2012-04-12 13:26:05 UTC) #1
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10065015/diff/1/frog/tests/leg/src/ClassCodegenTest.dart File frog/tests/leg/src/ClassCodegenTest.dart (right): https://chromiumcodereview.appspot.com/10065015/diff/1/frog/tests/leg/src/ClassCodegenTest.dart#newcode67 frog/tests/leg/src/ClassCodegenTest.dart:67: Expect.isTrue(generated.contains("\$.A = function A() {\n};")); You can use ...
8 years, 8 months ago (2012-04-13 08:38:32 UTC) #2
floitsch
8 years, 8 months ago (2012-04-13 08:59:59 UTC) #3
https://chromiumcodereview.appspot.com/10065015/diff/1/frog/tests/leg/src/Cla...
File frog/tests/leg/src/ClassCodegenTest.dart (right):

https://chromiumcodereview.appspot.com/10065015/diff/1/frog/tests/leg/src/Cla...
frog/tests/leg/src/ClassCodegenTest.dart:67:
Expect.isTrue(generated.contains("\$.A = function A() {\n};"));
On 2012/04/13 08:38:32, Lasse Reichstein Nielsen wrote:
> You can use a raw string to avoid the escaped $ (like below).
> Seems fragile to test the exact whitespace between { and }. We might avoid
> inserting the newline. Try to use "\s*" instead.

I would prefer keeping a string and not a regexp here. Therefore I cannot use a
raw-string (for the reason you mentioned).
Note that the regexp would need to escape the '$' again (since it would
otherwise be seen as line-end).

Powered by Google App Engine
This is Rietveld 408576698