platform/upstream/v8.git
9 years agoAdded --trace_idle_notification_verbose which prints out the idle notificatino heap...
Hannes Payer [Mon, 17 Nov 2014 09:16:14 +0000 (10:16 +0100)]
Added --trace_idle_notification_verbose which prints out the idle notificatino heap state.

BUG=
R=jochen@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25369}

9 years ago[turbofan] Remove int32 narrowing during typed lowering.
Jaroslav Sevcik [Mon, 17 Nov 2014 09:04:30 +0000 (10:04 +0100)]
[turbofan] Remove int32 narrowing during typed lowering.

With Int32Add we lose the int/uint distinction, so later, in simplified lowering we can make a wrong decision. E.g., see the attached test case, where we lower NumberAdd -> Int32Add because inputs are Uint32, but during simplified lowering we change the inputs to Int32, so we get a wrong result.

Simplified lowering will lower the NumberAdd operations anyway, so we should lose performance.

BUG=
R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25368}

9 years agoReland "Optimize function across closures." (again).
yangguo [Mon, 17 Nov 2014 08:42:45 +0000 (00:42 -0800)]
Reland "Optimize function across closures." (again).

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

Cr-Commit-Position: refs/heads/master@{#25367}

9 years agoClasses: Add support for stepping through default constructors
arv [Sat, 15 Nov 2014 19:48:32 +0000 (11:48 -0800)]
Classes: Add support for stepping through default constructors

If a class extends another class and it doesn't provide a constructor,
one is created for them. We therefore need to ensure that stepping into
the constructor steps into the super class constructor.

BUG=v8:3674
LOG=Y
R=dslomov@chromium.org, aandrey , yurys

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

Cr-Commit-Position: refs/heads/master@{#25366}

9 years agoLet git ignore the third_party dir to avoid unnecessary clean-ups.
machenbach [Sat, 15 Nov 2014 19:33:04 +0000 (11:33 -0800)]
Let git ignore the third_party dir to avoid unnecessary clean-ups.

BUG=chromium:433273
LOG=n
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#25365}

9 years agoThrow as per spec when modifying an Array with builtin methods
adamk [Fri, 14 Nov 2014 19:42:03 +0000 (11:42 -0800)]
Throw as per spec when modifying an Array with builtin methods

BUG=v8:3684
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#25364}

9 years agoFix desugaring of let bindings in for loops to handle continue properly
adamk [Fri, 14 Nov 2014 19:32:53 +0000 (11:32 -0800)]
Fix desugaring of let bindings in for loops to handle continue properly

This requires putting the original loop's body inside an inner for loop (with
the same labels as the original loop) and re-binding the temp variables in its
"next" expression. A second flag is added to the desugared code to ensure the
loop body executes at most once per loop.

BUG=v8:3683
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#25363}

9 years agoImplement ES6 Template Literals
caitpotter88 [Fri, 14 Nov 2014 18:53:41 +0000 (10:53 -0800)]
Implement ES6 Template Literals

BUG=v8:3230

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

Cr-Commit-Position: refs/heads/master@{#25362}

9 years ago[turbofan] refactor pipeline to use hydrogen like Run calls
dcarney [Fri, 14 Nov 2014 16:44:38 +0000 (08:44 -0800)]
[turbofan] refactor pipeline to use hydrogen like Run calls

BUG=

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

Cr-Commit-Position: refs/heads/master@{#25361}

9 years agoClasses: Implement correct name binding
arv [Fri, 14 Nov 2014 15:05:05 +0000 (07:05 -0800)]
Classes: Implement correct name binding

Named class declarations and class expression have a const binding for
the name that is in TDZ for the extends expression.

BUG=v8:3330
LOG=Y
R=dslomov@chromium.org, adamk

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

Cr-Commit-Position: refs/heads/master@{#25360}

9 years agoExtend typed lowering to cover JSStrictEqual on differing types.
Michael Starzinger [Fri, 14 Nov 2014 14:25:08 +0000 (15:25 +0100)]
Extend typed lowering to cover JSStrictEqual on differing types.

R=rossberg@chromium.org, titzer@chromium.org
TEST=unittests/JSTypedLoweringTest.JSStrictEqualWithTheHole

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

Cr-Commit-Position: refs/heads/master@{#25359}

9 years agoImplement 'setVariableValue' for debugger block scopes.
Dmitry Lomov [Fri, 14 Nov 2014 13:39:06 +0000 (14:39 +0100)]
Implement 'setVariableValue' for debugger block scopes.

R=aandrey@chromium.org, rossberg@chromium.org, yurys@chromium.org
BUG=v8:3690
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25358}

9 years agoRemove AstConstructionVisitor/AstNullVisitor
Andy Wingo [Fri, 14 Nov 2014 13:13:09 +0000 (14:13 +0100)]
Remove AstConstructionVisitor/AstNullVisitor

R=svenpanne@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25357}

9 years agoRevert "[turbofan] Smartify the GraphReducer."
Benedikt Meurer [Fri, 14 Nov 2014 11:48:37 +0000 (12:48 +0100)]
Revert "[turbofan] Smartify the GraphReducer."

This reverts commit 6e148989a4227a5290a7f8ca72c71f5740870afe for
breaking Massive/Embenchen.

TBR=machenbach@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25356}

9 years agoDo not do field type tracking with GC stress.
Ben L. Titzer [Fri, 14 Nov 2014 11:36:26 +0000 (12:36 +0100)]
Do not do field type tracking with GC stress.

R=verwaest@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25355}

9 years agoMake TurboFan inlining work without deoptimization.
Michael Starzinger [Fri, 14 Nov 2014 10:34:44 +0000 (11:34 +0100)]
Make TurboFan inlining work without deoptimization.

R=titzer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25354}

