platform/upstream/v8.git
13 years agoAdd *.so to .gitignore.
mikhail.naganov@gmail.com [Wed, 7 Sep 2011 21:09:13 +0000 (21:09 +0000)]
Add *.so to .gitignore.

This is so we can ignore libv8_g.so and libv8preparser_g.so when running git status.

TEST=git status. You should not see the above libraries in the output.

R=mnaganov@chromium.org

Signed-off-by: Thiago Farina <tfarina@chromium.org>
Review URL: http://codereview.chromium.org/7839036/

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

13 years agoFixing presubmit error.
yangguo@chromium.org [Wed, 7 Sep 2011 16:15:48 +0000 (16:15 +0000)]
Fixing presubmit error.

Review URL: http://codereview.chromium.org/7839031

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

13 years agoFaster non-regexp global string.replace.
yangguo@chromium.org [Wed, 7 Sep 2011 15:17:57 +0000 (15:17 +0000)]
Faster non-regexp global string.replace.
BUG=v8:1662

Review URL: http://codereview.chromium.org/7782028

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

13 years agoPresubmit output to distinguish check phases.
yangguo@chromium.org [Wed, 7 Sep 2011 15:17:18 +0000 (15:17 +0000)]
Presubmit output to distinguish check phases.

Review URL: http://codereview.chromium.org/7795050

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

13 years agoAdd "dependencies" target to top-level Makefile
jkummerow@chromium.org [Wed, 7 Sep 2011 13:48:29 +0000 (13:48 +0000)]
Add "dependencies" target to top-level Makefile

Review URL: http://codereview.chromium.org/7739021

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

13 years agoFix 64 bit build on Windows.
erik.corry@gmail.com [Wed, 7 Sep 2011 13:44:42 +0000 (13:44 +0000)]
Fix 64 bit build on Windows.
Review URL: http://codereview.chromium.org/7841035

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

13 years agoFix assert on Mozilla test after String split optimization.
erik.corry@gmail.com [Wed, 7 Sep 2011 13:17:25 +0000 (13:17 +0000)]
Fix assert on Mozilla test after String split optimization.
Review URL: http://codereview.chromium.org/7837026

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

13 years agoMake one-character strings into symbols more agressively.
erik.corry@gmail.com [Wed, 7 Sep 2011 13:13:56 +0000 (13:13 +0000)]
Make one-character strings into symbols more agressively.
Review URL: http://codereview.chromium.org/7840029

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

13 years agoReintroduce duplicate identifier detection in preparser.
lrn@chromium.org [Wed, 7 Sep 2011 12:39:53 +0000 (12:39 +0000)]
Reintroduce duplicate identifier detection in preparser.

Duplicate identifier detection must be an early syntax error in strict code,
so errors in otherwise lazily compiled functions must be caught in the
preparser.

Originally introduced in r8541 and reverted in r8542.
Now really compiles on Windows.

Review URL: http://codereview.chromium.org/7782023

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

13 years agoPrepare push to trunk. Now working on version 3.6.2.
jkummerow@chromium.org [Wed, 7 Sep 2011 12:37:07 +0000 (12:37 +0000)]
Prepare push to trunk.  Now working on version 3.6.2.

R=lrn@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7841034

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

13 years agoAvoid size increase of snapshot.
lrn@chromium.org [Wed, 7 Sep 2011 11:56:06 +0000 (11:56 +0000)]
Avoid size increase of snapshot.

The prototype of builtin functions is already unwritable, so we don't
have to make it so (the default map for functions changes after builtins
are initialized).

We no longer need to make the prototype non-extensible, since all properties
that are ever read by the bultins code has been added and frozen already.
Adding properties to the prototype, or changing its __proto__, cannot affect
code.

Removing these two pieces of initialization code reduces the snapshot size
by a few Kb.

Review URL: http://codereview.chromium.org/7839028

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

13 years agoFix presubmit
erik.corry@gmail.com [Wed, 7 Sep 2011 11:49:12 +0000 (11:49 +0000)]
Fix presubmit

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

13 years agoOptimize the common obfuscator pattern where ["foo","bar","baz"]
erik.corry@gmail.com [Wed, 7 Sep 2011 11:28:48 +0000 (11:28 +0000)]
Optimize the common obfuscator pattern where ["foo","bar","baz"]
gets converted fo "foo,bar,baz".split(",").  If the inputs are
symbols we cache the result and make the substrings into symbols.
Review URL: http://codereview.chromium.org/7782025

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

