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

Issue 14142003: Add Symbol class. (Closed)

Created:
7 years, 8 months ago by ahe
Modified:
7 years, 8 months ago
Reviewers:
kasperl, Ivan Posva
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, gbracha, Ivan Posva
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fix year #

Total comments: 1

Patch Set 3 : Addressed Kasper's comments #

Patch Set 4 : Also test dartc and dartanalyzer #

Patch Set 5 : Implement hashCode and equals #

Total comments: 4

Patch Set 6 : Fix operator== #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -2 lines) Patch
M dart/runtime/lib/lib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A dart/runtime/lib/symbol_patch.dart View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M dart/sdk/lib/core/core.dart View 1 chunk +1 line, -0 lines 0 comments Download
M dart/sdk/lib/core/corelib_sources.gypi View 3 chunks +3 lines, -2 lines 0 comments Download
A dart/sdk/lib/core/symbol.dart View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M dart/tests/corelib/corelib.status View 1 2 3 4 chunks +22 lines, -0 lines 1 comment Download
A dart/tests/corelib/symbol_test.dart View 1 2 3 4 5 1 chunk +86 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
ahe
7 years, 8 months ago (2013-04-11 10:41:12 UTC) #1
kasperl
LGTM, but you should reach out to Florian and Lasse so they are aware of ...
7 years, 8 months ago (2013-04-11 10:48:58 UTC) #2
ahe
https://codereview.chromium.org/14142003/diff/1/dart/runtime/lib/symbol_patch.dart File dart/runtime/lib/symbol_patch.dart (right): https://codereview.chromium.org/14142003/diff/1/dart/runtime/lib/symbol_patch.dart#newcode1 dart/runtime/lib/symbol_patch.dart:1: // Copyright (c) 2012, the Dart project authors. Please ...
7 years, 8 months ago (2013-04-11 11:26:06 UTC) #3
ahe
PTAL, added hashCode and operator==
7 years, 8 months ago (2013-04-11 11:32:27 UTC) #4
kasperl
https://codereview.chromium.org/14142003/diff/8003/dart/runtime/lib/symbol_patch.dart File dart/runtime/lib/symbol_patch.dart (right): https://codereview.chromium.org/14142003/diff/8003/dart/runtime/lib/symbol_patch.dart#newcode28 dart/runtime/lib/symbol_patch.dart:28: return _name == _name; Shouldn't this be checking that ...
7 years, 8 months ago (2013-04-11 11:37:00 UTC) #5
ahe
PTAL https://codereview.chromium.org/14142003/diff/8003/dart/runtime/lib/symbol_patch.dart File dart/runtime/lib/symbol_patch.dart (right): https://codereview.chromium.org/14142003/diff/8003/dart/runtime/lib/symbol_patch.dart#newcode28 dart/runtime/lib/symbol_patch.dart:28: return _name == _name; On 2013/04/11 11:37:00, kasperl ...
7 years, 8 months ago (2013-04-11 11:47:50 UTC) #6
kasperl
LGTM.
7 years, 8 months ago (2013-04-11 11:51:11 UTC) #7
ahe
Committed patchset #6 manually as r21273 (presubmit successful).
7 years, 8 months ago (2013-04-11 12:46:32 UTC) #8
ahe
Sorry, I forgot to CC Gilad and Ivan.
7 years, 8 months ago (2013-04-11 20:46:38 UTC) #9
Ivan Posva
As this has already been submitted, I'll address my comments myself. -Ivan https://codereview.chromium.org/14142003/diff/1009/dart/tests/corelib/corelib.status File dart/tests/corelib/corelib.status ...
7 years, 8 months ago (2013-04-12 03:34:39 UTC) #10
ahe
7 years, 8 months ago (2013-04-12 05:53:00 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/14142003/diff/1009/dart/tests/corelib/symbol_...
File dart/tests/corelib/symbol_test.dart (right):

https://codereview.chromium.org/14142003/diff/1009/dart/tests/corelib/symbol_...
dart/tests/corelib/symbol_test.dart:12: print(const Symbol(0)); /// 01:
compile-time error
On 2013/04/12 03:34:39, Ivan Posva wrote:
> As long as this is not a language feature, I don't think you can expect a
> compile-time error here.

Actually, it is a bug in the VM: it is a compile-time error if evaluation of a
compile-time constant would raise an exception.  See section 12.1 of the
specification.

Powered by Google App Engine
This is Rietveld 408576698