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

Issue 26092003: Maintain referential integrity of proxy instances in dart:js (Closed)

Created:
7 years, 2 months ago by justinfagnani
Modified:
7 years, 2 months ago
Reviewers:
vsm, alexandre.ardhuin, ahe
CC:
reviews_dartlang.org, Jacob
Visibility:
Public.

Description

Maintain referential integrity of proxy instances in dart:js Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject R=ahe@google.com, alexandre.ardhuin@gmail.com Committed: https://code.google.com/p/dart/source/detail?r=28686

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Add proxy stability for Dart->JS #

Total comments: 12

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : fix for safari and firefox #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -118 lines) Patch
M pkg/browser/lib/interop.js View 1 2 3 4 5 6 7 8 7 chunks +45 lines, -13 lines 0 comments Download
M sdk/lib/js/dart2js/js_dart2js.dart View 1 2 3 4 5 6 7 6 chunks +89 lines, -8 lines 0 comments Download
M sdk/lib/js/dartium/js_dartium.dart View 1 2 3 4 5 chunks +114 lines, -78 lines 0 comments Download
M tests/html/js_test.dart View 1 2 3 4 5 6 7 4 chunks +57 lines, -19 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
justinfagnani
https://codereview.chromium.org/26092003/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/26092003/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart#newcode170 sdk/lib/js/dart2js/js_dart2js.dart:170: const _DART_OBJECT_PROPERTY_NAME = r'_$dart_dartObject'; Peter, how do I generate ...
7 years, 2 months ago (2013-10-06 00:37:45 UTC) #1
alexandre.ardhuin
https://codereview.chromium.org/26092003/diff/9001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/26092003/diff/9001/pkg/browser/lib/interop.js#newcode262 pkg/browser/lib/interop.js:262: this.map[ref] = obj; Move this line in the above ...
7 years, 2 months ago (2013-10-07 08:56:54 UTC) #2
justinfagnani
Thanks! PTAL https://codereview.chromium.org/26092003/diff/9001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/26092003/diff/9001/pkg/browser/lib/interop.js#newcode262 pkg/browser/lib/interop.js:262: this.map[ref] = obj; On 2013/10/07 08:56:54, alexandre.ardhuin ...
7 years, 2 months ago (2013-10-07 17:49:13 UTC) #3
alexandre.ardhuin
https://codereview.chromium.org/26092003/diff/18001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/26092003/diff/18001/sdk/lib/js/dart2js/js_dart2js.dart#newcode204 sdk/lib/js/dart2js/js_dart2js.dart:204: (o) => JsFunction._fromJs(o)); "new" is missing. https://codereview.chromium.org/26092003/diff/18001/sdk/lib/js/dart2js/js_dart2js.dart#newcode209 sdk/lib/js/dart2js/js_dart2js.dart:209: (o) ...
7 years, 2 months ago (2013-10-07 19:41:30 UTC) #4
justinfagnani
https://codereview.chromium.org/26092003/diff/18001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/26092003/diff/18001/sdk/lib/js/dart2js/js_dart2js.dart#newcode204 sdk/lib/js/dart2js/js_dart2js.dart:204: (o) => JsFunction._fromJs(o)); On 2013/10/07 19:41:30, alexandre.ardhuin wrote: > ...
7 years, 2 months ago (2013-10-07 20:17:51 UTC) #5
alexandre.ardhuin
The tests are failling on dartium. We have to keep the same kind of directionnal ...
7 years, 2 months ago (2013-10-08 08:36:44 UTC) #6
justinfagnani
Thanks! I fixed proxy identity in Dartium in patch set 5. I'll address the other ...
7 years, 2 months ago (2013-10-10 22:24:18 UTC) #7
justinfagnani
7 years, 2 months ago (2013-10-10 22:24:50 UTC) #8
justinfagnani
Addressed Alexandre's comments https://chromiumcodereview.appspot.com/26092003/diff/27001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://chromiumcodereview.appspot.com/26092003/diff/27001/sdk/lib/js/dart2js/js_dart2js.dart#newcode58 sdk/lib/js/dart2js/js_dart2js.dart:58: '}(#, #, #)', DART_CLOSURE_TO_JS(_callDartFunction), f, _captureThis); ...
7 years, 2 months ago (2013-10-10 23:00:07 UTC) #9
ahe
dart2js changes LGTM https://codereview.chromium.org/26092003/diff/40001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/26092003/diff/40001/pkg/browser/lib/interop.js#newcode265 pkg/browser/lib/interop.js:265: Object.defineProperty(obj, _dartRefPropertyName, { value: ref }); ...
7 years, 2 months ago (2013-10-11 12:54:40 UTC) #10
alexandre.ardhuin
lgtm https://codereview.chromium.org/26092003/diff/40001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/26092003/diff/40001/pkg/browser/lib/interop.js#newcode265 pkg/browser/lib/interop.js:265: Object.defineProperty(obj, _dartRefPropertyName, { value: ref }); On 2013/10/11 ...
7 years, 2 months ago (2013-10-11 13:52:52 UTC) #11
justinfagnani
https://chromiumcodereview.appspot.com/26092003/diff/40001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://chromiumcodereview.appspot.com/26092003/diff/40001/sdk/lib/js/dart2js/js_dart2js.dart#newcode65 sdk/lib/js/dart2js/js_dart2js.dart:65: var dartArgs = arguments.map(_convertToDart).toList(growable: false); On 2013/10/11 12:54:40, ahe ...
7 years, 2 months ago (2013-10-11 18:47:09 UTC) #12
justinfagnani
I had to add a workaround for objects that aren't extensible, like some native objects ...
7 years, 2 months ago (2013-10-12 03:53:09 UTC) #13
alexandre.ardhuin
On 2013/10/12 03:53:09, justinfagnani wrote: > I had to add a workaround for objects that ...
7 years, 2 months ago (2013-10-12 11:47:53 UTC) #14
justinfagnani
On 2013/10/12 11:47:53, alexandre.ardhuin wrote: > On 2013/10/12 03:53:09, justinfagnani wrote: > > I had ...
7 years, 2 months ago (2013-10-12 20:23:06 UTC) #15
justinfagnani
7 years, 2 months ago (2013-10-15 21:43:30 UTC) #16
Message was sent while issue was closed.
Committed patchset #9 manually as r28686 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698