9 years agoRemove arguments arity check in mjsunit because it vastly slows down the tests.
Ben L. Titzer [Fri, 14 Nov 2014 10:30:12 +0000 (11:30 +0100)]
Remove arguments arity check in mjsunit because it vastly slows down the tests.

R=mstarzinger@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25353}

9 years agoRevert of Whitespace change to test CQ. (patchset #1 id:1 of https://codereview.chrom...
machenbach [Fri, 14 Nov 2014 09:36:07 +0000 (01:36 -0800)]
Revert of Whitespace change to test CQ. (patchset #1 id:1 of https://codereview.chromium.org/725873002/)

Reason for revert:
Test revert.

Original issue's description:
> Whitespace change to test CQ.
>
> TBR=machenbach@chromium.org
>
> Committed: https://chromium.googlesource.com/v8/v8/+/42340bdfbd8b4f002257e55464f2e0b81c6ea424

TBR=
NOTREECHECKS=true
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#25352}

9 years agoWhitespace change to test CQ.
machenbach [Fri, 14 Nov 2014 09:32:03 +0000 (01:32 -0800)]
Whitespace change to test CQ.

TBR=machenbach@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25351}

9 years ago[turbofan] small cleanups to aid register allocator debugging
Dan Carney [Fri, 14 Nov 2014 08:56:56 +0000 (09:56 +0100)]
[turbofan] small cleanups to aid register allocator debugging

BUG=
R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25350}

9 years agoFix releases script after git migration.
Michael Achenbach [Fri, 14 Nov 2014 08:38:57 +0000 (09:38 +0100)]
Fix releases script after git migration.

BUG=chromium:410721
LOG=n
TBR=tandrii@chromium.org
TEST=script_test.py

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

Cr-Commit-Position: refs/heads/master@{#25349}

9 years agoMove feedback slot allocation to post-pass
Andy Wingo [Fri, 14 Nov 2014 08:21:13 +0000 (09:21 +0100)]
Move feedback slot allocation to post-pass

R=mvstanton@chromium.org, svenpanne@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25348}

9 years ago[turbofan] Optimize remainder of integer division by unknown power of two.
Benedikt Meurer [Fri, 14 Nov 2014 08:21:04 +0000 (09:21 +0100)]
[turbofan] Optimize remainder of integer division by unknown power of two.

Drive-by-Fix: minint % 0 was broken on ARM, but we didn't notice because
there was no test covering that case...

TEST=msjunit
R=svenpanne@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25347}

9 years agoAllow idle notification when incremental marking is turned off.
Hannes Payer [Fri, 14 Nov 2014 08:13:03 +0000 (09:13 +0100)]
Allow idle notification when incremental marking is turned off.

BUG=
R=jochen@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25346}

9 years ago[turbofan] Smartify the GraphReducer.
Benedikt Meurer [Fri, 14 Nov 2014 08:00:24 +0000 (09:00 +0100)]
[turbofan] Smartify the GraphReducer.

