external/v8/3.7.git
2 years agoRegexp: Fix rightContext in the lastMatchInfoOverride case. master
erik.corry@gmail.com [Thu, 12 Apr 2012 12:50:01 +0000 (12:50 +0000)]
Regexp: Fix rightContext in the lastMatchInfoOverride case.
Review URL: https://chromiumcodereview.appspot.com/10071007

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

2 years agoReverted merge of r10400 and r10499 into 3.7 branch. git-svn
danno@chromium.org [Fri, 23 Mar 2012 10:06:36 +0000 (10:06 +0000)]
Reverted merge of r10400 and r10499 into 3.7 branch.

R=jkummerow@chromium.org

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

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

2 years agoMerged r10400, r10499 into 3.7 branch.
danno@chromium.org [Thu, 15 Mar 2012 17:09:01 +0000 (17:09 +0000)]
Merged r10400, r10499 into 3.7 branch.

Provide a way for iterating through all external strings referenced from the JS heap Review URL: http://codereview.chromium.org/9139018

Provide access to function inferred name in v8 public API Review URL: https://chromiumcodereview.appspot.com/9146039

R=vegorov@chromium.org

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

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

2 years agoMerged r11022 into 3.7 branch.
danno@chromium.org [Tue, 13 Mar 2012 15:13:23 +0000 (15:13 +0000)]
Merged r11022 into 3.7 branch.

Ensure there is a smi check of the receiver for global load and call ICs.

BUG=117794

R=vegorov@chromium.org

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

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

2 years agoMerge r10927 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Tue, 6 Mar 2012 10:14:35 +0000 (10:14 +0000)]
Merge r10927 from the bleeding_edge to the 3.7 branch.

Ensure that inner pseudo-chunks are correctly initialized in FreeQueuedChunks.

Fields introduced with guarding code space pages (area_start_, area_end_) were not correctly handled which lead to errors in StoreBuffer filtering.

R=mstarzinger@chromium.org
TEST=mozilla/data/js1_5/GC/regress-203278-2.js

Review URL: https://chromiumcodereview.appspot.com/9600020
------------------------------------------------------------------------
Review URL: https://chromiumcodereview.appspot.com/9597026

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

2 years agoMerged r10858 into 3.7 branch.
yangguo@chromium.org [Fri, 2 Mar 2012 08:49:59 +0000 (08:49 +0000)]
Merged r10858 into 3.7 branch.

Add code kind check before preparing for OSR.

R=ulan@chromium.org
BUG=
TEST=

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

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

2 years agoMerge r10797 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Thu, 1 Mar 2012 12:13:18 +0000 (12:13 +0000)]
Merge r10797 from the bleeding_edge to the 3.7 branch.

Randomize allocation addresses on windows.

BUG=115151

Review URL: https://chromiumcodereview.appspot.com/9372083
Patch from Cris Neckar <cdn@chromium.org>.
------------------------------------------------------------------------
Review URL: https://chromiumcodereview.appspot.com/9567006

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

2 years agoMerge r10809 into 3.7 branch
vegorov@chromium.org [Wed, 29 Feb 2012 16:32:56 +0000 (16:32 +0000)]
Merge r10809 into 3.7 branch

Ensure that executable pages are properly guarded.

Split executable memory chunks into two pieces: header with all metadata
(protection: RW) and body (protection: RWX). Separate header from metadata with
a guard page and add a guard page after the page body.

R=erik.corry@gmail.com
BUG=http://crbug.com/115151
Review URL: https://chromiumcodereview.appspot.com/9537011

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

2 years agoMerge r10739 and r10752 into 3.7 branch.
ulan@chromium.org [Mon, 20 Feb 2012 16:20:09 +0000 (16:20 +0000)]
Merge r10739 and r10752 into 3.7 branch.

Rename static methods to avoid shadowing virtual methods
and fix other compiler warnings.

R=yangguo@chromium.org

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

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

2 years agoFix compile error introduced by r10723.
yangguo@chromium.org [Mon, 20 Feb 2012 10:58:17 +0000 (10:58 +0000)]
Fix compile error introduced by r10723.

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

2 years agoMerged r10719 into 3.7 branch.
yangguo@chromium.org [Thu, 16 Feb 2012 15:06:14 +0000 (15:06 +0000)]
Merged r10719 into 3.7 branch.

Ensure using byte registers for byte instructions on ia32 and x64.

BUG=v8:1945

R=jkummerow@chromium.org
TEST=

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

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

2 years agoMerged r10582 into 3.7 branch.
yangguo@chromium.org [Thu, 2 Feb 2012 12:32:23 +0000 (12:32 +0000)]
Merged r10582 into 3.7 branch.

Do not ignore an empty context with extension when creating a scope object.

BUG=crbug.com/107996

R=danno@chromium.org
TEST=

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

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

2 years agoMerged r10556 into 3.7 branch.
danno@chromium.org [Tue, 31 Jan 2012 10:41:30 +0000 (10:41 +0000)]
Merged r10556 into 3.7 branch.

