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

Issue 6673011: Add v8Locale.Collator (Closed)

Created:
9 years, 9 months ago by jungshik at Google
Modified:
9 years, 7 months ago
CC:
v8-dev, zelidrag
Visibility:
Public.

Description

Add v8Locale.Collator This is a partial implementation of Collator per what's agreed upon at the last ECMAScript meeting + mailing list. Only the following three options are implemented: ignoreAccent, ignoreCase, numeric. ChromeOS and Chrome need this feature for M12. This could be added as chrome extension API. Giiven that we have a rough agreement on the collation part of ECMAScript API, we thought it'd save us some duplicated work adding this to v8 (experimental i18n api) now rather than implementing it in Chrome now and moving it later. BUG=28604 TEST=http://i18nl10n.com/chrome/coll2.html Committed: http://code.google.com/p/v8/source/detail?r=7620

Patch Set 1 #

Total comments: 5

Patch Set 2 : update to the latest draft spec #

Patch Set 3 : fix lint errors #

Patch Set 4 : fix lint errors take2 #

Total comments: 5

Patch Set 5 : address review comment : another checkpoint #

Patch Set 6 : update options handling #

Patch Set 7 : update options handling #

Total comments: 16

Patch Set 8 : exception check wip #

Total comments: 2

Patch Set 9 : exception check working #

Patch Set 10 : updated to the trunk #

Total comments: 1

Patch Set 11 : final: ready for check-in #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -2 lines) Patch
A src/extensions/experimental/collator.h View 1 2 3 4 5 6 7 1 chunk +69 lines, -0 lines 0 comments Download
A src/extensions/experimental/collator.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +218 lines, -0 lines 0 comments Download
M src/extensions/experimental/experimental.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/extensions/experimental/i18n.js View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M src/extensions/experimental/i18n-extension.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/extensions/experimental/i18n-extension.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
jungshik at Google
The CL is not yet ready for the full review. However, I need some help ...
9 years, 9 months ago (2011-03-11 07:05:07 UTC) #1
Nebojša Ćirić
Plus some lint errors... http://codereview.chromium.org/6673011/diff/1/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/1/src/extensions/experimental/collator.cc#newcode39 src/extensions/experimental/collator.cc:39: icu::Collator* Collator::UnpackCollator(v8::Handle<v8::Object> obj) { I ...
9 years, 9 months ago (2011-03-11 21:15:20 UTC) #2
Mads Ager (chromium)
I haven't had the time to look at this today. However, I can quickly explain ...
9 years, 9 months ago (2011-03-14 18:08:09 UTC) #3
jungshik at Google
Thank you for the explanation. Is there any way to make 'array.sort(coll.compare)' work on my ...
9 years, 9 months ago (2011-03-14 23:23:01 UTC) #4
jungshik at Google
9 years, 9 months ago (2011-03-14 23:44:47 UTC) #5
Mads Ager (chromium)
On 2011/03/14 23:23:01, Jungshik Shin wrote: > Thank you for the explanation. > > Is ...
9 years, 9 months ago (2011-03-15 07:55:48 UTC) #6
Nebojša Ćirić
I've presented the problem to EcmaScript body, and they proposed 2 solutions. Q: So if ...
9 years, 9 months ago (2011-03-22 16:02:58 UTC) #7
Nebojša Ćirić
Also, defineProperty is part of Harmony but it seems only Opera doesn't have it (FF4, ...
9 years, 9 months ago (2011-03-22 16:04:17 UTC) #8
Nebojša Ćirić
The question still stands, should we actually do this (.bind) or not, since most of ...
9 years, 9 months ago (2011-03-22 16:30:18 UTC) #9
jungshik at Google
I left alone the binding part as was done initially. So, directly passing 'collator.compare' wouldn't ...
9 years, 8 months ago (2011-04-11 22:53:51 UTC) #10
Nebojša Ćirić
http://codereview.chromium.org/6673011/diff/17002/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/17002/src/extensions/experimental/collator.cc#newcode69 src/extensions/experimental/collator.cc:69: static void ExtractBooleanOption(const v8::Local<v8::Object>& options, Comment on static method? ...
9 years, 8 months ago (2011-04-11 23:10:33 UTC) #11
jungshik at Google
Mads and Nebojša , can you take a look? This won't be cleanly applied to ...
9 years, 8 months ago (2011-04-13 00:22:53 UTC) #12
Mads Ager (google)
http://codereview.chromium.org/6673011/diff/24002/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/24002/src/extensions/experimental/collator.cc#newcode73 src/extensions/experimental/collator.cc:73: bool *result) { bool * -> bool* http://codereview.chromium.org/6673011/diff/24002/src/extensions/experimental/collator.cc#newcode74 src/extensions/experimental/collator.cc:74: ...
9 years, 8 months ago (2011-04-13 13:43:24 UTC) #13
jungshik at Google
http://codereview.chromium.org/6673011/diff/24002/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/24002/src/extensions/experimental/collator.cc#newcode73 src/extensions/experimental/collator.cc:73: bool *result) { On 2011/04/13 13:43:24, ager wrote: > ...
9 years, 8 months ago (2011-04-13 21:36:38 UTC) #14
jungshik at Google
http://codereview.chromium.org/6673011/diff/23003/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/23003/src/extensions/experimental/collator.cc#newcode77 src/extensions/experimental/collator.cc:77: return false; I put up a test page at ...
9 years, 8 months ago (2011-04-13 21:56:32 UTC) #15
jungshik at Google
Below is what's dumped in a terminal when a renderer crashes. Could you enlighten me ...
9 years, 8 months ago (2011-04-13 21:59:04 UTC) #16
jungshik at Google
Mads, can you take another look? Using TryCatch directly instead of Local<TryCatch> works well.
9 years, 8 months ago (2011-04-14 00:19:48 UTC) #17
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6673011/diff/26002/src/extensions/experimental/collator.cc File src/extensions/experimental/collator.cc (right): http://codereview.chromium.org/6673011/diff/26002/src/extensions/experimental/collator.cc#newcode54 src/extensions/experimental/collator.cc:54: // pointing to a break iterator. break iterator ...
9 years, 8 months ago (2011-04-14 08:57:52 UTC) #18
jungshik at Google
9 years, 8 months ago (2011-04-14 19:44:20 UTC) #19
Thank you for the review.

cira landed it in the bleedingedge on my behalf ( r7620 ).

Powered by Google App Engine
This is Rietveld 408576698