platform/upstream/v8.git
12 years agoFix stack push order when reserving space for regexp registers on Windows.
yangguo@chromium.org [Tue, 22 May 2012 15:30:08 +0000 (15:30 +0000)]
Fix stack push order when reserving space for regexp registers on Windows.

TBR=erik.corry@gmail.com
BUG=
TEST=test-regexp/MacroAssemblerNativeLotsOfRegisters

Review URL: https://chromiumcodereview.appspot.com/10407095

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11625 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd harness script for JavaScript language fuzzer.
mstarzinger@chromium.org [Tue, 22 May 2012 15:15:44 +0000 (15:15 +0000)]
Add harness script for JavaScript language fuzzer.

R=jkummerow@chromium.org
TEST=tools/fuzz-harness.sh

Review URL: https://chromiumcodereview.appspot.com/10407094

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11624 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement loop for global regexps in regexp assembler.
yangguo@chromium.org [Tue, 22 May 2012 14:05:44 +0000 (14:05 +0000)]
Implement loop for global regexps in regexp assembler.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10386090

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11623 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoEnsure integrity of ASCII strings.
yangguo@chromium.org [Tue, 22 May 2012 12:49:20 +0000 (12:49 +0000)]
Ensure integrity of ASCII strings.

BUG=v8:2128
TEST=

Review URL: https://chromiumcodereview.appspot.com/10407090

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoGrokdump -f: Automatically detect memory that is x86/x64 instructions or text and...
erik.corry@gmail.com [Tue, 22 May 2012 11:08:05 +0000 (11:08 +0000)]
Grokdump -f: Automatically detect memory that is x86/x64 instructions or text and dump appropriately.
Review URL: https://chromiumcodereview.appspot.com/10356150

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11621 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.5.
ulan@chromium.org [Tue, 22 May 2012 09:13:13 +0000 (09:13 +0000)]
Prepare push to trunk.  Now working on version 3.11.5.

R=jkummerow@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10399122

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11618 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSome cleanup to common.gypi. This fixes some host/target combinations that weren...
jkummerow@chromium.org [Tue, 22 May 2012 08:10:58 +0000 (08:10 +0000)]
Some cleanup to common.gypi. This fixes some host/target combinations that weren't working in the Make build on Mac.

Review URL: https://chromiumcodereview.appspot.com/10416005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11617 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoDisable array index dehoisting because of performance regressions on Kraken imaging...
mmassi@chromium.org [Mon, 21 May 2012 16:22:54 +0000 (16:22 +0000)]
Disable array index dehoisting because of performance regressions on Kraken imaging-desaturate.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10383269

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11616 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoHandle EINTR in socket functions and continue incomplete sends.
yangguo@chromium.org [Mon, 21 May 2012 12:58:48 +0000 (12:58 +0000)]
Handle EINTR in socket functions and continue incomplete sends.

Based on a patch by Ben Noordhuis <info@bnoordhuis.nl>.

BUG=v8:2098
TEST=

Review URL: https://chromiumcodereview.appspot.com/10416006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11609 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFixing python deprecations.
yangguo@chromium.org [Mon, 21 May 2012 10:19:28 +0000 (10:19 +0000)]
Fixing python deprecations.

Original patch by Alexey Stukalov <astukalov@gmail.com>.

BUG=v8:1391
TEST=

Review URL: https://chromiumcodereview.appspot.com/10412022

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11604 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMake socket send and receive more robust and return 0 on failure.
yangguo@chromium.org [Mon, 21 May 2012 10:02:49 +0000 (10:02 +0000)]
Make socket send and receive more robust and return 0 on failure.

R=jkummerow@chromium.org
BUG=15719
TEST=

Review URL: https://chromiumcodereview.appspot.com/10412021

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11601 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix GCC 4.7 (C++11) compilation.
yangguo@chromium.org [Mon, 21 May 2012 09:59:28 +0000 (09:59 +0000)]
Fix GCC 4.7 (C++11) compilation.

Original patch by Olivier Goffart <ogoffart@kde.org>.

BUG=v8:2136
TEST=

Review URL: https://chromiumcodereview.appspot.com/10387210

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11600 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSet '-m32' option for host and target platforms
jkummerow@chromium.org [Mon, 21 May 2012 09:01:19 +0000 (09:01 +0000)]
Set '-m32' option for host and target platforms

For different host and target archs, try to check whether
their compilers support '-m32' option individually. If yes,
then add this option into cflags and ldflags. The exception is
that both host and target archs are 'x64'.

Review URL: https://chromiumcodereview.appspot.com/10335014
Patch from Yongsheng Zhu <yongsheng.zhu@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11597 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoArray index computation dehoisting.
mmassi@chromium.org [Mon, 21 May 2012 07:59:50 +0000 (07:59 +0000)]
Array index computation dehoisting.

