Commit Graph

2686 Commits

Author SHA1 Message Date
asiva@google.com fbc931e6a6 Report OOM errors instead of asserting on allocation failures when sending
messages to other isolates.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21980 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:52:22 +00:00
hausner@google.com 51e4445539 Fix debugging of top-level getters
Parser didn't set the valid token range of top-level getters, so they
were invisible to the debugger.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21976 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:26:14 +00:00
regis@google.com 52a0f3c983 Enable api tests on ARM.
Disable generation of optimized code on ARM and MIPS.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21972 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:55:52 +00:00
vegorov@google.com c34810fd26 Preserve aggregate count when creating unary checks ICData.
We were reseting it to 1 which leads to worse inlining decisions for example for user defined binary operators. Inliner considered them all cold.

R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21964 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:51:10 +00:00
zra@google.com 632e9c7aaf Implements missing features to run Hello, World in checked mode on MIPS.
Also re-enables a stack frame test that was disabled in checked mode.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21951 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 15:36:40 +00:00
zra@google.com 4190de5bfc Enables stack frame vm tests on MIPS.
Review URL: https://codereview.chromium.org//14446005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21906 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 21:42:19 +00:00
zra@google.com 697364354b Implements catch on MIPS.
Enables UnhandledException test for MIPS.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21898 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 18:15:52 +00:00
johnmccutchan@google.com 08c99e80e6 Inline Float32x4 Getters
Review URL: https://codereview.chromium.org//13872020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21897 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 17:52:10 +00:00
regis@google.com ad6005e5c4 Support debugger API on ARM.
Support smull ARM instruction in order to detect 32-bit multiplication overflow.
Enable debugger api tests on ARM.
Enable isolate tests on ARM.
Enable code descriptors tests on ARM.
Enable snapshot tests on ARM.
Enable heap tests on ARM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21890 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 16:10:22 +00:00
ager@google.com 78e447386b Yet another couple
R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21880 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 13:12:51 +00:00
ager@google.com 6d8365e90f Update more fingerprints.
I'm sorry about all these individual changelists. Runs all debug
mode tests now, so this should be better.

R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21879 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 13:09:38 +00:00
ager@google.com a52499abd8 Fixing more fingerprints. What is the right way to find all of these?
R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21877 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:41:10 +00:00
kmillikin@google.com be777a1a7e Fix another unused-private-field clang error.
../../runtime/vm/intermediate_language.h:1093:20: error: private field 'block_entry_' is not used [-Werror,-Wunused-private-field]
  BlockEntryInstr* block_entry_;

R=kmillikin@google.com

Signed-off-by: Thiago Farina <tfarina@chromium.org>

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

Patch from Thiago Farina <tfarina@chromium.org>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21876 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:38:55 +00:00
ager@google.com 4f1a6eccc4 More fixes. Thanks to Slava for reminding me of check-function-fingerprints flag.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21875 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:23:27 +00:00
ager@google.com 63c98181b0 Fix wrong typed_data change.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21873 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:06:00 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
vegorov@google.com 207d8eb43a Optimize static field and context load/stores as part of CSE pass.
This change also introduces basic abstractions for aliasing.

R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21866 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:09:14 +00:00
iposva@google.com 9eab35b19c - Remove redundant include of platform/globals.h.
Review URL: https://codereview.chromium.org//14367034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21860 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 06:55:17 +00:00
iposva@google.com 6c4ac09cb9 - Remove heap tracing.
Review URL: https://codereview.chromium.org//14179015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21844 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:43:57 +00:00
johnmccutchan@google.com d41cdc6d61 Mark Float32x4List as fixed length array.
Review URL: https://codereview.chromium.org//13932038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21841 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:35:31 +00:00
zra@google.com e411541296 Implements exception handler stub on MIPS.
Also enables codegen and object tests on MIPS.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21839 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:15:54 +00:00
zra@google.com 682cff0a01 Implements context allocation stub for MIPS.
Also removes uses of Push and Pop macros.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21824 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 17:39:32 +00:00
iposva@google.com e4f262142e Fix http://dartbug.com/9137 :
- Use non-normalized name when complaining about unrecognized flags.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21811 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 12:59:44 +00:00
vegorov@google.com 2e0af6585f Ensure that type of the AssertAssignable instruction is recomputed.
If the previous type was more specific than destination type but new value type is not than we need to update outgoing type to be destination type. Otherwise a stale more specific type will be flowing out.

BUG=dart:10094
R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21809 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 12:30:05 +00:00
kustermann@google.com e2216f61bf Fast copy between TypedData and ExternalTypedData
Until now, copying data from TypedData to TypedData and from ExternalTypedData
to ExternalTypedData was fast. But copying between TypedData and
ExternalTypedData was not handled in a fast way.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21791 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 08:27:15 +00:00
iposva@google.com 749ac45917 - Use DISALLOW_ALLOCATION in Object class.
- Intercept operator delete in handles.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21788 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 05:51:47 +00:00
iposva@google.com 539588333e - Reduce warnings about project settings in Xcode 4.
- Address compilation warnings found by clang.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21786 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 05:31:03 +00:00
regis@google.com 301c572eea Implement missing features to run Hello world! in checked mode on simulated ARM.
Review URL: https://codereview.chromium.org//14192032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21780 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 23:21:07 +00:00
vegorov@google.com ec1f97d4a2 Fix clang unused-private-field error.
../../runtime/vm/dart_api_state.h:736:18: error: private field 'key_' is not used [-Werror,-Wunused-private-field]
  ThreadLocalKey key_;
                   ^