Don't use the generic algorithm, but instead start going into the
direction of ControlReducer, using a stack plus a revisit queue to
not miss any more possibilities for reductions anymore.

TEST=cctest,unittests
R=dcarney@chromium.org

Committed: https://chromium.googlesource.com/v8/v8/+/f047507370634155113d78685372630a230613cf

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

Cr-Commit-Position: refs/heads/master@{#25345}

9 years ago[arm] Fix UBFX detection.
Benedikt Meurer [Fri, 14 Nov 2014 07:43:40 +0000 (08:43 +0100)]
[arm] Fix UBFX detection.

R=svenpanne@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25344}

9 years agoWhitespace change to trigger bots (3)
Michael Achenbach [Thu, 13 Nov 2014 22:39:44 +0000 (23:39 +0100)]
Whitespace change to trigger bots (3)

Cr-Commit-Position: refs/heads/master@{#25343}

9 years agoWhitespace change to trigger bots (2)
Michael Achenbach [Thu, 13 Nov 2014 22:19:58 +0000 (23:19 +0100)]
Whitespace change to trigger bots (2)

Cr-Commit-Position: refs/heads/master@{#25342}

9 years agoWhitespace change to trigger bots (1)
Michael Achenbach [Thu, 13 Nov 2014 22:19:02 +0000 (23:19 +0100)]
Whitespace change to trigger bots (1)

Cr-Commit-Position: refs/heads/master@{#25341}

9 years agoFix size_t to int conversion.
André Baixo [Thu, 13 Nov 2014 17:28:22 +0000 (17:28 +0000)]
Fix size_t to int conversion.

BUG=421063
LOG=N
R=vogelheim@chromium.org

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

Patch from André Baixo <baixo@google.com>.

Cr-Commit-Position: refs/heads/master@{#25340}

9 years agoAdd a version tag for cached data.
Daniel Vogelheim [Thu, 13 Nov 2014 17:17:30 +0000 (18:17 +0100)]
Add a version tag for cached data.

BUG=399580,431699
LOG=N
R=dcarney@chromium.org, marja@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25339}

9 years agoRevert "TransitionArray::Search() now returns insertion index if the entry was not...
ishell@chromium.org [Thu, 13 Nov 2014 16:59:30 +0000 (17:59 +0100)]
Revert "TransitionArray::Search() now returns insertion index if the entry was not found."

This reverts the commit because it possibly causes renderer hangs.

BUG=chromium:431807
LOG=N
R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25338}

9 years agoClasses: Cleanup default constructor flag
Erik Arvidsson [Thu, 13 Nov 2014 16:50:03 +0000 (11:50 -0500)]
Classes: Cleanup default constructor flag

Now that we keep track of whether a function contains super we do not
need kDefaultConstructorCallSuper

BUG=None
LOG=Y
R=dslomov@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25337}

9 years agoRevert "Soft fail for invalid cache data."
Daniel Vogelheim [Thu, 13 Nov 2014 16:46:52 +0000 (17:46 +0100)]
Revert "Soft fail for invalid cache data."

This reverts commit eafce666f49f13011849b6c0c40b271676ec91cf.

Original commit failed some tests w/ memory leaks.

TBR=yangguo@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25336}

9 years agoSoft fail for invalid cache data.
Yang Guo [Thu, 13 Nov 2014 15:42:40 +0000 (16:42 +0100)]
Soft fail for invalid cache data.

API=ScriptCompiler::CachedData::rejected
LOG=Y
R=vogelheim@google.com, vogelheim@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25335}

9 years agoFix dumping of counters in d8.
Michael Starzinger [Thu, 13 Nov 2014 15:39:10 +0000 (16:39 +0100)]
Fix dumping of counters in d8.

R=hpayer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25334}

9 years agoPropertyAccessCompiler should always emit reloc info for external references.
Yang Guo [Thu, 13 Nov 2014 15:37:25 +0000 (16:37 +0100)]
PropertyAccessCompiler should always emit reloc info for external references.

R=mvstanton@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25333}

9 years agoRevert "TransitionArray now uses <is_data_property, name, attributes> tuple as a...
ishell@chromium.org [Thu, 13 Nov 2014 15:30:53 +0000 (16:30 +0100)]
Revert "TransitionArray now uses <is_data_property, name, attributes> tuple as a key, which allows to have several entries for the same property name."
Revert "Fix for an assertion failure in Map::FindTransitionToField(...). Appeared after r25136."