When an array index (in an array access) is a simple "expression + constant", just embed the constant in the array access operation so that the full index expression is (potentially) no longer used and its live range can be much shorter.
This is effective in conjunction with array bounds check removal (otherwise the index is anyway used in the check).

Review URL: https://chromiumcodereview.appspot.com/10382055

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11596 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.4.
ulan@chromium.org [Fri, 18 May 2012 14:06:49 +0000 (14:06 +0000)]
Prepare push to trunk.  Now working on version 3.11.4.

R=jkummerow@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10413005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11593 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoDisable optimization for functions that have scopes that cannot be reconstructed...
ulan@chromium.org [Fri, 18 May 2012 13:06:16 +0000 (13:06 +0000)]
Disable optimization for functions that have scopes that cannot be reconstructed from the context chain.

BUG=v8:2071
TEST=mjsunit/regress/regress-2071.js

Review URL: https://chromiumcodereview.appspot.com/10388164

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11592 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix shared library build errors.
yangguo@chromium.org [Fri, 18 May 2012 11:15:14 +0000 (11:15 +0000)]
Fix shared library build errors.

R=jkummerow@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10389203

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11591 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoDefine V8_EXPORT to nothing for clients of v8.
yangguo@chromium.org [Fri, 18 May 2012 09:52:09 +0000 (09:52 +0000)]
Define V8_EXPORT to nothing for clients of v8.

This is to make sure that inline functions are only exported by
libv8.so and not also by all clients. This is the v8 version of
https://chromiumcodereview.appspot.com/10386108/

This CL depends on http://codereview.chromium.org/10310156/ landing
first.

BUG=chromium:90078

Review URL: https://chromiumcodereview.appspot.com/10399036

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11590 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoCorrectly check for native error objects.
yangguo@chromium.org [Fri, 18 May 2012 09:45:10 +0000 (09:45 +0000)]
Correctly check for native error objects.

BUG=2138
TEST=

Review URL: https://chromiumcodereview.appspot.com/10392158

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11589 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoRemove %_SwapElements. This inlined runtime contained an optimization that was dange...
erik.corry@gmail.com [Thu, 17 May 2012 20:53:32 +0000 (20:53 +0000)]
Remove %_SwapElements.  This inlined runtime contained an optimization that was dangerous in the presence of incremental compaction.  It also prevented QuickSort from array.js from being optimized by Crankshaft, so it is probably better to do without it.  We have high hopes that this will fix bug=117879.
Review URL: https://chromiumcodereview.appspot.com/10392150

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11588 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix issue 825 (LiveEdit vs. function with no locals) for x64.
peter.rybin@gmail.com [Wed, 16 May 2012 21:15:24 +0000 (21:15 +0000)]
Fix issue 825 (LiveEdit vs. function with no locals) for x64.

Review URL: https://chromiumcodereview.appspot.com/10387116

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11587 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSimplify v8.gyp.
yangguo@chromium.org [Wed, 16 May 2012 15:48:06 +0000 (15:48 +0000)]
Simplify v8.gyp.

Based on http://codereview.chromium.org/10310156

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10398057

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11586 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.3.
yangguo@chromium.org [Wed, 16 May 2012 12:35:01 +0000 (12:35 +0000)]
Prepare push to trunk.  Now working on version 3.11.3.

R=ulan@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10332194

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11581 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAmend regression test.
yangguo@chromium.org [Wed, 16 May 2012 12:26:11 +0000 (12:26 +0000)]
Amend regression test.

R=rossberg@chromium.org
BUG=128146
TEST=

Review URL: https://chromiumcodereview.appspot.com/10382196

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11580 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd missing test for transcendental functions.
yangguo@chromium.org [Wed, 16 May 2012 11:15:30 +0000 (11:15 +0000)]
Add missing test for transcendental functions.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10389169

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11579 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoRevert r11496.
yangguo@chromium.org [Wed, 16 May 2012 11:07:54 +0000 (11:07 +0000)]
Revert r11496.

CL being reverted: https://chromiumcodereview.appspot.com/10238005

BUG=128146
TEST=regress-128146

Review URL: https://chromiumcodereview.appspot.com/10386166

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11578 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement map collection for incremental marking.
mstarzinger@chromium.org [Wed, 16 May 2012 10:07:50 +0000 (10:07 +0000)]
Implement map collection for incremental marking.

This causes map transitions to be treated weakly during incremental
marking and hence allows clearing of non-live transitions. The marking
code is now shared between incremental and non-incremental mode.

R=vegorov@chromium.org
BUG=v8:1465
TEST=cctest/test-heap/Regress1465

Review URL: https://chromiumcodereview.appspot.com/10310168

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11577 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Fix simplification of DoLoadNamedFieldPolymorphic. This is a commit of https...
erik.corry@gmail.com [Wed, 16 May 2012 09:07:57 +0000 (09:07 +0000)]
MIPS: Fix simplification of DoLoadNamedFieldPolymorphic.  This is a commit of https://chromiumcodereview.appspot.com/10391096/ for Akos Palfi

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11572 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix CreateEmptyFunction to not share descriptor array.
mstarzinger@chromium.org [Wed, 16 May 2012 07:52:41 +0000 (07:52 +0000)]
Fix CreateEmptyFunction to not share descriptor array.

