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

Issue 11489011: Make identical an external function and make it throw in both runtimes, as they both recognize it. (Closed)

Created:
8 years ago by ngeoffray
Modified:
8 years ago
CC:
reviews_dartlang.org, scheglov
Visibility:
Public.

Description

Make identical an external function and make it throw in both runtimes, as they both recognize it. Committed: https://code.google.com/p/dart/source/detail?r=15956

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
A runtime/lib/identical_patch.dart View 1 chunk +7 lines, -0 lines 4 comments Download
M runtime/lib/lib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M sdk/lib/core/identical.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
Fixes issue http://code.google.com/p/dart/issues/detail?id=6380.
8 years ago (2012-12-10 13:59:43 UTC) #1
kasperl
LGTM.
8 years ago (2012-12-10 14:01:29 UTC) #2
srdjan
LGTM https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart File runtime/lib/identical_patch.dart (right): https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart#newcode6 runtime/lib/identical_patch.dart:6: throw new Error('Should not reach the body of ...
8 years ago (2012-12-10 19:58:44 UTC) #3
ngeoffray
https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart File runtime/lib/identical_patch.dart (right): https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart#newcode6 runtime/lib/identical_patch.dart:6: throw new Error('Should not reach the body of identical'); ...
8 years ago (2012-12-10 20:26:38 UTC) #4
srdjan
https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart File runtime/lib/identical_patch.dart (right): https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart#newcode6 runtime/lib/identical_patch.dart:6: throw new Error('Should not reach the body of identical'); ...
8 years ago (2012-12-10 21:24:51 UTC) #5
ngeoffray
8 years ago (2012-12-11 09:21:44 UTC) #6
https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.dart
File runtime/lib/identical_patch.dart (right):

https://codereview.chromium.org/11489011/diff/1/runtime/lib/identical_patch.d...
runtime/lib/identical_patch.dart:6: throw new Error('Should not reach the body
of identical');
On 2012/12/10 21:24:51, srdjan wrote:
> On 2012/12/10 20:26:39, ngeoffray wrote:
> > On 2012/12/10 19:58:44, srdjan wrote:
> > > This should be a native call instead of throw.
> > 
> > Any reason why? Do you mind if I land this CL (all tests pass with the VM),
> and
> > let you change it? I can change the throw and use '===' like it was before
if
> > you prefer.
> 
> We should not mandate inlining/intrinsification of a a method in order to be
> able to run. 

Makes sense.

> Yes, land it and I will fix it on VM side.

OK, thanks Srdjan.

Powered by Google App Engine
This is Rietveld 408576698