R=scheglov@google.com
TEST=ninja -C out/Debug
Signed-off-by: Thiago Farina <tfarina@chromium.org>

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

Patch from Thiago Farina <tfarina@chromium.org>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21778 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 22:42:46 +00:00
vegorov@google.com 6c60285f23 Drain StoreBufferBlock into store buffer instead of iterating over it directly.
This will deduplicate its entries. StoreBufferBlock might be contain the same large object dozens of times and without deduplication this will severely degrade GC performance by revisiting the same large object for every time it is recorded in the StoreBufferBlock.

BUG=dart:10048

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21766 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 20:14:44 +00:00
hausner@google.com 428829c41a Create handle scope in debugger callback
Fix issue 10052.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21764 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 19:54:49 +00:00
zra@google.com 069456803e Implements features to run "Hello, world!" on simulated MIPS.
Review URL: https://codereview.chromium.org//14246039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21759 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:31:47 +00:00
zra@google.com dae5068650 Enables cross-compilation of the VM for ARM.
Uses the "toolset" feature of gyp to build the dart VM
for ARM, but restricts building of snapshot generation
to the host machine.

For generated source files, it also changes to using
LIB_DIR instead of SHARED_INTERMEDIATE_DIR to avoid
generation of duplicate Makefile rules (gyp doesn't
know that generated source files from toolchains it
thinks are different will be the same.)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21757 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:05:44 +00:00
srdjan@google.com 5a2f7f9326 Fully implement integer modulo in intrinsifier, fall-through only for throwing exceptions. Also intrinsified remainder operation. TODO: generate inline code for both % and remainder.
Review URL: https://codereview.chromium.org//14205023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21754 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 16:56:30 +00:00
hausner@google.com 9ae17640bf Handle built-in function identical correctly
The parser, rather than the backend, recognizes the built-in function identical
and replaces is with the old token for the === operator. This fixes compile
time constant handling of calls to identical.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21753 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 16:26:05 +00:00
regis@google.com 7f1bc0d351 Enable stack frame vm tests on ARM.
Review URL: https://codereview.chromium.org//14328026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21748 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 16:06:40 +00:00
srdjan@google.com 9b53a42536 Add flag --check-function-fingerprints, it checks all function fingerprints of the intrinsifier and method recognizer. Added flag to a test so that the fingerprints will be tested during a regular test.
Review URL: https://codereview.chromium.org//14247005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21711 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 23:18:13 +00:00
asiva@google.com eb429a999c Fix for issue 9617, throw a snapshot write error when encountering stacktrace objects instead of an internal error.
Review URL: https://codereview.chromium.org//14348005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21709 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 22:58:57 +00:00
regis@google.com 524fbc038b Implement catch on ARM.
Enabled UnhandledExceptions vm test.
Minor clean up.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21708 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 22:19:49 +00:00
vegorov@google.com 1162595313 Convert EqualityCompare to StrictCompare if reciever is either null or guaranteed to have default equality operator.
R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21696 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 19:52:26 +00:00
regis@google.com 48bb59325d Reset simulator top exit frame info when coming via long jump from a throw.
Thanks to Srdjan for reporting the crash on Mac.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21695 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 19:30:26 +00:00
srdjan@google.com 67cdbd0653 Detect leaf optimized methods and skip stack check overflow test in those, unless it is in a loop (to be able to stop it).
Review URL: https://codereview.chromium.org//14308009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21692 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:37:24 +00:00
regis@google.com b59deaa17a Merge JumpToErrorHandler and JumpToExceptionHandler stubs on all architectures.
Review URL: https://codereview.chromium.org//13874010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21689 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:32:06 +00:00
asiva@google.com 6955ed0244 Add endian parameter to the get/set functions in ByteData.
Review URL: https://codereview.chromium.org//14332002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21688 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:19:43 +00:00
regis@google.com d79c7c1969 Implement long jump in ARM and MIPS simulators.
Implement error and exception handler stubs on ARM.
Hook up simulator for object tests.
Enable codegen and object tests on ARM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21680 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 16:23:25 +00:00
ajohnsen@google.com 3bc864da88 Fix incremental allocation of forward_list_ in dart_api_message.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21667 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 08:13:49 +00:00
sgjesse@google.com d33dd058d5 Add more tests of typed data serialization
R=asiva@google.com, ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21665 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 07:33:24 +00:00
regis@google.com a22fc972c7 Minor cleanup of ARM stubs.
Review URL: https://codereview.chromium.org//14268006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21647 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 18:48:40 +00:00
regis@google.com ea04c34362 Uncomment more vm tests on ARM (and some on MIPS too).
Implement context allocation stub.
Some cleanup.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21626 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:02:02 +00:00
iposva@google.com 5b369cc1c4 - Implement reflectClass.
Review URL: https://codereview.chromium.org//14118011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21610 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:11:21 +00:00