R=ulan@chromium.org
BUG=v8:1465

Review URL: https://chromiumcodereview.appspot.com/10388158

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11571 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAlways transition empty FAST_DOUBLE_ARRAYs on push
danno@chromium.org [Tue, 15 May 2012 16:17:53 +0000 (16:17 +0000)]
Always transition empty FAST_DOUBLE_ARRAYs on push

R=mstarzinger@chromium.org
BUG=chromium:128018
TEST=test/mjsunit/regress/regress-128018.js

Review URL: https://chromiumcodereview.appspot.com/10387130

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11570 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd zapping of Map contents in debug mode.
mstarzinger@chromium.org [Tue, 15 May 2012 15:45:38 +0000 (15:45 +0000)]
Add zapping of Map contents in debug mode.

This zaps the contents of stale descriptor arrays and prototype
transition arrays before overwriting references to them. It should help
to discover accidental sharing early and is needed for the heap verifier
when map collection with incremental marking lands.

R=ulan@chromium.org
BUG=v8:1465

Review URL: https://chromiumcodereview.appspot.com/10383186

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11569 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agomessages.js: Add toString to CallSite (which describes a frame of the stack trace).
yangguo@chromium.org [Tue, 15 May 2012 12:24:44 +0000 (12:24 +0000)]
messages.js: Add toString to CallSite (which describes a frame of the stack trace).

This is useful for users who overwrite Error.prepareStackTrace but want to use
this functionality for formatting the individual frames.

BUG=NONE
TEST=NONE

Review URL: https://chromiumcodereview.appspot.com/10388140

Review URL: https://chromiumcodereview.appspot.com/10332172

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11568 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.2.
yangguo@chromium.org [Tue, 15 May 2012 12:13:18 +0000 (12:13 +0000)]
Prepare push to trunk.  Now working on version 3.11.2.

R=ulan@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10389144

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11565 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoRevert r11556 and r11558 to allow roll.
mstarzinger@chromium.org [Tue, 15 May 2012 12:01:23 +0000 (12:01 +0000)]
Revert r11556 and r11558 to allow roll.

R=yangguo@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10383182

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11564 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd a readbuffer function to d8, that reads a file into an ArrayBuffer.
rossberg@chromium.org [Tue, 15 May 2012 11:00:30 +0000 (11:00 +0000)]
Add a readbuffer function to d8, that reads a file into an ArrayBuffer.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10388140

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11563 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd a little more post morten debug info for the minidump.
erik.corry@gmail.com [Tue, 15 May 2012 09:54:54 +0000 (09:54 +0000)]
Add a little more post morten debug info for the minidump.
Review URL: https://chromiumcodereview.appspot.com/10387127

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11562 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix freebsd build.
yangguo@chromium.org [Tue, 15 May 2012 09:21:49 +0000 (09:21 +0000)]
Fix freebsd build.

BUG=2126
TEST=

Review URL: https://chromiumcodereview.appspot.com/10381149
Patch from Geoffrey Garside <ggarside@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11561 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImprove typed arrays support in d8.
rossberg@chromium.org [Tue, 15 May 2012 09:21:18 +0000 (09:21 +0000)]
Improve typed arrays support in d8.

Add properties buffer, byteLength, and byteOffset to typed arrays.

R=yangguo@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10389140

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11560 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix ucontext structure for Android on x86
ulan@chromium.org [Tue, 15 May 2012 09:19:00 +0000 (09:19 +0000)]
Fix ucontext structure for Android on x86

Review URL: https://chromiumcodereview.appspot.com/10310116
Patch from Lijuan Xiao <lijuan.xiao@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11559 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix regression test from r11556 for no-snapshot.
mstarzinger@chromium.org [Tue, 15 May 2012 09:08:31 +0000 (09:08 +0000)]
Fix regression test from r11556 for no-snapshot.

R=yangguo@chromium.org
BUG=v8:1465
TEST=cctest/test-heap/Regress1465

Review URL: https://chromiumcodereview.appspot.com/10391136

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11558 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoRevert flag change for global semantics.
rossberg@chromium.org [Tue, 15 May 2012 09:01:06 +0000 (09:01 +0000)]
Revert flag change for global semantics.
(Still breaks a couple of WebKit tests.)

R=mstarzinger@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10381147

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11557 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement map collection for incremental marking.
mstarzinger@chromium.org [Tue, 15 May 2012 08:39:25 +0000 (08:39 +0000)]
Implement map collection for incremental marking.

This causes map transitions to be treated weakly during incremental
marking and hence allows clearing of non-live transitions. The marking
code is now shared between incremental and non-incremental mode.