13 years agoFix presubmit failures.
kmillikin@chromium.org [Wed, 7 Sep 2011 11:11:36 +0000 (11:11 +0000)]
Fix presubmit failures.

TBR=fschneider@chromium.org

Review URL: http://codereview.chromium.org/7837024

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

13 years agoRemove variable rewrites and the unneccesary Slot class.
kmillikin@chromium.org [Wed, 7 Sep 2011 11:02:31 +0000 (11:02 +0000)]
Remove variable rewrites and the unneccesary Slot class.

R=fschneider@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7824038

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

13 years agoNuked unused method declaration.
svenpanne@chromium.org [Wed, 7 Sep 2011 09:34:47 +0000 (09:34 +0000)]
Nuked unused method declaration.
Review URL: http://codereview.chromium.org/7841030

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

13 years agoFix a bug in abrupt exit from with or catch inside finally.
kmillikin@chromium.org [Wed, 7 Sep 2011 09:21:44 +0000 (09:21 +0000)]
Fix a bug in abrupt exit from with or catch inside finally.

When with or catch is nested inside finally, we were not properly restoring
the context in the stack for the finally code.  Also, as a small
optimization, restore it from the handler block instead of iteratively
unwinding contexts.

R=fschneider@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7837023

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

13 years agoGetting rid of ExitContextStatement for scoped blocks.
keuchel@chromium.org [Tue, 6 Sep 2011 22:00:59 +0000 (22:00 +0000)]
Getting rid of ExitContextStatement for scoped blocks.

Review URL: http://codereview.chromium.org/7835027

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

13 years agoSimplfy handling of exits from scoped blocks.
keuchel@chromium.org [Tue, 6 Sep 2011 21:48:32 +0000 (21:48 +0000)]
Simplfy handling of exits from scoped blocks.

BUG=
TEST=mjsunit/harmony/block-leave.js

Review URL: http://codereview.chromium.org/7792100

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

13 years agoAvoid dynamic lookup when initializing let declared variables.
keuchel@chromium.org [Tue, 6 Sep 2011 21:22:35 +0000 (21:22 +0000)]
Avoid dynamic lookup when initializing let declared variables.

'Let's inside a 'with' would initialize the variable
using the StoreContextSlot runtime function which
would fail because it checks that the variable does
not hold the hole value.

Review URL: http://codereview.chromium.org/7792098

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

13 years agoPut test directories of d8-os tests into /tmp/.
yangguo@chromium.org [Tue, 6 Sep 2011 14:48:08 +0000 (14:48 +0000)]
Put test directories of d8-os tests into /tmp/.

Review URL: http://codereview.chromium.org/7835040

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

13 years agoFix possible crash in FixedDoubleArray::Initialize()
jkummerow@chromium.org [Tue, 6 Sep 2011 14:07:54 +0000 (14:07 +0000)]
Fix possible crash in FixedDoubleArray::Initialize()

(this only affected ia32).

BUG=95113
TEST=mjsunit/regress/regress-95113.js passes without crashing.

Review URL: http://codereview.chromium.org/7833040

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

13 years agoFix map space explosion from changing the arguments and caller properties on native...
ricow@chromium.org [Tue, 6 Sep 2011 14:03:32 +0000 (14:03 +0000)]
Fix map space explosion from changing the arguments and caller properties on native functions.

Adding these local properties on all native functions made us do a
ConvertDescriptorToField on the callback on each and every native
functions, resulting in us creating an extra map for each of these.
Review URL: http://codereview.chromium.org/7779046

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

13 years agoFix bug in Page::GetRegionMaskForSpan.
vegorov@chromium.org [Tue, 6 Sep 2011 11:24:48 +0000 (11:24 +0000)]
Fix bug in Page::GetRegionMaskForSpan.

When checking for a wrap take into account offset of the start address in the region.

BUG=http://crbug.com/94425
TEST=test/mjsunit/regress/regress-94425.js
Review URL: http://codereview.chromium.org/7779037

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

13 years agoLimit the time d8 interactive shell's input strings stay alive.
yangguo@chromium.org [Tue, 6 Sep 2011 09:07:39 +0000 (09:07 +0000)]
Limit the time d8 interactive shell's input strings stay alive.

Review URL: http://codereview.chromium.org/7779032

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

13 years agoAdd regression test for issue 1215, expand regression test for issue 1447.
ricow@chromium.org [Tue, 6 Sep 2011 07:43:51 +0000 (07:43 +0000)]
Add regression test for issue 1215, expand regression test for issue 1447.

Both these issues has now been closed since they are working on bleeding edge.
Review URL: http://codereview.chromium.org/7739024

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