This revert is made in order to revert r25099 which potentially causes renderer hangs.

R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25332}

9 years agoRevert of Whitespace change to test the CQ. (patchset #1 id:1 of https://codereview...
machenbach [Thu, 13 Nov 2014 14:58:11 +0000 (06:58 -0800)]
Revert of Whitespace change to test the CQ. (patchset #1 id:1 of https://codereview.chromium.org/721113003/)

Reason for revert:
Test CQ

Original issue's description:
> Whitespace change to test the CQ.
>
> TBR=machenbach@chromium.org
> NOTRY=true
>
> Committed: https://chromium.googlesource.com/v8/v8/+/b0ab17592c8729535ebfa1f52131ee7f2b96b1e3

TBR=tandrii@chromium.org
NOTREECHECKS=true
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#25331}

9 years agoReland r24737 "Read object pointer atomically while updating slots"
ulan [Thu, 13 Nov 2014 14:54:38 +0000 (06:54 -0800)]
Reland r24737 "Read object pointer atomically while updating slots"

Crashes were fixed by r24914.

BUG=chromium:427746
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25330}

9 years agoWhitespace change to test the CQ.
machenbach [Thu, 13 Nov 2014 14:19:23 +0000 (06:19 -0800)]
Whitespace change to test the CQ.

TBR=machenbach@chromium.org
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#25329}

9 years agoInstall the constructor property on custom prototype before optimizing it as a prototype
Toon Verwaest [Thu, 13 Nov 2014 14:12:03 +0000 (15:12 +0100)]
Install the constructor property on custom prototype before optimizing it as a prototype

BUG=
R=ishell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25328}

9 years agoRevert "[turbofan] Smartify the GraphReducer."
Michael Starzinger [Thu, 13 Nov 2014 14:06:49 +0000 (15:06 +0100)]
Revert "[turbofan] Smartify the GraphReducer."

This reverts commit f04750737063 due to mjsunit/numops-fuzz-part2 hitting an
assertion in the ARM assembler.

TBR=bmeurer@chromium.org
TEST=mjsunit/numops-fuzz-part2

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

Cr-Commit-Position: refs/heads/master@{#25327}

9 years ago[turbofan] Smartify the GraphReducer.
Benedikt Meurer [Thu, 13 Nov 2014 11:34:06 +0000 (12:34 +0100)]
[turbofan] Smartify the GraphReducer.

Don't use the generic algorithm, but instead start going into the
direction of ControlReducer, using a stack plus a revisit queue to
not miss any more possibilities for reductions anymore.

TEST=cctest,unittests
R=dcarney@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25326}

9 years agoImplement .of() on typed arrays
Adrian Perez [Thu, 13 Nov 2014 11:20:01 +0000 (12:20 +0100)]
Implement .of() on typed arrays

BUG=v8:3578
LOG=Y
R=dslomov@chromium.org, wingo@igalia.com

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

Patch from Adrian Perez <aperez@igalia.com>.

Cr-Commit-Position: refs/heads/master@{#25325}

9 years agoAvoid fast short-cut in Map::GeneralizeRepresentation() for literals with non-simple...
ishell@chromium.org [Thu, 13 Nov 2014 10:56:13 +0000 (11:56 +0100)]
Avoid fast short-cut in Map::GeneralizeRepresentation() for literals with non-simple transitions.
It started showing after r25253.

BUG=v8:3687
LOG=N
R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25324}

9 years agoEnable breakpoint tests that now pass in TurboFan.
Michael Starzinger [Thu, 13 Nov 2014 10:54:41 +0000 (11:54 +0100)]
Enable breakpoint tests that now pass in TurboFan.

R=jarin@chromium.org
TEST=cctest/test-debug

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