R=vegorov@chromium.org
BUG=v8:1465
TEST=cctest/test-heap/Regress1465

Review URL: https://chromiumcodereview.appspot.com/10386046

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11556 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoAdd -f or --full flag to grokdump to dump all available memory areas from the minidump.
erik.corry@gmail.com [Mon, 14 May 2012 07:57:56 +0000 (07:57 +0000)]
Add -f or --full flag to grokdump to dump all available memory areas from the minidump.
Review URL: https://chromiumcodereview.appspot.com/10332137

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11554 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSerialize heap snapshot data as an array of unsigned values.
alexeif@chromium.org [Sat, 12 May 2012 16:41:13 +0000 (16:41 +0000)]
Serialize heap snapshot data as an array of unsigned values.

None of the values can in fact be negative, while object IDs
can have the highest bit set which lead to negative values appear
in the snapshot that front-end is unable to parse.

Review URL: https://chromiumcodereview.appspot.com/10356143

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11553 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.1.
jkummerow@chromium.org [Fri, 11 May 2012 14:57:47 +0000 (14:57 +0000)]
Prepare push to trunk.  Now working on version 3.11.1.

R=yangguo@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10389094

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11550 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoGYP build: Provide automatic host_arch detection on Mac
jkummerow@chromium.org [Fri, 11 May 2012 13:52:16 +0000 (13:52 +0000)]
GYP build: Provide automatic host_arch detection on Mac

TEST="make x64.release" works fine on MacOS

Review URL: https://chromiumcodereview.appspot.com/10310123

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11547 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare for using GYP build on buildbots
jkummerow@chromium.org [Fri, 11 May 2012 12:18:09 +0000 (12:18 +0000)]
Prepare for using GYP build on buildbots

Review URL: https://chromiumcodereview.appspot.com/10383128

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11546 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSimplify DoLoadNamedFieldPolymorphic
erik.corry@gmail.com [Fri, 11 May 2012 09:13:02 +0000 (09:13 +0000)]
Simplify DoLoadNamedFieldPolymorphic
Review URL: https://chromiumcodereview.appspot.com/10386089

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11543 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix compose-discard crasher from 11524 - port to x64, ARM, MIPS.
erik.corry@gmail.com [Thu, 10 May 2012 21:25:49 +0000 (21:25 +0000)]
Fix compose-discard crasher from 11524 - port to x64, ARM, MIPS.
This is now bug 2123.
TBR=mstarzinger
Review URL: https://chromiumcodereview.appspot.com/10391061

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11540 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix compose-discard crasher from 11524. We can't do a call (to a generic
erik.corry@gmail.com [Thu, 10 May 2012 20:34:06 +0000 (20:34 +0000)]
Fix compose-discard crasher from 11524.  We can't do a call (to a generic
stub) unless there is a pointer map.  This does not fix the 3d-raytrace
regression, that will be in another change.
Review URL: https://chromiumcodereview.appspot.com/10382102

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11539 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSet object tags directly to the entry name in heap profiler.
alexeif@chromium.org [Thu, 10 May 2012 15:55:19 +0000 (15:55 +0000)]
Set object tags directly to the entry name in heap profiler.

Review URL: https://chromiumcodereview.appspot.com/10382106

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11538 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoExtend grokdump with basic interactive shell capabilities.
vegorov@chromium.org [Thu, 10 May 2012 12:44:15 +0000 (12:44 +0000)]
Extend grokdump with basic interactive shell capabilities.

Supported commands:

- dd: to print memory region
- s: to search for a word in available memory regions
- list: to list available memory regions

R=mstarzinger@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10378087

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11537 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoActivate new global semantics by default.
rossberg@chromium.org [Thu, 10 May 2012 10:35:42 +0000 (10:35 +0000)]
Activate new global semantics by default.

R=mstarzinger@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10383085

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11536 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMerge SetObjectNames extra pass into the main pass.
alexeif@chromium.org [Thu, 10 May 2012 09:17:32 +0000 (09:17 +0000)]
Merge SetObjectNames extra pass into the main pass.

Because heap snapshotting is now performed in a single pass
it is safe to make calls to GetConstructorName and further to
LocalLookupRealNamedProperty right within that main pass.

Review URL: https://chromiumcodereview.appspot.com/10332087

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11535 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix formatting.
alexeif@chromium.org [Wed, 9 May 2012 15:49:03 +0000 (15:49 +0000)]
Fix formatting.

TBR=mnaganov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10356075

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11534 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoProperly set ElementsKind of empty FAST_DOUBLE_ELEMENTS arrays when transitioning.
danno@chromium.org [Wed, 9 May 2012 15:18:50 +0000 (15:18 +0000)]
Properly set ElementsKind of empty FAST_DOUBLE_ELEMENTS arrays when transitioning.

R=jkummerow@chromium.org
BUG=chromium:117409
TEST=test/mjsunit/regress/regress-117409.js