MIPS: Add signal context definitions for use with Android. (2nd try)

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

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

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

2 years agoMerge 10518 into 3.7. This adds an Android-specific version of cacheflush call.
danno@chromium.org [Thu, 26 Jan 2012 17:20:12 +0000 (17:20 +0000)]
Merge 10518 into 3.7. This adds an Android-specific version of cacheflush call.
Review URL: https://chromiumcodereview.appspot.com/9235064

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

2 years agoMerge r10457 into the 3.7 branch.
danno@chromium.org [Tue, 24 Jan 2012 08:22:55 +0000 (08:22 +0000)]
Merge r10457 into the 3.7 branch.

This fixes a problem on MIPS when directly patching caller's code without issuing write barrier which violated incremental marking invariants.
Review URL: https://chromiumcodereview.appspot.com/9117023

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

2 years agoMerge r10466 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Fri, 20 Jan 2012 19:16:00 +0000 (19:16 +0000)]
Merge r10466 from the bleeding_edge to the 3.7 branch.

Limit number of loop iterations in Heap::ReserveSpace.

This allows to avoid infinite loops in pathalogical cases e.g. when OS refuses to give new pages to V8.

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

Review URL: https://chromiumcodereview.appspot.com/8286020
------------------------------------------------------------------------
Review URL: https://chromiumcodereview.appspot.com/9226020

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

2 years agoMerge r10187, r10188 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Wed, 11 Jan 2012 16:43:07 +0000 (16:43 +0000)]
Merge r10187, r10188 from the bleeding_edge to the 3.7 branch.

Rescan cells at the end of mark-sweep.  This means they don't need a
write barrier.
Review URL: http://codereview.chromium.org/8816021
------------------------------------------------------------------------

Remove write barriers for cells on x64, ARM and MIPS.
Review URL: http://codereview.chromium.org/8834005
------------------------------------------------------------------------
Review URL: http://codereview.chromium.org/9190007

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

2 years agoMerge r10380, r10381 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Wed, 11 Jan 2012 13:18:27 +0000 (13:18 +0000)]
Merge r10380, r10381 from the bleeding_edge to the 3.7 branch.

Change inlined cache of intanceof stub to use indirection through cell.

The stub was directly patching caller's code without issuing write barrier which violated incremental marking invariants.

R=mstarzinger@chromium.org
BUG=http://crbug.com/109448
TEST=cctest/test-heap/InstanceOfStubWriteBarrier

Review URL: http://codereview.chromium.org/9158015
------------------------------------------------------------------------

Fix build failure introduced by r10380

TBR=mstarzinger@chromium.org

Review URL: http://codereview.chromium.org/9190002
------------------------------------------------------------------------
Review URL: http://codereview.chromium.org/9187003

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

2 years agoMerge r10374 to the 3.7 branch.
kmillikin@chromium.org [Tue, 10 Jan 2012 17:53:00 +0000 (17:53 +0000)]
Merge r10374 to the 3.7 branch.

Original commit message:
Fix for an ARM register allocation bug.

An off-by-one in the register allocator could lead to allocating (and
clobbering) the reserved 0.0 double register.  This required a function with
14 or more live double values.

R=fschneider@chromium.org
BUG=
TEST=

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

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

2 years agoMerge r10334 and r10273 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Tue, 10 Jan 2012 08:50:39 +0000 (08:50 +0000)]
Merge r10334 and r10273 from the bleeding_edge to the 3.7 branch.

Ensure that store buffer filtering hash sets are cleared after StoreBuffer::Filter.

R=erik.corry@gmail.com

Review URL: http://codereview.chromium.org/8964025
------------------------------------------------------------------------

Do not delay sweeping of pages that are completely free.

R=erik.corry@gmail.com

Review URL: http://codereview.chromium.org/8997004
------------------------------------------------------------------------
Review URL: http://codereview.chromium.org/9159001

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

2 years agoMerge r10350 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Fri, 6 Jan 2012 11:37:26 +0000 (11:37 +0000)]
Merge r10350 from the bleeding_edge to the 3.7 branch.

Adjust position recorded for call expressions.

For calls of the form ident(...) record position of the identifier as the position of the call. For other calls record positions of the opening parenthesis.

This guarantees that for expressions of the form function(){}() call position will not intersect with positions recorded for function literal which is used by the debugger for scope chain resolution.

R=kmillikin@chromium.org
BUG=http://crbug.com/109195
TEST=test/mjsunit/regress/regress-109195.js

Review URL: http://codereview.chromium.org/9125001
------------------------------------------------------------------------
Review URL: http://codereview.chromium.org/9127002

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

2 years agoMerge r10257 and r10277 to the 3.7 branch: Fix leak of global objects from optimized...
fschneider@chromium.org [Mon, 2 Jan 2012 09:46:56 +0000 (09:46 +0000)]
Merge r10257 and r10277 to the 3.7 branch: Fix leak of global objects from optimized code.