Cr-Commit-Position: refs/heads/master@{#25323}

9 years agoPerform receiver patching for sloppy mode in high-level IR.
Michael Starzinger [Thu, 13 Nov 2014 10:48:22 +0000 (11:48 +0100)]
Perform receiver patching for sloppy mode in high-level IR.

R=verwaest@chromium.org
TEST=cctest/test-run-jscalls/ReceiverPatching

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

Cr-Commit-Position: refs/heads/master@{#25322}

9 years agoMove BailoutReason and flags computation to post-pass
Andy Wingo [Thu, 13 Nov 2014 09:55:48 +0000 (10:55 +0100)]
Move BailoutReason and flags computation to post-pass

R=svenpanne@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25321}

9 years agoEnable harmony tests for TurboFan that now pass.
Michael Starzinger [Thu, 13 Nov 2014 09:43:47 +0000 (10:43 +0100)]
Enable harmony tests for TurboFan that now pass.

R=jarin@chromium.org
TEST=mjsunit/harmony

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

Cr-Commit-Position: refs/heads/master@{#25320}

9 years ago[turbofan] add some registerallocator unittests
Dan Carney [Thu, 13 Nov 2014 09:41:58 +0000 (10:41 +0100)]
[turbofan] add some registerallocator unittests

BUG=
R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25319}

9 years agoFix landing candidate pushes.
Michael Achenbach [Thu, 13 Nov 2014 09:22:45 +0000 (10:22 +0100)]
Fix landing candidate pushes.

BUG=chromium:410721
LOG=n
TBR=tandrii@chromium.org
TEST=script_test.py

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

Cr-Commit-Position: refs/heads/master@{#25318}

9 years agoReland "[turbofan] Weakening of types must weaken ranges inside unions."
Jaroslav Sevcik [Thu, 13 Nov 2014 09:02:07 +0000 (10:02 +0100)]
Reland "[turbofan] Weakening of types must weaken ranges inside unions."

This relands commit 4c1f4b796d1c455fc6a023abe145a5e48c4b7b1f.

R=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25317}

9 years agoX87: Leaving a generator via an exception causes it to close
Chunyang Dai [Thu, 13 Nov 2014 09:08:37 +0000 (17:08 +0800)]
X87: Leaving a generator via an exception causes it to close

port 24a7ee877e1fe2ba0a52d69061946aeda7c26c10 (r25297)

original commit message:

  Leaving a generator via an exception causes it to close

BUG=
R=weiliang.lin@intel.com

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

Patch from Chunyang Dai <chunyang.dai@intel.com>.

Cr-Commit-Position: refs/heads/master@{#25316}

9 years agoMove public symbols to the root set.
Yang Guo [Thu, 13 Nov 2014 08:47:52 +0000 (09:47 +0100)]
Move public symbols to the root set.

This allows serializing public symbols that are embedded in code.

BUG=v8:3689
LOG=N
R=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25315}

9 years agoRevert "Increase the target new space size to the max new space size"
Jochen Eisinger [Thu, 13 Nov 2014 08:42:05 +0000 (09:42 +0100)]
Revert "Increase the target new space size to the max new space size"

TBR=hpayer@chromium.org
BUG=v8:3626
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#25314}

9 years ago[turbofan] Avoid useless bit masking in typed lowering.
Benedikt Meurer [Thu, 13 Nov 2014 07:40:46 +0000 (08:40 +0100)]
[turbofan] Avoid useless bit masking in typed lowering.

There's no need to apply the 0x1f mask to right hand sides of shifts if
the input is already in range [0,31].

TEST=cctest,unittests
R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25313}

9 years agoRevert "[turbofan] Weakening of types must weaken ranges inside unions."
Jaroslav Sevcik [Thu, 13 Nov 2014 06:10:28 +0000 (07:10 +0100)]
Revert "[turbofan] Weakening of types must weaken ranges inside unions."

This reverts commit 4c1f4b796d1c455fc6a023abe145a5e48c4b7b1f.

TBR=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25312}

9 years ago[turbofan] Weakening of types must weaken ranges inside unions.
Jaroslav Sevcik [Thu, 13 Nov 2014 05:18:26 +0000 (06:18 +0100)]
[turbofan] Weakening of types must weaken ranges inside unions.

BUG=
R=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25311}

9 years agoRemove dead AST code in For and While statements
Adam Klein [Wed, 12 Nov 2014 18:39:07 +0000 (10:39 -0800)]
Remove dead AST code in For and While statements

R=marja@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25310}

9 years agoRe-add dot_result_string to heap.h after 5f7b24f7b42
Adam Klein [Wed, 12 Nov 2014 18:33:23 +0000 (10:33 -0800)]
Re-add dot_result_string to heap.h after 5f7b24f7b42

Failed to notice it was still being used in a DCHECK, so removing
it broke the debug build.

TBR=marja@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25309}

9 years agoRemove unused dot_for and dot_result strings from heap.h
Adam Klein [Wed, 12 Nov 2014 18:18:05 +0000 (10:18 -0800)]
Remove unused dot_for and dot_result strings from heap.h