Review URL: https://chromiumcodereview.appspot.com/10386045

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11533 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoDeclare more functions returing a MaybeObject* with MUST_USE_RESULT.
fschneider@chromium.org [Wed, 9 May 2012 14:34:27 +0000 (14:34 +0000)]
Declare more functions returing a MaybeObject* with MUST_USE_RESULT.

No violations found this time.

Additionally I changed one function JSDate::GetField that never returns
a failure to return a Object* instead.
Review URL: https://chromiumcodereview.appspot.com/10383088

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11532 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSplit nodes and edges into separate arrays in heap profiler.
alexeif@chromium.org [Wed, 9 May 2012 14:34:13 +0000 (14:34 +0000)]
Split nodes and edges into separate arrays in heap profiler.

This allowed the following changes:
  - heap profiler now makes one pass less over the heap.
  - HeapEntriesMap does not allocate EntryInfo per each entry.
  - there's no need for an extra pass to set indexes before serialization.

As a result snapshot taking time has reduced up to 2x times.

Review URL: https://chromiumcodereview.appspot.com/10353010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11531 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoForce checking of result on all functions in elements.h that return MaybeObject*.
fschneider@chromium.org [Wed, 9 May 2012 12:49:56 +0000 (12:49 +0000)]
Force checking of result on all functions in elements.h that return MaybeObject*.

Add two missing failure checks found by this.
Review URL: https://chromiumcodereview.appspot.com/10356071

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11530 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMake Error.prototype.name writable again, as required by the spec and the web.
rossberg@chromium.org [Wed, 9 May 2012 12:35:11 +0000 (12:35 +0000)]
Make Error.prototype.name writable again, as required by the spec and the web.

Address http://code.google.com/p/chromium/issues/detail?id=69187 by instead
ignoring getters on ReferenceError.prototype.name in Error.prototype.toString.

And while we're at it, do the same for SyntaxError and TypeError, and the
properties "message", "type", and "arguments" on all of them, which
potentially have similar issues.

R=danno@chromium.org
BUG=69187
TEST=

Review URL: https://chromiumcodereview.appspot.com/10234004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11529 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement explicit back pointers in transition tree.
mstarzinger@chromium.org [Wed, 9 May 2012 07:29:18 +0000 (07:29 +0000)]
Implement explicit back pointers in transition tree.

This makes back pointers in the map transition tree explicit by having
accurate back pointers throughout the lifetime of maps instead of
establishing and destroying back pointers before and after each marking
phase. This is a prerequisite for being able to clear map transitions
during incremental marking.

R=vegorov@chromium.org
BUG=v8:1465

Review URL: https://chromiumcodereview.appspot.com/10381053

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11528 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoForce inlining CopyChars and String::Get.
yangguo@chromium.org [Tue, 8 May 2012 12:38:24 +0000 (12:38 +0000)]
Force inlining CopyChars and String::Get.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10332054

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11527 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix function sorter from 11482 with correct fix. The sorter
erik.corry@gmail.com [Tue, 8 May 2012 12:30:36 +0000 (12:30 +0000)]
Fix function sorter from 11482 with correct fix.  The sorter
was reverted from trunk 3.10.8.1, with this change we can
repush it.
Review URL: https://chromiumcodereview.appspot.com/10377043

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11526 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoRegexp: Fix overflow in min-match-length calculation. Crbug=126412.
erik.corry@gmail.com [Tue, 8 May 2012 12:18:08 +0000 (12:18 +0000)]
Regexp: Fix overflow in min-match-length calculation.  Crbug=126412.
Review URL: https://chromiumcodereview.appspot.com/10384053

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11525 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMake DeltaBlue performance more stable by ignoring type feedback that
erik.corry@gmail.com [Tue, 8 May 2012 09:22:58 +0000 (09:22 +0000)]
Make DeltaBlue performance more stable by ignoring type feedback that
tells us that a map can transition to another map when we are generating
code for load operations.  This may cause us to deopt if the same routine
is seeing different maps caused by branching in constructors.  If so, I
have a different change that is around 100 times more complicated that
lets us generated Crankshaft code for negative lookups.
Review URL: https://chromiumcodereview.appspot.com/10306010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11524 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Fixed illegal instruction use on Loongson in code for Math.random().
yangguo@chromium.org [Mon, 7 May 2012 17:31:14 +0000 (17:31 +0000)]
MIPS: Fixed illegal instruction use on Loongson in code for Math.random().

BUG=v8:2115
TEST=mjsunit/string-case,mjsunit/regress/regress-110509,mjsunit/math-floor

