Commit Graph

5 Commits

Author SHA1 Message Date
sgjesse@google.com a2865875f2 Update language.status
Add some more issue numbers. Rewrite some tests

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//23621022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27193 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 12:37:31 +00:00
fschneider@google.com e174a4c18e Fix a compiler bug caused by Utils::IsPowerOfTwo treating zero as a power of two.
The IsPowerOfTwo function is used together with ShiftForPowerOfTwo.  Both function
do not work with zero. This caused the optimizing compiler to generate invalid code
for the expression

x ? 0 : 0

where it assumed that if one of the constants is a power-of-two, it can
be computed by (1 << n). We check for 0 in a number of places, but instead
I decided to fix Utils::IsPowerOfTwo itself and remove unnecessary checks
for the zero case.

TEST=tests/language/vm/if_conversion_vm_test.dart, runtime/vm/utils_test.cc
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//23604024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27033 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 09:28:34 +00:00
fschneider@google.com 92e97e5d1a Fix bug with reflection on VM-internal native methods.
My previous approach was not enough, since methods can
be invoked via reflection before they are parsed/compiled.

This CL fixes the problem at hand, but I'd like a more general
approach to mark those methods. Maybe an annotation at the declaration
would be better.

I also refactored the test case as suggested in the previous code review.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//23458008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27009 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 10:43:59 +00:00
fschneider@google.com eba0f840f9 Move VM specific test to the correct location.
TBR=kmillikin@google.com

Review URL: https://codereview.chromium.org//22989008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26627 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 09:29:58 +00:00
sgjesse@google.com 550f3ab7f4 Add issue numbers to language tests status files
Moved VM specific tests to a separate directory

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//23103010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26596 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 11:31:25 +00:00