13 years agoFix a few clang warnings (which -Werror treats as errors)
jkummerow@chromium.org [Tue, 6 Sep 2011 07:41:45 +0000 (07:41 +0000)]
Fix a few clang warnings (which -Werror treats as errors)

Review URL: http://codereview.chromium.org/7779033

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

13 years agoMIPS: ported r9119 fixing performance regression in regexp.
yangguo@chromium.org [Tue, 6 Sep 2011 07:09:53 +0000 (07:09 +0000)]
MIPS: ported r9119 fixing performance regression in regexp.

Review URL: http://codereview.chromium.org/7779030

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

13 years agoPrint value and type check dependency for JSArrayLength instruction.
svenpanne@chromium.org [Mon, 5 Sep 2011 13:28:56 +0000 (13:28 +0000)]
Print value and type check dependency for JSArrayLength instruction.
Review URL: http://codereview.chromium.org/7800028

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

13 years agoLanding: MIPS: Fixed some mips32r1-specific test failures.
fschneider@chromium.org [Mon, 5 Sep 2011 11:50:36 +0000 (11:50 +0000)]
Landing: MIPS: Fixed some mips32r1-specific test failures.

Original review: http://codereview.chromium.org/7737019/
Review URL: http://codereview.chromium.org/7739019

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

13 years agoLanding MIPS: Support declarations of context allocated locals in Crankshaft.
fschneider@chromium.org [Mon, 5 Sep 2011 11:45:09 +0000 (11:45 +0000)]
Landing MIPS: Support declarations of context allocated locals in Crankshaft.

Original code review: http://codereview.chromium.org/7739017/

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

13 years agoOptimize isFinite and isNaN.
lrn@chromium.org [Mon, 5 Sep 2011 11:08:57 +0000 (11:08 +0000)]
Optimize isFinite and isNaN.

Arithmetic on infinities and NaN is much slower than doing several exact comparisons.

Review URL: http://codereview.chromium.org/7830036

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

13 years agoPrepare push to trunk. Now working on version 3.6.1.
fschneider@chromium.org [Mon, 5 Sep 2011 10:37:49 +0000 (10:37 +0000)]
Prepare push to trunk. Now working on version 3.6.1.
Review URL: http://codereview.chromium.org/7833025

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

13 years agoUp the max heap size from 512Mbytes to 700MBytes as an experiment.
erik.corry@gmail.com [Mon, 5 Sep 2011 10:35:31 +0000 (10:35 +0000)]
Up the max heap size from 512Mbytes to 700MBytes as an experiment.
Review URL: http://codereview.chromium.org/7835029

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

13 years agoMIPS: port Generated code for substring slices in x64 and arm.
yangguo@chromium.org [Mon, 5 Sep 2011 09:05:52 +0000 (09:05 +0000)]
MIPS: port Generated code for substring slices in x64 and arm.

Ported r9111 (2b946464)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7835025

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

13 years agoMIPS: Minor cleanup change to arguments slots constants.
yangguo@chromium.org [Mon, 5 Sep 2011 09:04:32 +0000 (09:04 +0000)]
MIPS: Minor cleanup change to arguments slots constants.

This is the bleeding_edge port of our crankshaft commit 41cab38.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7834017

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

13 years agoRemove STL dependencies from mksnapshot.cc
mikhail.naganov@gmail.com [Mon, 5 Sep 2011 08:06:29 +0000 (08:06 +0000)]
Remove STL dependencies from mksnapshot.cc

Remove unused code and consequently the stl includes of map and string.

R=mnaganov@chromium.org

Review URL: http://codereview.chromium.org/7737012/

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

13 years agoRemove unused includes from scanner.h.
lrn@chromium.org [Mon, 5 Sep 2011 07:39:47 +0000 (07:39 +0000)]
Remove unused includes from scanner.h.

This file should also be renamed to something else, as after many refactors,
there isn't any Scanner class in there, just four CharacterStream classes.

R=lrn@chromium.org

Signed-off-by: Thiago Farina <tfarina@chromium.org>
Review URL: http://codereview.chromium.org/7835019

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

13 years agoA temporary workaround for huge heap snapshots problem.
mikhail.naganov@gmail.com [Mon, 5 Sep 2011 07:37:52 +0000 (07:37 +0000)]
A temporary workaround for huge heap snapshots problem.

Do not try to serialize them into JSON to avoid crashing / hanging DevTools.

R=sgjesse@chromium.org
BUG=v8:1658,89268
TEST=none

Review URL: http://codereview.chromium.org/7832003

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