Review URL: https://chromiumcodereview.appspot.com/10383044
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11523 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix crash bug in VisitChoice (bug=126272).
erik.corry@gmail.com [Mon, 7 May 2012 13:23:56 +0000 (13:23 +0000)]
Fix crash bug in VisitChoice (bug=126272).
Review URL: https://chromiumcodereview.appspot.com/10332035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11519 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix unsigned-Smi check in MappedArgumentsLookup
jkummerow@chromium.org [Mon, 7 May 2012 10:05:39 +0000 (10:05 +0000)]
Fix unsigned-Smi check in MappedArgumentsLookup

BUG=126414
TEST=mjsunit/regress/regress-crbug-126414

Review URL: https://chromiumcodereview.appspot.com/10375033

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11518 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoHandle negative number in Math.floor,ia32,non-SSE4.1 code path.
yangguo@chromium.org [Fri, 4 May 2012 15:50:43 +0000 (15:50 +0000)]
Handle negative number in Math.floor,ia32,non-SSE4.1 code path.

Zheng Liu
zheng.z.liu@intel.com

Review URL: https://chromiumcodereview.appspot.com/10168001
Patch from Zheng Liu <zheng.z.liu@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11517 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoIntercept a crash, put debug information onto the stack and then abort gracefully.
yangguo@chromium.org [Fri, 4 May 2012 13:20:41 +0000 (13:20 +0000)]
Intercept a crash, put debug information onto the stack and then abort gracefully.

BUG=125128
TEST=

Review URL: https://chromiumcodereview.appspot.com/10375009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11516 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoUse correct size of promoted space for setting promotion and allocation limits.
ulan@chromium.org [Fri, 4 May 2012 09:36:46 +0000 (09:36 +0000)]
Use correct size of promoted space for setting promotion and allocation limits.

Review URL: https://chromiumcodereview.appspot.com/10376008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11513 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement ClearFunctionTypeFeedback for test cases.
mstarzinger@chromium.org [Fri, 4 May 2012 09:16:38 +0000 (09:16 +0000)]
Implement ClearFunctionTypeFeedback for test cases.

R=danno@chromium.org
TEST=mjsunit/compiler/inline-construct

Review URL: https://chromiumcodereview.appspot.com/10332010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11509 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: ARM: Ensure reload of elements pointer in StoreFastDoubleElement stub
danno@chromium.org [Fri, 4 May 2012 09:07:22 +0000 (09:07 +0000)]
MIPS: ARM: Ensure reload of elements pointer in StoreFastDoubleElement stub

Port r11483 (c291e80e)

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10348016
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11507 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Fix register clobbering in LoadIC for interceptors.
mstarzinger@chromium.org [Fri, 4 May 2012 08:34:59 +0000 (08:34 +0000)]
MIPS: Fix register clobbering in LoadIC for interceptors.

Port r11492 (d14ada19)

Original commit message:
Fix register clobbering in LoadIC for interceptors.

This fixes a corner-case where the receiver register was clobbered by
LoadICs for interceptors and inlined followup code still relied on the
receiver to be intact in case of prototype changes.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10315016
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11506 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Implement clearing of CompareICs.
mstarzinger@chromium.org [Fri, 4 May 2012 07:53:11 +0000 (07:53 +0000)]
MIPS: Implement clearing of CompareICs.

Port r11491 (705d40cc)

Original commit message:
Implement clearing of CompareICs.

This allows CompareICs to be cleared during garbage collection to avoid
cross-context garbage retention through maps stored in CompareIC stubs
for the KNOWN_OBJECTS state.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10342024
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11505 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix warning on Win64
peter.rybin@gmail.com [Thu, 3 May 2012 22:19:12 +0000 (22:19 +0000)]
Fix warning on Win64

Review URL: https://chromiumcodereview.appspot.com/10372003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11504 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix mjsunit.status for new liveedit test
peter.rybin@gmail.com [Thu, 3 May 2012 18:53:40 +0000 (18:53 +0000)]
Fix mjsunit.status for new liveedit test

Review URL: https://chromiumcodereview.appspot.com/10353016

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11503 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix issue 825 (LiveEdit vs. function with no locals) in core and for ia32.
peter.rybin@gmail.com [Thu, 3 May 2012 17:31:34 +0000 (17:31 +0000)]
Fix issue 825 (LiveEdit vs. function with no locals) in core and for ia32.

Review URL: https://chromiumcodereview.appspot.com/10263002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11502 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Reduce size of LIR instruction by one word and remove dead code.
danno@chromium.org [Thu, 3 May 2012 15:13:04 +0000 (15:13 +0000)]
MIPS: Reduce size of LIR instruction by one word and remove dead code.

Port r11454 (72c662fc)

Original commit message:
Reduce size of LIR instruction by one word and remove dead code.

Until now we always recorded two deoptimization environments for instructions
that are marked as calls. We actually don't need two for all LIR
instructions except one (LInstanceOfKnownGlobal) where there is a lazy
deoptimization point in deferred code.

This change remove on of them and uses one virtual function instead
to make LInstanceOfKnownGlobal work as before.

