Status: New
Owner: ----

New issue 3347 by [email protected]: Optimization causes dart2js to fail in Try Dart
http://code.google.com/p/v8/issues/detail?id=3347

Repro:

1. Install Chrome Version 36.0.1985.18 beta

2. Open http://v8.try-dart-lang.appspot.com/

3. Wait for the example to compile

4. Reload

5. Goto step 3.

Expected behavior:

The following output is printed in "See Dart / Console":

  <spinner> Compiling....

Which is replaced by:

  Hello, World!

Observed behavior:

At least one time in four, an exception is thrown in the compiler:

sdk:/sdk/lib/_internal/lib/js_helper.dart: [crash] The compiler crashed when compiling this element.
Bad state: Too many elements, Error
at dart.wrapException (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:2474:15) at Setlet.IterableBase.get$single (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:11346:17) at InterfaceMembersCreator_computeInterfaceMembers_closure.call$2 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:53664:63) at _LinkedHashMap.forEach$1 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:10377:16) at InterfaceMembersCreator.computeInterfaceMembers$2 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:53555:33) at InterfaceMembersCreator.computeMembers$2 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:53520:12) at PartialClassElement.ClassMemberMixin.computeAllClassMembers$1 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:53807:33) at Enqueuer_onRegisterInstantiatedClass__processClass.call$1 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:19555:13) at Enqueuer_onRegisterInstantiatedClass_closure.call$0 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:19535:10) at EnqueueTask.CompilerTask.measure$1 (http://v8.try-dart-lang.appspot.com/compiler_isolate.dart.js:17874:23)

This exception is not supposed to happen, and it has never been observed on Chrome 35.

Also, when running Chrome with "--js-flags=--noopt", the exception doesn't occur.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to