13 years agoLock the prototype of internal classes.
lrn@chromium.org [Mon, 5 Sep 2011 07:30:35 +0000 (07:30 +0000)]
Lock the prototype of internal classes.

Prototypes and their properties and methods are locked down to prevent fiddling with their operation, even if the build-in object leaks.

Made some built-in functions only work during bootstrapping.

Review URL: http://codereview.chromium.org/7799027

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

13 years agoAvoid creating shell name every time in shell sample.
mikhail.naganov@gmail.com [Fri, 2 Sep 2011 18:50:24 +0000 (18:50 +0000)]
Avoid creating shell name every time in shell sample.

R=mnaganov@chromium.org

Signed-off-by: Thiago Farina <tfarina@chromium.org>
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9121 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agoMake a static non-POD object a static raw pointer instead.
mikhail.naganov@gmail.com [Fri, 2 Sep 2011 16:46:35 +0000 (16:46 +0000)]
Make a static non-POD object a static raw pointer instead.

Change it to a plain static pointer and initialize lazy.

BUG=83856
TEST=None

R=ager@chromium.org,mnaganov@chromium.org

Signed-off-by: Thiago Farina <tfarina@chromium.org>
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9120 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agoFixed performance regression in v8 regexp benchmark on ARM.
yangguo@chromium.org [Fri, 2 Sep 2011 13:42:50 +0000 (13:42 +0000)]
Fixed performance regression in v8 regexp benchmark on ARM.

Review URL: http://codereview.chromium.org/7824033

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

13 years agoRemove unused code for AstSentinels and related stuff.
fschneider@chromium.org [Fri, 2 Sep 2011 12:59:05 +0000 (12:59 +0000)]
Remove unused code for AstSentinels and related stuff.

TEST=compiles
Review URL: http://codereview.chromium.org/7792097

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

13 years agoPrune empty block scopes from scope tree
keuchel@chromium.org [Fri, 2 Sep 2011 12:43:28 +0000 (12:43 +0000)]
Prune empty block scopes from scope tree

BUG=
TEST=

Review URL: http://codereview.chromium.org/7825006

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

13 years agoThe spec (15.1.2.2 parseInt (string , radix)) says ToString should be called before...
lrn@chromium.org [Fri, 2 Sep 2011 11:38:40 +0000 (11:38 +0000)]
The spec (15.1.2.2 parseInt (string , radix)) says ToString should be called before ToInt32.
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf

In the current implementation, the order is reversed. So this webkit test (https://bugs.webkit.org/show_bug.cgi?id=65366) fails on Chromium.

BUG=1649
TEST=parse-int-float.js

Review URL: http://codereview.chromium.org/7740080

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

13 years agoAllow OSR for closures that reference context slots.
fschneider@chromium.org [Fri, 2 Sep 2011 09:29:21 +0000 (09:29 +0000)]
Allow OSR for closures that reference context slots.
Review URL: http://codereview.chromium.org/7812023

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

13 years agoAdd flaky test expectation for a mozilla-debug test that assumes a specific execution...
fschneider@chromium.org [Fri, 2 Sep 2011 09:28:14 +0000 (09:28 +0000)]
Add flaky test expectation for a mozilla-debug test that assumes a specific execution time.
Review URL: http://codereview.chromium.org/7053036

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

13 years agoOnly presubmit check files in git repo for copyright note etc. (if using git).
yangguo@chromium.org [Fri, 2 Sep 2011 08:04:51 +0000 (08:04 +0000)]
Only presubmit check files in git repo for copyright note etc. (if using git).

Review URL: http://codereview.chromium.org/7792068

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

13 years agoSupport declarations of context allocated locals in Crankshaft.
fschneider@chromium.org [Thu, 1 Sep 2011 16:33:57 +0000 (16:33 +0000)]
Support declarations of context allocated locals in Crankshaft.

The changes to scopes and parser introduce a VariableProxy
wrapping the function-name variable for function literals.
It seems the easiest way to get an AST id for the HSimulate
after context-slot stores in declarations.
Review URL: http://codereview.chromium.org/7826009

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

13 years agoGenerated code for substring slices in x64 and arm.
yangguo@chromium.org [Thu, 1 Sep 2011 15:24:26 +0000 (15:24 +0000)]
Generated code for substring slices in x64 and arm.

Review URL: http://codereview.chromium.org/7795018

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

13 years agoInclude more information when printing phi nodes.
svenpanne@chromium.org [Thu, 1 Sep 2011 14:59:47 +0000 (14:59 +0000)]
Include more information when printing phi nodes.

Still a bit cryptic, but people interested in phi nodes should know what they're doing... ;-)
Review URL: http://codereview.chromium.org/7824004

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

13 years agoChanged printing of immediate result in d8's interactive shell.
yangguo@chromium.org [Thu, 1 Sep 2011 14:02:35 +0000 (14:02 +0000)]
Changed printing of immediate result in d8's interactive shell.
BUG=v8:371

Review URL: http://codereview.chromium.org/7792055

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

13 years agoDetect conflicting variable bindings in harmony mode.
keuchel@chromium.org [Thu, 1 Sep 2011 12:31:18 +0000 (12:31 +0000)]
Detect conflicting variable bindings in harmony mode.

BUG=
TEST=mjsunit/harmony/block-conflicts.js

Review URL: http://codereview.chromium.org/7756014

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

13 years agoMake functions on the built-in object non-writable.
lrn@chromium.org [Thu, 1 Sep 2011 11:57:02 +0000 (11:57 +0000)]
Make functions on the built-in object non-writable.

Review URL: http://codereview.chromium.org/7736018

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

13 years agomove -m32 flag for ia32 targets from standalone.gypi to common.gypi
jkummerow@chromium.org [Thu, 1 Sep 2011 11:50:29 +0000 (11:50 +0000)]
move -m32 flag for ia32 targets from standalone.gypi to common.gypi

so that we no longer depend on Chromium setting this flag.

BUG=v8:1648

Review URL: http://codereview.chromium.org/7830004

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

13 years agoAdded check for trailing whitespaces and corrected existing violations.
yangguo@chromium.org [Thu, 1 Sep 2011 11:28:10 +0000 (11:28 +0000)]
Added check for trailing whitespaces and corrected existing violations.

Review URL: http://codereview.chromium.org/7826007

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

13 years agoMake arguments and caller always be null on native functions (fixes issue 1548 and...
ricow@chromium.org [Thu, 1 Sep 2011 11:09:11 +0000 (11:09 +0000)]
Make arguments and caller always be null on native functions (fixes issue 1548 and issue 1643).

With this change we follow Firefox, Safari has a slightly different approach where the property is just not there (at least according to GetOwnProperty).
Review URL: http://codereview.chromium.org/7792054

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

13 years agoTiny change flags cleanups.
svenpanne@chromium.org [Thu, 1 Sep 2011 11:06:03 +0000 (11:06 +0000)]
Tiny change flags cleanups.

Introduced a getter for change flags, making a related helper function private.

Do not print a '*' at the end of hydrogen instruction mnemonics with side
effects, this is subsumed by the 'changes' info.
Review URL: http://codereview.chromium.org/7827009

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

13 years agoDo constant function check earlier in TryCallApply and ensure correct environment...
vegorov@chromium.org [Thu, 1 Sep 2011 10:33:59 +0000 (10:33 +0000)]
Do constant function check earlier in TryCallApply and ensure correct environment for deopt.

R=kmillikin@chromium.org
BUG=v8:1650
TEST=test/mjsunit/regress/regress-1650.js
Review URL: http://codereview.chromium.org/7812033

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

13 years agoFix deoptimization data printing.
kmillikin@chromium.org [Thu, 1 Sep 2011 08:00:40 +0000 (08:00 +0000)]
Fix deoptimization data printing.

Remove a spurious newline.

R=whesse@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7792052

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

13 years agoCleanup of messages.js.
lrn@chromium.org [Thu, 1 Sep 2011 07:39:22 +0000 (07:39 +0000)]
Cleanup of messages.js.

Lock down some otherwise modifiable objects that don't need it.

Review URL: http://codereview.chromium.org/7828003

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

13 years agoMIPS: port ARM: Fix context save/restore for VFP registers.
yangguo@chromium.org [Thu, 1 Sep 2011 07:35:33 +0000 (07:35 +0000)]
MIPS: port ARM: Fix context save/restore for VFP registers.

This commit was missed/skipped earlier for some reason.

Ported r8357 (d78dae4)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7809014

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

13 years agoMIPS: port ARM: Changed the handling of compiletime CPU feature detection
jkummerow@chromium.org [Wed, 31 Aug 2011 15:34:33 +0000 (15:34 +0000)]
MIPS: port ARM: Changed the handling of compiletime CPU feature detection

Another port of an older arm commit, which was not upstreamed at the time.

Ported r7754 (ef678641)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7809016

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

13 years agoMIPS: Convert a bunch of ASSERTs to STATIC_ASSERTs
jkummerow@chromium.org [Wed, 31 Aug 2011 15:22:43 +0000 (15:22 +0000)]
MIPS: Convert a bunch of ASSERTs to STATIC_ASSERTs

Ported r9057 (f6c548d)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7740073

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

13 years agoAdd support for shared library builds to tools/test-wrapper-gypbuild.py
jkummerow@chromium.org [Wed, 31 Aug 2011 14:15:42 +0000 (14:15 +0000)]
Add support for shared library builds to tools/test-wrapper-gypbuild.py

by setting LD_LIBRARY_PATH as required

Review URL: http://codereview.chromium.org/7811016

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

13 years agoChanged test expectations for ARM and MIPS.
yangguo@chromium.org [Wed, 31 Aug 2011 14:12:25 +0000 (14:12 +0000)]
Changed test expectations for ARM and MIPS.

Review URL: http://codereview.chromium.org/7778042

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

13 years agoIntroduce local function declarations in Crankshaft and fix issue 1647.
fschneider@chromium.org [Wed, 31 Aug 2011 13:26:08 +0000 (13:26 +0000)]
Introduce local function declarations in Crankshaft and fix issue 1647.

We have to emit code for declarations later into the body block
(and not into the start block) so that the environment contains
the correct values.

In order to capture the environment effect of the declarations
that generate code (function declarations) I inserted a separate
AST id and a HSimulate after the declarations are visited.

Also fixes handling deopt in named function expressions:
BUG=v8:1647
TEST=test/mjsunit/regress/regress-fundecl.js, test/mjsunit/regress/regress-1647.js
Review URL: http://codereview.chromium.org/7776009

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

13 years agoAdd tools/presubmit.py call to tools/test-wrapper-gypbuild.py
jkummerow@chromium.org [Wed, 31 Aug 2011 13:01:28 +0000 (13:01 +0000)]
Add tools/presubmit.py call to tools/test-wrapper-gypbuild.py

Review URL: http://codereview.chromium.org/7785025

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

13 years agoMIPS: port Temporal dead zone behaviour for let bindings.
keuchel@chromium.org [Wed, 31 Aug 2011 10:01:43 +0000 (10:01 +0000)]
MIPS: port Temporal dead zone behaviour for let bindings.

Ported r9070 (1cfdac01)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7778037

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

13 years agoMIPS: small test-case fix for chaining of fixup position.
svenpanne@chromium.org [Wed, 31 Aug 2011 09:42:28 +0000 (09:42 +0000)]
MIPS: small test-case fix for chaining of fixup position.

Add nops to the branch-delay slots of the 'beq' and 'bne' instructions
used in the test-case. Having a branch instruction in the branch-delay-slot
of another branch is undefined on mips.

In regular code we avoid this by using the Branch() macro-instruction which
fills the branch-delay-slot with nop() automatically, unless the programmer
asks to use it (via USE_BRANCH_DELAY).

There is more info about branch-delay-slots on this page, and in the ISA
reference also on the page:

https://github.com/paul99/v8m-rb/wiki/MIPS-instruction-set-and-v8

BUG=
TEST=
Review URL: http://codereview.chromium.org/7812019

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

13 years agoRemoved unnecessary change log item.
yangguo@chromium.org [Wed, 31 Aug 2011 08:22:36 +0000 (08:22 +0000)]
Removed unnecessary change log item.

Review URL: http://codereview.chromium.org/7740077

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

13 years agoPrepare push to trunk. Now working on version 3.6.0.
yangguo@chromium.org [Wed, 31 Aug 2011 07:59:23 +0000 (07:59 +0000)]
Prepare push to trunk.  Now working on version 3.6.0.
R=jkummerow@chromium.org

Review URL: http://codereview.chromium.org/7740076

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

13 years agoMIPS: port Fix for a possible bug in RegExp stack guard.
yangguo@chromium.org [Wed, 31 Aug 2011 07:32:47 +0000 (07:32 +0000)]
MIPS: port Fix for a possible bug in RegExp stack guard.

Ported r9058 (43f127bd)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7776027

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

13 years agoReturn v8::True or v8::False instead of using Boolean::New.
mikhail.naganov@gmail.com [Tue, 30 Aug 2011 18:45:48 +0000 (18:45 +0000)]
Return v8::True or v8::False instead of using Boolean::New.

BUG=None
TEST=None

R=mnaganov@chromium.org

Signed-off-by: Thiago Farina <tfarina@chromium.org>
Review URL: http://codereview.chromium.org/7785001

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

13 years agoMIPS: Added ASSERTs to BranchShort to detect bad use of 'at' register.
yangguo@chromium.org [Tue, 30 Aug 2011 16:15:48 +0000 (16:15 +0000)]
MIPS: Added ASSERTs to BranchShort to detect bad use of 'at' register.

Make sure 'at' and an immediate operand can't be used together in cases
where 'at' would be overwritten by li.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7791019

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

13 years agoMIPS: Fix implementation of string slices.
yangguo@chromium.org [Tue, 30 Aug 2011 16:13:02 +0000 (16:13 +0000)]
MIPS: Fix implementation of string slices.

Bug on mips using at register innapropriately, use different reg as temp.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7794020

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

13 years agoTemporal dead zone behaviour for let bindings.
keuchel@chromium.org [Tue, 30 Aug 2011 11:23:57 +0000 (11:23 +0000)]
Temporal dead zone behaviour for let bindings.

BUG=
TEST=mjsunit/harmony/block-let-semantics.js

Review URL: http://codereview.chromium.org/7671042

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

13 years agoAdd a dependency of v8_base on WinSocket2 Windows library.
mikhail.naganov@gmail.com [Tue, 30 Aug 2011 11:10:09 +0000 (11:10 +0000)]
Add a dependency of v8_base on WinSocket2 Windows library.

v8_base depends on ws2_32.lib for accept() and some of the
other socket used for the debugger.

Patch by Ryan Dahl <ry@tinyclouds.org>

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

Review URL: http://codereview.chromium.org/7806011

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

13 years agoFix initial prototype of WeakMap function.
mstarzinger@chromium.org [Tue, 30 Aug 2011 09:35:20 +0000 (09:35 +0000)]
Fix initial prototype of WeakMap function.

The bootstrapper accidentally overwrote the constructor property of the Object
prototype because it used initial_object_prototype() as prototype for WeakMap.
Unfortunately this is not possible for experimental natives because they are
installed after the snapshot initialization finished.

R=erik.corry@gmail.com
TEST=mjsunit/mirror-object,mjsunit/harmony/weakmaps

Review URL: http://codereview.chromium.org/7624041

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

13 years agoFixing presubmit issue.
yangguo@chromium.org [Tue, 30 Aug 2011 09:05:40 +0000 (09:05 +0000)]
Fixing presubmit issue.

Review URL: http://codereview.chromium.org/7792034

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

13 years agoFixing compile error introducted by a typo in r9064.
yangguo@chromium.org [Tue, 30 Aug 2011 08:41:54 +0000 (08:41 +0000)]
Fixing compile error introducted by a typo in r9064.

Review URL: http://codereview.chromium.org/7790022

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

13 years agoGenerated code for substring slices in ia32.
yangguo@chromium.org [Tue, 30 Aug 2011 08:22:41 +0000 (08:22 +0000)]
Generated code for substring slices in ia32.

Review URL: http://codereview.chromium.org/7744052

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

13 years agoFixed a bug in the chaining of fixup position
svenpanne@chromium.org [Tue, 30 Aug 2011 07:36:31 +0000 (07:36 +0000)]
Fixed a bug in the chaining of fixup position

The ARM and MIPS assemblers had a bug where they did not handle the last element
in the list of code positions correctly during the fixup of offsets for forward
jumps. This happened when the first instruction contained a forward jump to a
label, and that label was used in a forward jump later, too.

Unified the code for Assembler::next on ARM and MIPS while we were there.

Added test cases, even for ia32/x64, which seem to be correct, even I don't
fully understand why... %-}

BUG=v8:1644
Review URL: http://codereview.chromium.org/7786001

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

13 years agoRemoving bogus check introduced in r9027.
yangguo@chromium.org [Mon, 29 Aug 2011 14:04:01 +0000 (14:04 +0000)]
Removing bogus check introduced in r9027.

Review URL: http://codereview.chromium.org/7781013

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

13 years agoMIPS: Fix an invalid stack-check in the simulator.
yangguo@chromium.org [Mon, 29 Aug 2011 13:29:55 +0000 (13:29 +0000)]
MIPS: Fix an invalid stack-check in the simulator.

This fixes mjsunit regress-1132.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7781002

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

13 years agoFix for a possible bug in RegExp stack guard.
yangguo@chromium.org [Mon, 29 Aug 2011 13:04:33 +0000 (13:04 +0000)]
Fix for a possible bug in RegExp stack guard.

Review URL: http://codereview.chromium.org/7744051

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

13 years agoConvert a bunch of ASSERTs to STATIC_ASSERTs
jkummerow@chromium.org [Mon, 29 Aug 2011 13:02:35 +0000 (13:02 +0000)]
Convert a bunch of ASSERTs to STATIC_ASSERTs

making our debug binaries ever so slightly faster

Review URL: http://codereview.chromium.org/7776010

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

13 years agoRevert r9047 to fix broken build.
fschneider@chromium.org [Mon, 29 Aug 2011 12:19:43 +0000 (12:19 +0000)]
Revert r9047 to fix broken build.

I need some more time to properly fix the problem.

TBR=kmillikin@chromium.org
Review URL: http://codereview.chromium.org/7781008

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

13 years agoMIPS: Fixed a RecordWrite call in the FullCodeGenerator.
yangguo@chromium.org [Mon, 29 Aug 2011 11:56:48 +0000 (11:56 +0000)]
MIPS: Fixed a RecordWrite call in the FullCodeGenerator.

This caused an occasional failure in the Threading2 cctest running in debug mode with --always-opt.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7779007

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

13 years agoMake built-in functions not rely on callback functions .call method.
lrn@chromium.org [Mon, 29 Aug 2011 11:44:54 +0000 (11:44 +0000)]
Make built-in functions not rely on callback functions .call method.

In builtin code, we can't rely on Function.prototype.call being unmolested.

Review URL: http://codereview.chromium.org/7776008

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

13 years agoSmall fix for STATIC_ASSERT.
yangguo@chromium.org [Mon, 29 Aug 2011 11:41:23 +0000 (11:41 +0000)]
Small fix for STATIC_ASSERT.

Review URL: http://codereview.chromium.org/7776007

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

13 years agoIntroduce support for local function declarations in Hydrogen.
fschneider@chromium.org [Mon, 29 Aug 2011 10:50:47 +0000 (10:50 +0000)]
Introduce support for local function declarations in Hydrogen.
Review URL: http://codereview.chromium.org/7782001

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

13 years agoRemove unnecessary break-after-return in switch statement
jkummerow@chromium.org [Mon, 29 Aug 2011 10:47:00 +0000 (10:47 +0000)]
Remove unnecessary break-after-return in switch statement

BUG=v8:1642

Review URL: http://codereview.chromium.org/7781007

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

13 years agoPrepare push to trunk. Now working on version 3.5.10.
ricow@chromium.org [Mon, 29 Aug 2011 10:15:47 +0000 (10:15 +0000)]
Prepare push to trunk. Now working on version 3.5.10.
Review URL: http://codereview.chromium.org/7782002

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

13 years agoMIPS: port Tentative implementation of string slices (hidden under the flag --string...
yangguo@chromium.org [Mon, 29 Aug 2011 09:36:58 +0000 (09:36 +0000)]
MIPS: port Tentative implementation of string slices (hidden under the flag --string-slices).

Ported r9027 (e9a3514)

BUG=
TEST=

Review URL: http://codereview.chromium.org/7736010

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

13 years agoFix warnings reported by MSVS for shared library build
jkummerow@chromium.org [Mon, 29 Aug 2011 09:14:59 +0000 (09:14 +0000)]
Fix warnings reported by MSVS for shared library build

TEST=compiles without warnings (esp. the shared-lib build with Visual Studio)

Review URL: http://codereview.chromium.org/7745053

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

13 years agoMIPS: Fix KeyedStoreStubCompiler::GenerateStoreFastDoubleElement()
vegorov@chromium.org [Mon, 29 Aug 2011 09:10:27 +0000 (09:10 +0000)]
MIPS: Fix KeyedStoreStubCompiler::GenerateStoreFastDoubleElement()

Test regress-91013.js (to ensure that the stored value was returned) passed on mips
without this fix, since the input value (in value_reg, a0) also happens to be in
mips return value register v0 at the time of call.

But it is fragile to depend on that behavior, so an explicit move from a0 to v0
is warranted. This fix puts that move in the delay slot of the Ret().

Patch by Paul Lind.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7779006

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

13 years agoAdjust unit test to avoid flakyness when running with the ARM simulator.
fschneider@chromium.org [Mon, 29 Aug 2011 08:46:35 +0000 (08:46 +0000)]
Adjust unit test to avoid flakyness when running with the ARM simulator.

In some cases the assert that the test function is not optimized fails
because the function may be optimized already after the second invocation.
(e.g. when running slow in debug mode)
Review URL: http://codereview.chromium.org/7778009

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

13 years agoCommenting register usage in MIPS.
yangguo@chromium.org [Mon, 29 Aug 2011 08:41:39 +0000 (08:41 +0000)]
Commenting register usage in MIPS.

Review URL: http://codereview.chromium.org/7775007

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