These appear to have simply been missed in r21972

R=marja@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25308}

9 years agoSwitch release scripts to pure git.
Michael Achenbach [Wed, 12 Nov 2014 17:54:11 +0000 (18:54 +0100)]
Switch release scripts to pure git.

This removes all svn features from the release scripts.

This also fixes a bug in commit position retrieval.

BUG=chromium:410721
LOG=n
R=tandrii@chromium.org
TBR=tandrii@chromium.org
TEST=script_test.py

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

Cr-Commit-Position: refs/heads/master@{#25307}

9 years agoWhitespace change for the v8 git migration.
Michael Achenbach [Wed, 12 Nov 2014 17:43:38 +0000 (18:43 +0100)]
Whitespace change for the v8 git migration.

Cr-Commit-Position: refs/heads/master@{#25306}

9 years agoMake codereview.settings ready for git.
Michael Achenbach [Wed, 12 Nov 2014 17:33:21 +0000 (18:33 +0100)]
Make codereview.settings ready for git.

BUG=410721
LOG=n
R=agable@chromium.org, tandrii@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25305}

9 years agoMIPS: Leaving a generator via an exception causes it to close.
balazs.kilvady@imgtec.com [Wed, 12 Nov 2014 16:56:57 +0000 (16:56 +0000)]
MIPS: Leaving a generator via an exception causes it to close.

Port 757f400246dc45f889cdc0848094c417e44b8854
Port r25297

BUG=v8:3096
LOG=Y
R=paul.lind@imgtec.com

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

Cr-Commit-Position: refs/heads/master@{#25304}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25304 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix Context::declaration_context to account for script contexts.
dslomov@chromium.org [Wed, 12 Nov 2014 16:45:48 +0000 (16:45 +0000)]
Fix Context::declaration_context to account for script contexts.

R=rossberg@chromium.org
BUG=v8:3690
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25303}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25303 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoSkip regress-crbug-137689.js when running with GC stress
jkummerow@chromium.org [Wed, 12 Nov 2014 16:05:53 +0000 (16:05 +0000)]
Skip regress-crbug-137689.js when running with GC stress

It depends on maps not disappearing prematurely.

R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25302}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25302 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoMIPS: ES6: Add support for super in object literals.
balazs.kilvady@imgtec.com [Wed, 12 Nov 2014 15:03:23 +0000 (15:03 +0000)]
MIPS: ES6: Add support for super in object literals.

Port 84741e76a346e34b018af129b0c15bd5d7b1af15
Port r25271

Original commit message:
This only available under --harmony-classes

BUG=v8:3571
LOG=Y
R=paul.lind@imgtec.com

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

Cr-Commit-Position: refs/heads/master@{#25301}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25301 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years ago[turbofan] add gap move verifier
dcarney@chromium.org [Wed, 12 Nov 2014 14:53:30 +0000 (14:53 +0000)]
[turbofan] add gap move verifier

R=jarin@chromium.org

BUG=

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

Cr-Commit-Position: refs/heads/master@{#25300}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25300 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoLink against librt on solaris for semaphore and scheduler symbols
jochen@chromium.org [Wed, 12 Nov 2014 14:47:49 +0000 (14:47 +0000)]
Link against librt on solaris for semaphore and scheduler symbols

BUG=v8:3358
R=svenpanne@chromium.org
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#25299}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25299 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoIncrease the target new space size to the max new space size
jochen@chromium.org [Wed, 12 Nov 2014 14:46:20 +0000 (14:46 +0000)]
Increase the target new space size to the max new space size

Assuming a page creates a low of objects that however will soon die
after page load, delaying the first scavange will hopefully decrease the
amount of time spent during page load without a later penalty when we
have to scavenge a large but mostly dead new space

BUG=v8:3626
R=hpayer@chromium.org
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#25298}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25298 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoLeaving a generator via an exception causes it to close
wingo@igalia.com [Wed, 12 Nov 2014 14:28:53 +0000 (14:28 +0000)]
Leaving a generator via an exception causes it to close

R=rossberg@chromium.org
BUG=v8:3096
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#25297}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25297 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoTemporarily disable test due to not being compatible with the serializer.
yangguo@chromium.org [Wed, 12 Nov 2014 14:26:42 +0000 (14:26 +0000)]
Temporarily disable test due to not being compatible with the serializer.

TBR=dslomov@chromium.org
BUG=v8:3689
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25296}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25296 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix copyright headers.
bmeurer@chromium.org [Wed, 12 Nov 2014 13:29:08 +0000 (13:29 +0000)]
Fix copyright headers.

R=machenbach@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25295}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25295 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoRe-enable serialization under harmony-scoping.
dslomov@chromium.org [Wed, 12 Nov 2014 13:12:17 +0000 (13:12 +0000)]
Re-enable serialization under harmony-scoping.