Additionally, this change removes an unused predicate save_doubles_ from LIR
instructions and removes some helper functions that are used only in one place.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10233019
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11501 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoBumped bootup memory limit on 32bit platforms using snapshot.
svenpanne@chromium.org [Thu, 3 May 2012 14:31:20 +0000 (14:31 +0000)]
Bumped bootup memory limit on 32bit platforms using snapshot.

Somehow the mmaps we do look the same, but the info in the proc FS tells us that
we use a bit more memory. I am not sure if this is a real issue or not, but this
CL should at least get the build bots green again...

TBR=erik.corry@gmail.com
TEST=cctest/test-mark-compact/BootUpMemoryUse

Review URL: https://chromiumcodereview.appspot.com/10342016

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11500 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix assert in function sorter.
erik.corry@gmail.com [Thu, 3 May 2012 14:09:26 +0000 (14:09 +0000)]
Fix assert in function sorter.
Review URL: https://chromiumcodereview.appspot.com/10364002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11497 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoUse map transitions when defining accessor properties.
svenpanne@chromium.org [Thu, 3 May 2012 12:41:40 +0000 (12:41 +0000)]
Use map transitions when defining accessor properties.

AccessorPairs can now contain map transitions, which is similar to our current
handling of CONSTANT_FUNCTION/CONSTANT_TRANSITION, but generalized to a pair for
holding info about the getter and the setter. This way we can achieve map
sharing for objects with accessor properties, which is a prerequisite for making
them fast via inlining. We fall back to the previous way of handling accessor
properties when sharing is not possible or we don't handle a special case.

Note: When an exisiting accessor property is redefined we could in principle
move the AccessorPair out of the descriptor into the object itself (again just
like the way we do something similar for CONSTANT_FUNCTION/CONSTANT_TRANSITION),
but this would require a new property kind for holding a pair of values. Perhaps
we can implement this later, but for now this hopefully rare case is handled
like before, losing map sharing and potentially creating more maps than strictly
necessary.

Review URL: https://chromiumcodereview.appspot.com/10238005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11496 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoModify two regression tests to actually fail when failing.
yangguo@chromium.org [Thu, 3 May 2012 11:52:56 +0000 (11:52 +0000)]
Modify two regression tests to actually fail when failing.

BUG=
TEST=regress-1639, regress-1639-2

Review URL: https://chromiumcodereview.appspot.com/10315009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11493 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix register clobbering in LoadIC for interceptors.
mstarzinger@chromium.org [Thu, 3 May 2012 11:28:24 +0000 (11:28 +0000)]
Fix register clobbering in LoadIC for interceptors.

This fixes a corner-case where the receiver register was clobbered by
LoadICs for interceptors and inlined followup code still relied on the
receiver to be intact in case of prototype changes.

R=vegorov@chromium.org
BUG=chromium:125988
TEST=cctest/test-api/Regress125988

Review URL: https://chromiumcodereview.appspot.com/10358010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11492 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoImplement clearing of CompareICs.
mstarzinger@chromium.org [Thu, 3 May 2012 10:54:17 +0000 (10:54 +0000)]
Implement clearing of CompareICs.

This allows CompareICs to be cleared during garbage collection to avoid
cross-context garbage retention through maps stored in CompareIC stubs
for the KNOWN_OBJECTS state.

R=vegorov@chromium.org
BUG=v8:2102

Review URL: https://chromiumcodereview.appspot.com/10263008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11491 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoPrepare push to trunk. Now working on version 3.11.0.
danno@chromium.org [Thu, 3 May 2012 09:02:57 +0000 (09:02 +0000)]
Prepare push to trunk.  Now working on version 3.11.0.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10354006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11488 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix assert triggered in fast/regex/pcre-test-4.html We were not filtering out
erik.corry@gmail.com [Thu, 3 May 2012 08:22:12 +0000 (08:22 +0000)]
Fix assert triggered in fast/regex/pcre-test-4.html We were not filtering out
all the nodes that had non-ASCII characters.  That has been fixed, but because
of the protection against over-deep recursion when filtering it is wrong to
assert that all nodes were filtered.  This change therefore also makes sure we
can cope with non-filtered nodes by adding back some code removed in
https://chromiumcodereview.appspot.com/10174017/
Review URL: https://chromiumcodereview.appspot.com/10358008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11487 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoClean up Makefile, enable MIPS cross-compilation
jkummerow@chromium.org [Thu, 3 May 2012 08:11:38 +0000 (08:11 +0000)]
Clean up Makefile, enable MIPS cross-compilation

Review URL: https://chromiumcodereview.appspot.com/10268010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11486 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoARM: Ensure reload of elements pointer in StoreFastDoubleElement stub
danno@chromium.org [Thu, 3 May 2012 07:09:17 +0000 (07:09 +0000)]
ARM: Ensure reload of elements pointer in StoreFastDoubleElement stub

R=mstarzinger@chromium.org
TEST=test/mjsunit/regress/regress-125515.js
BUG=chromium:125515

