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

Issue 9313003: Native GC test breaking on Dartium (Closed)

Created:
8 years, 10 months ago by vsm
Modified:
8 years, 10 months ago
Reviewers:
antonm
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Native GC test breaking on Dartium TEST=NativeGCTest Committed: https://code.google.com/p/dart/source/detail?r=3805

Patch Set 1 #

Patch Set 2 : Add issue number #

Total comments: 9

Patch Set 3 : Streamlined version. #

Total comments: 2

Patch Set 4 : Fixed spacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M client/tests/client/client.status View 1 1 chunk +2 lines, -1 line 0 comments Download
A client/tests/client/dom/NativeGCTest.dart View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vsm
8 years, 10 months ago (2012-02-01 06:24:15 UTC) #1
antonm
https://chromiumcodereview.appspot.com/9313003/diff/2001/client/tests/client/dom/NativeGCTest.dart File client/tests/client/dom/NativeGCTest.dart (right): https://chromiumcodereview.appspot.com/9313003/diff/2001/client/tests/client/dom/NativeGCTest.dart#newcode1 client/tests/client/dom/NativeGCTest.dart:1: #library('NativeGCTest'); why library declaration? https://chromiumcodereview.appspot.com/9313003/diff/2001/client/tests/client/dom/NativeGCTest.dart#newcode1 client/tests/client/dom/NativeGCTest.dart:1: #library('NativeGCTest'); do we ...
8 years, 10 months ago (2012-02-01 12:56:37 UTC) #2
vsm
https://chromiumcodereview.appspot.com/9313003/diff/2001/client/tests/client/dom/NativeGCTest.dart File client/tests/client/dom/NativeGCTest.dart (right): https://chromiumcodereview.appspot.com/9313003/diff/2001/client/tests/client/dom/NativeGCTest.dart#newcode1 client/tests/client/dom/NativeGCTest.dart:1: #library('NativeGCTest'); On 2012/02/01 12:56:37, antonm wrote: > why library ...
8 years, 10 months ago (2012-02-01 15:28:35 UTC) #3
vsm
PTAL
8 years, 10 months ago (2012-02-01 17:52:28 UTC) #4
antonm
8 years, 10 months ago (2012-02-01 18:03:06 UTC) #5
LGTM.

Regarding of relatively fast dense structure: you may use strings, but there is
one v8-specific catch (and probably other VMs as well).  There are cons strings
in v8 which for simple concatenation just record left and right substrings. 
Currently in v8 to flat the string out you can just access a char in it.   So
you may have something like:

s = 'a';

// On each iterations

s += s;
s[s.length - 1];

https://chromiumcodereview.appspot.com/9313003/diff/7001/client/tests/client/...
File client/tests/client/dom/NativeGCTest.dart (right):

https://chromiumcodereview.appspot.com/9313003/diff/7001/client/tests/client/...
client/tests/client/dom/NativeGCTest.dart:18: l[N-1] = i;
nit: spaces around -, please, and I am not sure if you have a space between 1
and ]: if you do, please, remove.

https://chromiumcodereview.appspot.com/9313003/diff/7001/client/tests/client/...
client/tests/client/dom/NativeGCTest.dart:24: Expect.equals(M-1, l[N-1]);
nit: again, spaces around -.

And you main want to use fancy new expect(M - 1).isEqual(l[N - 1]).

Powered by Google App Engine
This is Rietveld 408576698