R=yangguo@chromium.org
BUG=v8:3689
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25294}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25294 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoDisable top level serialization under harmony_scoping. It has broken tests.
dslomov@chromium.org [Wed, 12 Nov 2014 12:23:13 +0000 (12:23 +0000)]
Disable top level serialization under harmony_scoping. It has broken tests.

TBR=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25293}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25293 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years ago[arm] Remove code duplication in instruction selector. Refactoring.
bmeurer@chromium.org [Wed, 12 Nov 2014 12:07:48 +0000 (12:07 +0000)]
[arm] Remove code duplication in instruction selector. Refactoring.

TEST=unittests
R=dcarney@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25292}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25292 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoVarious clean-ups after top-level lexical declarations are done.
dslomov@chromium.org [Wed, 12 Nov 2014 11:34:09 +0000 (11:34 +0000)]
Various clean-ups after top-level lexical declarations are done.

1. Global{Context,Scope}=>Script{Context,Scope}
2. Enable fixed tests
3. Update comments

R=rossberg@chromium.org
BUG=v8:2198
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25291}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25291 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoSwitch 'make builddeps' to use HTTPS everywhere.
mstarzinger@chromium.org [Wed, 12 Nov 2014 10:11:53 +0000 (10:11 +0000)]
Switch 'make builddeps' to use HTTPS everywhere.

R=jkummerow@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25290}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25290 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoCorrectly compute line numbers in functions from the function constructor.
yangguo@chromium.org [Wed, 12 Nov 2014 10:06:19 +0000 (10:06 +0000)]
Correctly compute line numbers in functions from the function constructor.

R=aandrey@chromium.org
BUG=chromium:109362
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#25289}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25289 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years ago[turbofan] Use cbz/cbnz when possible on arm64.
baptiste.afsa@arm.com [Wed, 12 Nov 2014 10:06:12 +0000 (10:06 +0000)]
[turbofan] Use cbz/cbnz when possible on arm64.

R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25288}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25288 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoZap prototype transitions in release mode, too.
jarin@chromium.org [Wed, 12 Nov 2014 10:01:45 +0000 (10:01 +0000)]
Zap prototype transitions in release mode, too.

R=ulan@chromium.org
BUG=431559
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#25287}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25287 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoDouble unboxing tests fixed.
ishell@chromium.org [Wed, 12 Nov 2014 09:47:32 +0000 (09:47 +0000)]
Double unboxing tests fixed.

R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25286}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25286 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix bug in graph copy while inlining loops.
mstarzinger@chromium.org [Wed, 12 Nov 2014 09:46:51 +0000 (09:46 +0000)]
Fix bug in graph copy while inlining loops.

R=titzer@chromium.org
TEST=cctest/test-run-inlining/InlineLoop

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

Cr-Commit-Position: refs/heads/master@{#25285}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25285 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoRemove unique static RegExpEmpty instance.
yangguo@chromium.org [Wed, 12 Nov 2014 09:43:56 +0000 (09:43 +0000)]
Remove unique static RegExpEmpty instance.

R=marja@chromium.org
BUG=chromium:430652
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25284}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25284 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix scheduler for floating non-naked non-empty loops.
mstarzinger@chromium.org [Wed, 12 Nov 2014 09:38:33 +0000 (09:38 +0000)]
Fix scheduler for floating non-naked non-empty loops.

R=jarin@chromium.org
TEST=cctest/test-scheduler/NestedFloatingDiamondWithLoop

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

Cr-Commit-Position: refs/heads/master@{#25283}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25283 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoReorder Error properties.
yangguo@chromium.org [Wed, 12 Nov 2014 09:28:17 +0000 (09:28 +0000)]
Reorder Error properties.

R=jkummerow@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25282}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25282 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoScheduler checks that end block doesn't have successors.
mstarzinger@chromium.org [Wed, 12 Nov 2014 09:19:35 +0000 (09:19 +0000)]
Scheduler checks that end block doesn't have successors.