Review URL: https://chromiumcodereview.appspot.com/10298010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11483 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSort functions when doing megamorphic dispatch/inlining so their
erik.corry@gmail.com [Wed, 2 May 2012 13:07:31 +0000 (13:07 +0000)]
Sort functions when doing megamorphic dispatch/inlining so their
order does not depend on the hash seed.
Review URL: https://chromiumcodereview.appspot.com/10270032

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11482 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoEnable code flushing even when objects were marked incrementally,
erik.corry@gmail.com [Wed, 2 May 2012 12:58:40 +0000 (12:58 +0000)]
Enable code flushing even when objects were marked incrementally,
since the incremental visitor is setting the gc_age fields correctly.
This means the ResetSharedFunctionInfoCountersDuringIncrementalMarking
test passes even if it hits a marking stack overflow.
Review URL: https://chromiumcodereview.appspot.com/10258001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11481 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoSmall patch to save one jump instruction and one label bind in JSEntryStub.
yangguo@chromium.org [Wed, 2 May 2012 12:13:39 +0000 (12:13 +0000)]
Small patch to save one jump instruction and one label bind in JSEntryStub.

BUG=v8:2105
TEST=

Review URL: https://chromiumcodereview.appspot.com/10249003
Patch from Zhongping Wang <kewpie.w.zp@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoEnsure reload of elements pointer in StoreFastDoubleElement stub.
danno@chromium.org [Wed, 2 May 2012 09:58:42 +0000 (09:58 +0000)]
Ensure reload of elements pointer in StoreFastDoubleElement stub.

R=mstarzinger@chromium.org
TEST=test/mjsunit/regress/regress-125515.js
BUG=chromium:125515

Review URL: https://chromiumcodereview.appspot.com/10260014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11479 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMIPS: Fix LFastLiteral to check boilerplate elements kind.
mstarzinger@chromium.org [Wed, 2 May 2012 07:51:03 +0000 (07:51 +0000)]
MIPS: Fix LFastLiteral to check boilerplate elements kind.

Port r11470 (621f96c0)

Original commit message:
Fix LFastLiteral to check boilerplate elements kind.

Adds a missing check that the elements kind of the boilerplate object
still has the expected elements kind, unoptimized code can transition
the boilerplate. Corner cases might cause the optimized code to be
reentered again.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10271018
Patch from Akos Palfi <palfia@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11474 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix mistakes in r11472
jkummerow@chromium.org [Mon, 30 Apr 2012 17:06:13 +0000 (17:06 +0000)]
Fix mistakes in r11472

TBR=vegorov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10274008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11473 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFixed corner cases in truncation behavior when storing to TypedArrays.
jkummerow@chromium.org [Mon, 30 Apr 2012 15:17:59 +0000 (15:17 +0000)]
Fixed corner cases in truncation behavior when storing to TypedArrays.

Also simplified ia32 KeyedStoreStubCompiler::GenerateStoreExternalArray a bit.

BUG=v8:2110
TEST=mjsunit/regress/regress-2110

Review URL: https://chromiumcodereview.appspot.com/10260011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11472 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoDon't ignore return value of CommitCodePage in AllocateAlignedMemory.
vegorov@chromium.org [Mon, 30 Apr 2012 15:02:43 +0000 (15:02 +0000)]
Don't ignore return value of CommitCodePage in AllocateAlignedMemory.

Release the mapping as whole if commit failed to avoid leaking virtual address space.

R=mstarzinger@chromium.org
BUG=chromium:118625

Review URL: https://chromiumcodereview.appspot.com/10260012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11471 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFix LFastLiteral to check boilerplate elements kind.
mstarzinger@chromium.org [Mon, 30 Apr 2012 14:59:13 +0000 (14:59 +0000)]
Fix LFastLiteral to check boilerplate elements kind.

Adds a missing check that the elements kind of the boilerplate object
still has the expected elements kind, unoptimized code can transition
the boilerplate. Corner cases might cause the optimized code to be
reentered again.

R=danno@chromium.org
TEST=mjsunit/regress/regress-fast-literal-transition

Review URL: https://chromiumcodereview.appspot.com/10254006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11470 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoMake sure idle notifications perform a round of incremental GCs after context disposal.
ulan@chromium.org [Mon, 30 Apr 2012 14:41:12 +0000 (14:41 +0000)]
Make sure idle notifications perform a round of incremental GCs after context disposal.

BUG=v8:2107

Review URL: https://chromiumcodereview.appspot.com/10209026

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11469 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agoFixed preparser for try statement. Tiny cleanup.
svenpanne@chromium.org [Mon, 30 Apr 2012 13:04:08 +0000 (13:04 +0000)]
Fixed preparser for try statement. Tiny cleanup.

BUG=v8:2109
TBR=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10270007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11468 ce2b1a6d-e550-0410-aec6-3dcde31c8c00