Original CLs:
http://codereview.chromium.org/8892002/
http://codereview.chromium.org/8974009

BUG=v8:1823, 102895
Review URL: http://codereview.chromium.org/8974013

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

2 years agoMerge r10243 to 3.7 branch.
ulan@chromium.org [Tue, 13 Dec 2011 18:08:45 +0000 (18:08 +0000)]
Merge r10243 to 3.7 branch.

Guard against undefined fields in global context.

BUG=v8:1860
TEST=

Original CL: http://codereview.chromium.org/8917014

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

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

2 years agoMerge patches to 3.7 to make MIPS work.
danno@chromium.org [Fri, 9 Dec 2011 13:19:57 +0000 (13:19 +0000)]
Merge patches to 3.7 to make MIPS work.

Includes r10107, r10109, r10124, r10128, and r10129.
Review URL: http://codereview.chromium.org/8883049

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

2 years agoMerge r10215 from the bleeding_edge to the 3.7 branch.
vegorov@chromium.org [Fri, 9 Dec 2011 12:01:59 +0000 (12:01 +0000)]
Merge r10215 from the bleeding_edge to the 3.7 branch.

Ensure that non-optimized code objects are not flushed for inlined functions.

Collector was flushing them if optimized code was reachable only through the stack (not through the JSFunction object) which happens when you have a pending lazy deoptimization.

Also prevent v8::Script::New from leaking internal objects allocated by the compiler into outer HandleScope.

R=kmillikin@chromium.org
BUG=http://crbug.com/97116
TEST=test/mjsunit/regress/regress-97116.js

Review URL: http://codereview.chromium.org/8888011
------------------------------------------------------------------------
Review URL: http://codereview.chromium.org/8888040

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

2 years agoMerge r10201 to 3.7 branch: Sync parser and preparser on do-while and return statements.
keuchel@chromium.org [Wed, 7 Dec 2011 16:44:40 +0000 (16:44 +0000)]
Merge r10201 to 3.7 branch: Sync parser and preparser on do-while and return statements.

The test case in this CL differs slightly from the original CL due to API
changes in the parser and preparser.

Original CL: http://codereview.chromium.org/8844002/

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

2 years agoMerge r10190 to 3.7 branch: Fix a bug with register use in optimized Math.round.
fschneider@chromium.org [Wed, 7 Dec 2011 13:07:25 +0000 (13:07 +0000)]
Merge r10190 to 3.7 branch: Fix a bug with register use in optimized Math.round.

Original CL: http://codereview.chromium.org/8833007/
Review URL: http://codereview.chromium.org/8832005

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

2 years agoRevert r10093 in 3.7 branch due to memory regression.
ulan@chromium.org [Mon, 5 Dec 2011 17:22:52 +0000 (17:22 +0000)]
Revert r10093 in 3.7 branch due to memory regression.

Original CL: http://codereview.chromium.org/8519002

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

2 years agoRevert r10092 and r10148 in 3.7 branch due to memory regression.
ulan@chromium.org [Mon, 5 Dec 2011 17:05:37 +0000 (17:05 +0000)]
Revert r10092 and r10148 in 3.7 branch due to memory regression.

r10092 CL: http://codereview.chromium.org/8748005
r10148 CL: http://codereview.chromium.org/8804004

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

2 years agoMerge r10145 to 3.7 branch: Fix a bug with deoptimization from inside the default...
fschneider@chromium.org [Mon, 5 Dec 2011 10:51:51 +0000 (10:51 +0000)]
Merge r10145 to 3.7 branch: Fix a bug with deoptimization from inside the default-clause of a switch-statement.

Original CL: http://codereview.chromium.org/8776048/
Review URL: http://codereview.chromium.org/8803011

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

2 years agoMerge r10148 to 3.7 branch: Fix performance on the page cycler, which is not designed...
ulan@chromium.org [Mon, 5 Dec 2011 09:55:08 +0000 (09:55 +0000)]
Merge r10148 to 3.7 branch: Fix performance on the page cycler, which is not designed to test GC speed.
Original CL: http://codereview.chromium.org/8804004

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

2 years agoMerge r10126 to 3.7 branch: Insert proper padding between lazy deoptimization points...
fschneider@chromium.org [Fri, 2 Dec 2011 11:41:29 +0000 (11:41 +0000)]
Merge r10126 to 3.7 branch: Insert proper padding between lazy deoptimization points and safepoints.

Original CL: http://codereview.chromium.org/8775009/
Review URL: http://codereview.chromium.org/8773031

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

2 years agoMerge r10121 to the 3.7 branch. Use the old idle notification handler when context...
ulan@chromium.org [Thu, 1 Dec 2011 14:16:45 +0000 (14:16 +0000)]
Merge r10121 to the 3.7 branch. Use the old idle notification handler when context is disposed.

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