R=jarin@chromium.org
TEST=cctest/test-scheduler/RPOLoop

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

Cr-Commit-Position: refs/heads/master@{#25281}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25281 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoX87: ES6: Add support for super in object literals
weiliang.lin@intel.com [Wed, 12 Nov 2014 08:32:50 +0000 (08:32 +0000)]
X87:  ES6: Add support for super in object literals

port 721ff07f5901a9bf9ccacf0356a2c10dc452f32d (r25271).

original commit message:

  ES6: Add support for super in object literals

  This only available under --harmony-classes

BUG=
R=weiliang.lin@intel.com

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

Patch from Chunyang Dai <chunyang.dai@intel.com>.

Cr-Commit-Position: refs/heads/master@{#25280}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25280 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoReland "Fix stepping in for-loops."
yangguo@chromium.org [Wed, 12 Nov 2014 08:25:59 +0000 (08:25 +0000)]
Reland "Fix stepping in for-loops."

BUG=v8:3634
LOG=N
R=ulan@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25279}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25279 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix windows build (static_cast missing).
yangguo@chromium.org [Wed, 12 Nov 2014 08:15:30 +0000 (08:15 +0000)]
Fix windows build (static_cast missing).

TBR=ishell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25278}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25278 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoFix gn build.
yangguo@chromium.org [Wed, 12 Nov 2014 08:11:57 +0000 (08:11 +0000)]
Fix gn build.

TBR=ishell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25277}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25277 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoAbstract string building in JSON-stringifier into IncrementalStringBuilder.
yangguo@chromium.org [Wed, 12 Nov 2014 08:04:41 +0000 (08:04 +0000)]
Abstract string building in JSON-stringifier into IncrementalStringBuilder.

R=ishell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25276}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25276 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoSwitch DEPS to git.
machenbach@chromium.org [Tue, 11 Nov 2014 22:07:08 +0000 (22:07 +0000)]
Switch DEPS to git.

BUG=415464
LOG=n
R=agable@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25274}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25274 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoRename v8::Exception::GetMessage to CreateMessage.
aandrey@chromium.org [Tue, 11 Nov 2014 21:44:38 +0000 (21:44 +0000)]
Rename v8::Exception::GetMessage to CreateMessage.

This is to avoid renaming to GetMessageW/GetMessageA on Windows.

API=v8::Exception::CreateMessage
R=yangguo@chromium.org, loislo
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#25273}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25273 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoClasses: Add support for arguments in default constructor
arv@chromium.org [Tue, 11 Nov 2014 21:35:27 +0000 (21:35 +0000)]
Classes: Add support for arguments in default constructor

This is currently done by generating a default constructor that looks
like this:

  constructor() {
    %DefaultConstructorSuperCall();
  }

The a runtime function implements the logic which is pretty similar to
Runtime_Apply except that it uses the [[Prototype]] of the current
function.

This is the second try. The first failed because the test was using a
array that was too large for Function.prototype.apply.

Revert "Revert "Classes: Add support for arguments in default constructor""

This reverts commit 43aa7e541df56a132608b8b4217e9da84575e4f8.

BUG=v8:3672
LOG=Y
TBR=dslomov@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25272}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25272 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoES6: Add support for super in object literals
arv@chromium.org [Tue, 11 Nov 2014 19:54:21 +0000 (19:54 +0000)]
ES6: Add support for super in object literals

This only available under --harmony-classes

BUG=v8:3571
LOG=Y
R=dslomov@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25271}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25271 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoCorrectly handle Array unshift/splices that move elements past the max length of...
adamk@chromium.org [Tue, 11 Nov 2014 19:07:29 +0000 (19:07 +0000)]
Correctly handle Array unshift/splices that move elements past the max length of an Array

BUG=v8:2615
LOG=n
R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25270}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25270 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

9 years agoRevert "Classes: Add support for arguments in default constructor"
arv@chromium.org [Tue, 11 Nov 2014 16:22:14 +0000 (16:22 +0000)]
Revert "Classes: Add support for arguments in default constructor"

This reverts commit 3f4ea6c91a962a04407c79f08e5c86ce9ff2911a.

Broke tests on Mac64

http://build.chromium.org/p/client.v8/builders/V8%20Mac64/builds/923/steps/Check/logs/classes

BUG=v8:3672
TBR=dslomov@chromium.org
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25269}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25269 ce2b1a6d-e550-0410-aec6-3dcde31c8c00