platform/upstream/v8.git
12 years agoAdd a function to compute loop nesting level to HBasicBlock.
fschneider@chromium.org [Fri, 9 Sep 2011 09:17:57 +0000 (09:17 +0000)]
Add a function to compute loop nesting level to HBasicBlock.
Review URL: http://codereview.chromium.org/7857031

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

12 years agoFollow up fixes for r9205: shared library build and thread deletion.
vitalyr@chromium.org [Thu, 8 Sep 2011 23:43:36 +0000 (23:43 +0000)]
Follow up fixes for r9205: shared library build and thread deletion.

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

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

12 years agoRelease memory of semaphores and thread pointers by using 'delete' instead of SmartPo...
vitalyr@chromium.org [Thu, 8 Sep 2011 22:44:03 +0000 (22:44 +0000)]
Release memory of semaphores and thread pointers by using 'delete' instead of SmartPointer.

As pointed out in: http://codereview.chromium.org/7754007/

SmartPointer expects an input allocated using new[] and deallocates it using delete[].
So using SmartPointer for deleting T* here is incorrect. Fix it now.

R=vitalyr@chromium.org

Review URL: http://codereview.chromium.org/7846022
Patch from Thiago Farina <tfarina@chromium.org>.

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

12 years agoFix presubmit errors caused by updated depot tools
ricow@chromium.org [Thu, 8 Sep 2011 19:57:14 +0000 (19:57 +0000)]
Fix presubmit errors caused by updated depot tools

This is all blank line before/after linting errors.
Review URL: http://codereview.chromium.org/7754022

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

12 years agoUse more style-guide-friendly names for some constants.
kmillikin@chromium.org [Thu, 8 Sep 2011 16:29:57 +0000 (16:29 +0000)]
Use more style-guide-friendly names for some constants.

This is a renaming only change.

R=erik.corry@gmail.com
BUG=
TEST=

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

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

12 years agoPrepare push to trunk. Now working on version 3.6.3.
ricow@chromium.org [Thu, 8 Sep 2011 16:09:24 +0000 (16:09 +0000)]
Prepare push to trunk. Now working on version 3.6.3.
Review URL: http://codereview.chromium.org/7849019

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

12 years agoFix memory leak from d8 shell.
mikhail.naganov@gmail.com [Thu, 8 Sep 2011 13:51:06 +0000 (13:51 +0000)]
Fix memory leak from d8 shell.

We were not disposing the semaphores and the thread used in SourceGroup.

R=mnaganov@chromium.org

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

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

12 years agoFix bug in collector.
lrn@chromium.org [Thu, 8 Sep 2011 13:44:11 +0000 (13:44 +0000)]
Fix bug in collector.

Small cleanups in preparser.

TEST=cctest/test-utils/SequenceCollectorRegression

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

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

12 years agoAdd "soname_version" parameter to common.gypi, v8.gyp, Makefile
jkummerow@chromium.org [Thu, 8 Sep 2011 13:20:49 +0000 (13:20 +0000)]
Add "soname_version" parameter to common.gypi, v8.gyp, Makefile

TEST=compile with component=shared_library and soname_version=1.2.3 and find "libv8-1.2.3.so" in the output.

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

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

12 years agoRename scanner.* to scanner-character-streams.*. and scanner-base.* to scanner.*
lrn@chromium.org [Thu, 8 Sep 2011 13:06:44 +0000 (13:06 +0000)]
Rename scanner.* to scanner-character-streams.*. and scanner-base.* to scanner.*

R=lrn@chromium.org

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

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

12 years agoAmends to r9181 and r9191.
yangguo@chromium.org [Thu, 8 Sep 2011 11:03:26 +0000 (11:03 +0000)]
Amends to r9181 and r9191.

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

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

12 years agoFixing shared library build of d8.
yangguo@chromium.org [Thu, 8 Sep 2011 09:49:52 +0000 (09:49 +0000)]
Fixing shared library build of d8.

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

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

12 years agoFix missing setting of array to copy-on-write in
erik.corry@gmail.com [Thu, 8 Sep 2011 09:24:32 +0000 (09:24 +0000)]
Fix missing setting of array to copy-on-write in
optimized string split.
Review URL: http://codereview.chromium.org/7849012

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

12 years agoRemove ExitContextStatement.
kmillikin@chromium.org [Thu, 8 Sep 2011 08:59:14 +0000 (08:59 +0000)]
Remove ExitContextStatement.

All the constructs that used it are now properly bracketed in the AST and we
handle abrupt exits without try/finally.  We can treat normal context exit
as occurring implicitly at the end of a body.

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

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

12 years agoFunctions in d8 to turn the profiler on/off (enableProfiler() and disableProfiler()).
yangguo@chromium.org [Thu, 8 Sep 2011 08:54:28 +0000 (08:54 +0000)]
Functions in d8 to turn the profiler on/off (enableProfiler() and disableProfiler()).

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

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

12 years agoMIPS: port Remove variable rewrites and the unneccesary Slot class.
kmillikin@chromium.org [Thu, 8 Sep 2011 08:47:07 +0000 (08:47 +0000)]
MIPS: port Remove variable rewrites and the unneccesary Slot class.

Port r9162 (2215df8).

BUG=
TEST=

Review URL: http://codereview.chromium.org/7847015
Patch from Paul Lind <plind44@gmail.com>.

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

12 years agoIntroduce push-to-trunk.sh (for git users)
jkummerow@chromium.org [Thu, 8 Sep 2011 08:46:31 +0000 (08:46 +0000)]
Introduce push-to-trunk.sh (for git users)

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

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

12 years agoImproved phi reachability computation a bit.
svenpanne@chromium.org [Thu, 8 Sep 2011 07:40:11 +0000 (07:40 +0000)]
Improved phi reachability computation a bit.

The use-def relation between phis is mainly "forwards" (i.e. from phis with
smaller IDs to ones with larger IDs), so the fixed point computation terminates
faster when iterate through the phis in a "backwards" manner. This is quite
visible in complex Mandreel-generated code, where a few hundred phis with
non-trivial use-def chains are generated.
Review URL: http://codereview.chromium.org/7848012

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

12 years agoFix wrong assert from 9180
ricow@chromium.org [Thu, 8 Sep 2011 06:23:05 +0000 (06:23 +0000)]
Fix wrong assert from 9180

There is an optional parameter to the function, with default value being a null handle. We then check that this is a flat string.
Review URL: http://codereview.chromium.org/7850011

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

12 years agoJSArray can go slow case during String.split. Guard against
erik.corry@gmail.com [Thu, 8 Sep 2011 06:06:13 +0000 (06:06 +0000)]
JSArray can go slow case during String.split.  Guard against
that eventuality.
Review URL: http://codereview.chromium.org/7840031

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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