platform/upstream/v8.git
8 years agoVersion 4.7.83 upstream upstream/4.7.83
v8-autoroll@chromium.org [Thu, 1 Oct 2015 18:25:18 +0000 (11:25 -0700)]
Version 4.7.83

Extend Annex B 3.3 sloppy-mode block-scoped hoisting to scripts, eval (issue 4441).

Performance and stability improvements on all platforms.

Cr-Commit-Position: refs/heads/4.7.83@{#1}
Cr-Branched-From: ed906a91000e2531f619d582cb56b6141968a3fe-refs/heads/master@{#31038}

8 years agoUpdate V8 DEPS.
v8-autoroll [Thu, 1 Oct 2015 03:24:01 +0000 (20:24 -0700)]
Update V8 DEPS.

Rolling v8/buildtools to 0c88009d5c50b9f21b6f8849db08abfb9eb29f1e

TBR=machenbach@chromium.org,vogelheim@chromium.org,hablich@chromium.org

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

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

8 years agoExtend Annex B 3.3 sloppy-mode block-scoped hoisting to scripts, eval
littledan [Wed, 30 Sep 2015 23:48:26 +0000 (16:48 -0700)]
Extend Annex B 3.3 sloppy-mode block-scoped hoisting to scripts, eval

The ES2015 spec is missing an extension of sloppy-mode block-scoped function
behavior to the global scope in scripts, as well as to eval. This patch
brings that hoisting to those two areas. The behavior is not perfectly
spec-compliant since properties created on the global scope should be
set as enumerable even if they are non-enumerable previously, but the
attributes will not be modified if the property already exists under
this patch.

BUG=v8:4441
LOG=Y
R=adamk
TEST=reddit comment functionality seems to be fixed

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

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

8 years agoPPC: Full code shouldn't embed the type feedback vector.
mbrandy [Wed, 30 Sep 2015 21:14:02 +0000 (14:14 -0700)]
PPC: Full code shouldn't embed the type feedback vector.

Port c90c60ba2689fb524a1526503c9c87f534cf58fb

Original commit message:
    Make sure to always reference it indirectly. This allows us to make the vector
    native-context dependent should we wish.

R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

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

8 years agoPPC: Introduce LiteralsArray to hide it's implementation.
mbrandy [Wed, 30 Sep 2015 21:10:23 +0000 (14:10 -0700)]
PPC: Introduce LiteralsArray to hide it's implementation.

Port d8cdd6956a04cfcf03159ef7802c44838eee3146

Original commit message:
    The LiteralsArray will soon hold a type feedback vector. Code treats it as an
    ordinary fixed array, and needs to stop that.

R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

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

8 years agoPPC: [es6] Fix invalid ToString in implementation of ToName.
mbrandy [Wed, 30 Sep 2015 21:09:16 +0000 (14:09 -0700)]
PPC: [es6] Fix invalid ToString in implementation of ToName.

Port 09626525fea63396c8a200deb9081d6dd1034d57

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

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

8 years agoPPC: [turbofan] Call ArgumentsAccessStub to materialize arguments.
mbrandy [Wed, 30 Sep 2015 21:07:13 +0000 (14:07 -0700)]
PPC: [turbofan] Call ArgumentsAccessStub to materialize arguments.

Port 9b12ec9ac2aff2978d05df775ce621ba4d90cbe8

Original commit message:
    This lowers JSCreateArgument nodes to call the ArgumentsAccessStub for
    help with materializing arguments objects when possible. Along the way
    this changes the calling convention of said stub to take parameters in
    registers instead of on the stack.

R=mstarzinger@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

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

8 years agoTwo minor cleanups in pattern rewriter
adamk [Wed, 30 Sep 2015 20:22:23 +0000 (13:22 -0700)]
Two minor cleanups in pattern rewriter

- No need to call AsVariableProxy() on a VariableProxy
- Reduce AST visitor boilerplate using pre-existing macro
  (and re-alphabetize the list of non-patterns).

R=littledan@chromium.org

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

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

8 years agoRemove --harmony-arrow-functions flag
adamk [Wed, 30 Sep 2015 19:49:46 +0000 (12:49 -0700)]
Remove --harmony-arrow-functions flag

Arrow functions have been enabled by default since the 4.5 branch.

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

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

8 years ago[es6] Function constructor-created functions should be named "anonymous"
adamk [Wed, 30 Sep 2015 19:19:57 +0000 (12:19 -0700)]
[es6] Function constructor-created functions should be named "anonymous"

Besides matching the spec, this matches the behavior of Firefox and Edge.

BUG=v8:3699
LOG=n
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

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

8 years agoRevert "Stage sloppy block-scoped functions (Annex B 3.3)"
adamk [Wed, 30 Sep 2015 19:17:23 +0000 (12:17 -0700)]
Revert "Stage sloppy block-scoped functions (Annex B 3.3)"

The current implemention breaks sloppy mode code that uses function
declarations inside blocks at top-level. Work is ongoing on a patch
to fix this issue, but in the meantime it seems reasonable to move
the feature out of staging.

Manual revert of commit 6e07f5a75ba2c949ac96efabd5248c76b9957112.

R=littledan@chromium.org
BUG=chromium:535836
LOG=y

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

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

8 years ago[V8] Add name of function for function's closure scope
kozyatinskiy [Wed, 30 Sep 2015 17:24:25 +0000 (10:24 -0700)]
[V8] Add name of function for function's closure scope

Added ScopeDetails.name field for closure scopes. It contains function's debug name of current context of scope.

BUG=493156
LOG=Y
R=yurys@chromium.org,yangguo@chromium.org

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

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

8 years agoPPC: [es6] Introduce spec compliant IsConstructor.
mbrandy [Wed, 30 Sep 2015 17:01:01 +0000 (10:01 -0700)]
PPC: [es6] Introduce spec compliant IsConstructor.

Port 8fe3ac07014ce5891be0a1cbd8019e9f3b02ff0b

Original commit message:
    There was already a bit on the Map named "function with prototype",
    which basically meant that the Map was a map for a JSFunction that could
    be used as a constructor. Now this CL generalizes that bit to
    IsConstructor, which says that whatever (Heap)Object you are looking at
    can be used as a constructor (i.e. the bit is also set for bound
    functions that can be used as constructors and proxies that have a
    [[Construct]] internal method).

    This way we have a single chokepoint for IsConstructor checking, which
    allows us to get rid of the various ways in which we tried to guess
    whether something could be used as a constructor or not.

    Drive-by-fix: Renamed IsConstructor on FunctionKind to
    IsClassConstructor to resolve the weird name clash, and the
    IsClassConstructor name also matches the spec.

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=v8:4413, v8:4430
LOG=n

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

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

8 years agoPPC: [runtime] Remove weird pushing of something on StackOverflow.
mbrandy [Wed, 30 Sep 2015 16:29:52 +0000 (09:29 -0700)]
PPC: [runtime] Remove weird pushing of something on StackOverflow.

Port 556b522ac62414c87d05f5d6bab33f6b6cab9b13

Original commit message:
    We somehow try to push some stuff on the stack when we detect a stack
    overflow, that we don't need. Even worse we might access outside the
    valid stack bounds. Since we don't need this, it's gone.

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=chromium:534881
LOG=n

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

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

8 years agoPPC: [builtin] Refactor Invoke to deal with any kind of callable.
mbrandy [Wed, 30 Sep 2015 16:28:41 +0000 (09:28 -0700)]
PPC: [builtin] Refactor Invoke to deal with any kind of callable.

Port 634d1d86d8e98584097c6cb548a68ecf705c44f7

Original commit message:
    Now both Execution::Call and Execution::New can deal with any
    kind of target and will raise a proper exception if the target is not
    callable (which is not yet spec compliant for New, as we would
    have to check IsConstructor instead, which we don't have yet).

    Now we no longer need to do any of these weird call/construct
    delegate gymnastics in C++, and we finally have a single true
    bottleneck for Call/Construct abstract operations in the code
    base, with only a few special handlings left in the compilers to
    optimize the JSFunction case.

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=v8:4430, v8:4413
LOG=n

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

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

8 years agoTeach JSReceiver::GetKeys() how to include symbols
jkummerow [Wed, 30 Sep 2015 15:00:23 +0000 (08:00 -0700)]
Teach JSReceiver::GetKeys() how to include symbols

No users of that functionality yet, those will come separately.

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

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

8 years agoAdd LookupIterator constructor for arbitrary Object keys
jkummerow [Wed, 30 Sep 2015 14:51:45 +0000 (07:51 -0700)]
Add LookupIterator constructor for arbitrary Object keys

Continuing unification of properties/elements handling, the new
LookupIterator::PropertyOrElement(..., Handle<Object> key, ...) takes
any Object and does the required ToPrimitive/ToName/ToArrayIndex
conversions on it.

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

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

8 years agoReland "Clean up rewriter" (issue 1362333002).
neis [Wed, 30 Sep 2015 14:43:14 +0000 (07:43 -0700)]
Reland "Clean up rewriter" (issue 1362333002).

R=rossberg
BUG=

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

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

8 years agoMake AstPrinter print position information.
neis [Wed, 30 Sep 2015 14:22:57 +0000 (07:22 -0700)]
Make AstPrinter print position information.

R=rossberg
BUG=

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

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

8 years ago[swarming] Only isolate d8 with target toolset.
machenbach [Wed, 30 Sep 2015 13:48:08 +0000 (06:48 -0700)]
[swarming] Only isolate d8 with target toolset.

BUG=chromium:535160,chromium:537247
LOG=n

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

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

8 years ago[presubmit] Enable readability/namespace linter checking.
mstarzinger [Wed, 30 Sep 2015 13:46:56 +0000 (06:46 -0700)]
[presubmit] Enable readability/namespace linter checking.

This enables linter checking for "readability/namespace" violations
during presubmit and instead marks the few known exceptions that we
allow explicitly.

R=bmeurer@chromium.org

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

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

8 years agoJSObject::GetEnumProperty cleanup
cbruni [Wed, 30 Sep 2015 12:49:07 +0000 (05:49 -0700)]
JSObject::GetEnumProperty cleanup

BUG=

Committed: https://crrev.com/a00d47c802f93cf9835eafce4c9da2dd10b44f6a
Cr-Commit-Position: refs/heads/master@{#30946}

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

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

8 years ago[heap] Less aggressive inlining of IncrementalMarking code.
mstarzinger [Wed, 30 Sep 2015 08:23:55 +0000 (01:23 -0700)]
[heap] Less aggressive inlining of IncrementalMarking code.

This moves some methods of IncrementalMarking from the inlined header
into the compilation unit. The methods in question are either not hot
or are being called through a non-inline function already.

R=hpayer@chromium.org

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

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

8 years agoremove unused Debug::has_break_points_
ofrobots [Wed, 30 Sep 2015 06:02:14 +0000 (23:02 -0700)]
remove unused Debug::has_break_points_

Previous debug refactoring changes removed uses of has_break_points_, but
omitted removing the field itself. This is not necessary anymore.

R=yangguo@chromium.org
BUG=

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

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

8 years agoX87: Introduce LiteralsArray to hide it's implementation.
chunyang.dai [Wed, 30 Sep 2015 05:37:28 +0000 (22:37 -0700)]
X87: Introduce LiteralsArray to hide it's implementation.

port d8cdd6956a04cfcf03159ef7802c44838eee3146 (r31000).

original commit message:

    The LiteralsArray will soon hold a type feedback vector. Code treats it as an
    ordinary fixed array, and needs to stop that.

BUG=

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

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

8 years agoVersion 4.7.80
v8-autoroll@chromium.org [Wed, 30 Sep 2015 17:55:14 +0000 (10:55 -0700)]
Version 4.7.80

Performance and stability improvements on all platforms.

Cr-Commit-Position: refs/heads/4.7.80@{#1}
Cr-Branched-From: f3c89267db0fc6120d95046c3ff35a35ca34614f-refs/heads/master@{#31014}

8 years agoUpdate V8 DEPS.
v8-autoroll [Wed, 30 Sep 2015 03:24:42 +0000 (20:24 -0700)]
Update V8 DEPS.

Rolling v8/tools/clang to 0150e39a3112dbc7e4c7a3ab25276b8d7781f3b6

TBR=machenbach@chromium.org,vogelheim@chromium.org,hablich@chromium.org

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

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

8 years agoGYP: Don't pass -Wno-format-pedantic to GCC.
akos.palfi [Tue, 29 Sep 2015 22:10:13 +0000 (15:10 -0700)]
GYP: Don't pass -Wno-format-pedantic to GCC.

This flag is not understood correctly by GCC and breaks the GCC ARM and MIPS optdebug builds.

Patch from Brendan Kirby <brendan.kirby@imgtec.com>

BUG=

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

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

8 years ago[api] Avoid recursive GCs through reaching external allocation limit
mlippautz [Tue, 29 Sep 2015 19:17:23 +0000 (12:17 -0700)]
[api] Avoid recursive GCs through reaching external allocation limit

See bug description.

BUG=chromium:536231
LOG=N

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

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

8 years agoMIPS64: Add big-endian support for mips64.
dusan.m.milosavljevic [Tue, 29 Sep 2015 17:23:44 +0000 (10:23 -0700)]
MIPS64: Add big-endian support for mips64.

TEST=
BUG=

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

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

8 years ago[heap] No leakage of incremental-marking.h outside of heap.
mstarzinger [Tue, 29 Sep 2015 16:59:01 +0000 (09:59 -0700)]
[heap] No leakage of incremental-marking.h outside of heap.

This prevents the internal incremental-marking.h to be usable outisde
of the "heap" directory. The logic inside that component is only useful
within the GC and is now properly encapsulated.

R=hpayer@chromium.org

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

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

8 years ago[turbofan] Pass scope infos as static operator parameters.
mstarzinger [Tue, 29 Sep 2015 15:53:08 +0000 (08:53 -0700)]
[turbofan] Pass scope infos as static operator parameters.

This changes the operators for JSCreate[Block|Script]Context to take
their ScopeInfo as a static parameter as opposed to a value input and
in turn allows for easier access to that parameter during lowerings.

R=jarin@chromium.org

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

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

8 years ago[arm] Fix a double-register push operation.
jacob.bramley [Tue, 29 Sep 2015 15:11:18 +0000 (08:11 -0700)]
[arm] Fix a double-register push operation.

It is not safe to access memory below sp, and this is also forbidden by
the ABI. When pushing, we must either use an atomic operation (such as
vstm+db_w) or move sp before writing the data.

This patch fixes one stack access, and also adds vpush and vpop helpers
to simplify similar code.

BUG=

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

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

8 years ago[turbofan] Remove obsolete helpers from graph verifier.
mstarzinger [Tue, 29 Sep 2015 14:42:42 +0000 (07:42 -0700)]
[turbofan] Remove obsolete helpers from graph verifier.

The NodeProperties helpers are here to stay and won't go away anytime
soon. This removes a TODO from the graph verifier in that regard.

R=jarin@chromium.org

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

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

8 years ago[turbofan] Make string comparisons effectful.
jarin [Tue, 29 Sep 2015 14:38:56 +0000 (07:38 -0700)]
[turbofan] Make string comparisons effectful.

BUG=v8:4446
LOG=n

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

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

8 years ago[turbofan] Make Strict(Not)Equal, TypeOf, ToBoolean, UnaryNot effectful.
jarin [Tue, 29 Sep 2015 13:51:25 +0000 (06:51 -0700)]
[turbofan] Make Strict(Not)Equal, TypeOf, ToBoolean, UnaryNot effectful.

This is necessary because these operators can read heap (equality can actually write heap when flattening strings).

BUG=v8:4446
LOG=n

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

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

8 years ago[heap] Remove NewSpace::set_top and the corresponding hack
mlippautz [Tue, 29 Sep 2015 13:07:24 +0000 (06:07 -0700)]
[heap] Remove NewSpace::set_top and the corresponding hack

- Remove the hack the resets the new space top pointer from SeqString::Truncate.
- Remove NewSpace::set_top completely as there are no callers (and there should
  be no!)

R=hpayer@chromium.org
BUG=chromium:536163
LOG=N

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

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

8 years agoAST pretty printer fix.
ishell [Tue, 29 Sep 2015 12:22:39 +0000 (05:22 -0700)]
AST pretty printer fix.

It was broken by https://codereview.chromium.org/1376443002.

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

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

8 years agoAllow JavaScript accessors on API objects.
vogelheim [Tue, 29 Sep 2015 11:15:59 +0000 (04:15 -0700)]
Allow JavaScript accessors on API objects.

(This is somewhat experimental; hence protected by #ifdef.)

R=epertoso@chromium.org, jochen@chromium.org
BUG=chromium:508898
LOG=N

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

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

8 years ago[Docs] Fix formatting errors in migrated content
hablich [Tue, 29 Sep 2015 10:16:48 +0000 (03:16 -0700)]
[Docs] Fix formatting errors in migrated content

NOTRY=true
NOPRESUBMIT=true
R=machenbach@chromium.org

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

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

8 years agoIntroduce LiteralsArray to hide it's implementation.
mvstanton [Tue, 29 Sep 2015 10:15:31 +0000 (03:15 -0700)]
Introduce LiteralsArray to hide it's implementation.

The LiteralsArray will soon hold a type feedback vector. Code treats it as an
ordinary fixed array, and needs to stop that.

BUG=

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

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

8 years ago[Docs] Adding information about general triaging
hablich [Tue, 29 Sep 2015 09:38:04 +0000 (02:38 -0700)]
[Docs] Adding information about general triaging

R=machenbach@chromium.org
NOPRESUBMIT=true
NOTRY=true

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

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

8 years ago[heap] Reland Remove retry space from AllocateRaw.
hpayer [Tue, 29 Sep 2015 09:08:10 +0000 (02:08 -0700)]
[heap] Reland Remove retry space from AllocateRaw.

BUG=

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

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

8 years ago[cctest] adding --help option to output basic information about cctest
cbruni [Tue, 29 Sep 2015 08:41:26 +0000 (01:41 -0700)]
[cctest] adding --help option to output basic information about cctest
[run-tests.py]
- adding more detailed information about the flags
- show more detailed error message on failing Popen commands

BUG=

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

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

8 years agoTell MSAN that profiler doesn't expect sp to point at initialized memory
yurys [Tue, 29 Sep 2015 08:18:57 +0000 (01:18 -0700)]
Tell MSAN that profiler doesn't expect sp to point at initialized memory

BUG=v8:4444,v8:4151
LOG=N

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

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

8 years ago[heap] Cleanup string factory methods a bit.
mstarzinger [Tue, 29 Sep 2015 08:08:14 +0000 (01:08 -0700)]
[heap] Cleanup string factory methods a bit.

This is mostly removing dead code and also dropping MUST_USE_RESULT
annotations from methods that cannot throw an exception anyways.

R=hpayer@chromium.org

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

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

8 years agoFix Frame::AlignSavedCalleeRegisterSlots
jacob.bramley [Tue, 29 Sep 2015 07:48:43 +0000 (00:48 -0700)]
Fix Frame::AlignSavedCalleeRegisterSlots

The return value is expected to be the number of padding slots added to the frame. However, the original logic would return -1 if padding was required, so insufficient stack space would be reserved.

This function now returns either 0 or 1, as the existing calling code expects.

BUG=

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

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

8 years ago[es6] Introduce %ToInteger and %ToLength.
bmeurer [Tue, 29 Sep 2015 07:41:03 +0000 (00:41 -0700)]
[es6] Introduce %ToInteger and %ToLength.

This adds ES6 compliant Object::ToInteger, Object::ToInt32,
Object::ToUint32 and Object::ToLength, and replaces the old
Execution wrappers of those abstract operations (which were
not using the correct ToPrimitive).

This also introduces proper %ToInteger and %ToLength runtime
entries, with a fast path %_ToInteger supported in fullcodegen
and Crankshaft (for now). Internal JavaScript code should use
TO_INTEGER and TO_LENGTH respectively.

CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg
BUG=v8:4307
LOG=n

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

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

8 years agoRevert of Clean up rewriter. (patchset #3 id:40001 of https://codereview.chromium...
machenbach [Tue, 29 Sep 2015 04:53:06 +0000 (21:53 -0700)]
Revert of Clean up rewriter. (patchset #3 id:40001 of https://codereview.chromium.org/1362333002/ )

Reason for revert:
[Sheriff] Seems to break layout tests:
http://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/builds/2073

https://storage.googleapis.com/chromium-layout-test-archives/V8-Blink_Linux_64/2073/layout-test-results/results.html

Please request rebaseline upstream first.

Original issue's description:
> Clean up rewriter.
>
> The main changes are:
> - Fix treatment of loops, which was incorrect and sometimes resulted in
>   the wrong completion value.
> - Get rid of unnecessary variables.
>
> This is in preparation of implementing ES6 completion semantics.
>
> R=rossberg
> BUG=
>
> Committed: https://crrev.com/b466dc14791844b7ae6d1e9ebd00a778965c206d
> Cr-Commit-Position: refs/heads/master@{#30981}

TBR=rossberg@chromium.org,neis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

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

8 years agoRevert of [heap] Remove retry space from AllocateRaw. (patchset #3 id:40001 of https...
bmeurer [Tue, 29 Sep 2015 04:39:51 +0000 (21:39 -0700)]
Revert of [heap] Remove retry space from AllocateRaw. (patchset #3 id:40001 of https://codereview.chromium.org/1370123002/ )

Reason for revert:
Breaks arm64 nosnap simulator (bogus cctest?): https://chromegw.corp.google.com/i/client.v8/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20nosnap%20-%20debug%20-%201/builds/2934/steps/Bisect%202786ceec.Retry/logs/IncrementalWriteBarri..

Original issue's description:
> [heap] Remove retry space from AllocateRaw.
>
> BUG=
>
> Committed: https://crrev.com/2786ceec1eb491494d24d29a59eefbe3b6704be2
> Cr-Commit-Position: refs/heads/master@{#30984}

TBR=mstarzinger@chromium.org,hpayer@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

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

8 years ago[turbofan] Greedy: smarter last resort splitting.
mtrofin [Tue, 29 Sep 2015 03:46:53 +0000 (20:46 -0700)]
[turbofan] Greedy: smarter last resort splitting.

When all heuristics fail, we run a "last resort" heuristic. Before, it was
splitting at the first found splittable position either before or after a
use position. That turns out to be too naive: it may split in loops, when
alternative split positions exist outside loops.

This change chooses a "before" use case location that is outside the
loop.

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

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

8 years agoUpdate V8 DEPS.
v8-autoroll [Tue, 29 Sep 2015 03:23:41 +0000 (20:23 -0700)]
Update V8 DEPS.

Rolling v8/buildtools to e7111440c07a883b82ffbbe6d26c744dfc6c9673

TBR=machenbach@chromium.org,vogelheim@chromium.org,hablich@chromium.org

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

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

8 years agoX87: [es6] Fix invalid ToString in implementation of ToName.
chunyang.dai [Tue, 29 Sep 2015 02:20:47 +0000 (19:20 -0700)]
X87: [es6] Fix invalid ToString in implementation of ToName.

port 09626525fea63396c8a200deb9081d6dd1034d57 (r30957).

original commit message:

BUG=

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

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

8 years agoMove heap and CPU profilers into a dedicated directory.
alph [Mon, 28 Sep 2015 19:34:08 +0000 (12:34 -0700)]
Move heap and CPU profilers into a dedicated directory.

Drive-by: remove unnecessary includes.
Review URL: https://codereview.chromium.org/1356223004

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

8 years ago[Interpreter] Add tests for adding strings and heap number arithmetic.
oth [Mon, 28 Sep 2015 19:14:16 +0000 (12:14 -0700)]
[Interpreter] Add tests for adding strings and heap number arithmetic.

BUG=v8:4280
LOG=N

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

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

8 years ago[heap] Move CALL_HEAP_FUNCTION macro into factory.cc file.
mstarzinger [Mon, 28 Sep 2015 18:08:17 +0000 (11:08 -0700)]
[heap] Move CALL_HEAP_FUNCTION macro into factory.cc file.

R=hpayer@chromium.org

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

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

8 years ago[heap] Remove retry space from AllocateRaw.
hpayer [Mon, 28 Sep 2015 18:07:09 +0000 (11:07 -0700)]
[heap] Remove retry space from AllocateRaw.

BUG=

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

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

8 years ago[Interpreter] Add interpreter support for compare ops and ToBoolean.
oth [Mon, 28 Sep 2015 18:05:56 +0000 (11:05 -0700)]
[Interpreter] Add interpreter support for compare ops and ToBoolean.

The comparison operators and ToBoolean are implemented by calling into
the runtime. There are new runtime methods are prefixed with Interpreter
to make use case clear.

BUG=v8:4280
LOG=N

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

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

8 years agoRevert of Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again...
ishell [Mon, 28 Sep 2015 16:40:52 +0000 (09:40 -0700)]
Revert of Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again. (patchset #3 id:80001 of https://codereview.chromium.org/1361763004/ )

Reason for revert:
This CL breaks cross-compiling to arm.

Original issue's description:
> Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again.
>
> Without that, it has a few false positives about out-of-bounds array accesses.
> Also makes the clang static-analyzer happy.
>
> Original code review from Sven Panne:
> https://codereview.chromium.org/790723002/
>
> Committed: https://crrev.com/0b48b2a8ebfc791a36f4ec1f299f46db76265a3a
> Cr-Commit-Position: refs/heads/master@{#30977}

TBR=jochen@chromium.org,bmeurer@chromium.org,jkummerow@chromium.org,karl@skomski.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

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

8 years agoClean up rewriter.
neis [Mon, 28 Sep 2015 15:09:42 +0000 (08:09 -0700)]
Clean up rewriter.

The main changes are:
- Fix treatment of loops, which was incorrect and sometimes resulted in
  the wrong completion value.
- Get rid of unnecessary variables.

This is in preparation of implementing ES6 completion semantics.

R=rossberg
BUG=

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

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

8 years agoAdd ishell@ and mvstanton@ to full codegen owners list.
ishell [Mon, 28 Sep 2015 15:04:11 +0000 (08:04 -0700)]
Add ishell@ and mvstanton@ to full codegen owners list.

NOTRY=true

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

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

8 years ago[test] Remove FAIL expectation for intl/collator/default-locale on Android and Mac
caitpotter88 [Mon, 28 Sep 2015 14:51:42 +0000 (07:51 -0700)]
[test] Remove FAIL expectation for intl/collator/default-locale on Android and Mac

BUG=v8:2899
LOG=N
R=

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

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

8 years agoFix DCHECK in ScopeInfo::Print().
ben [Mon, 28 Sep 2015 14:12:35 +0000 (07:12 -0700)]
Fix DCHECK in ScopeInfo::Print().

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

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

8 years agoIntroduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again.
karl [Mon, 28 Sep 2015 14:02:50 +0000 (07:02 -0700)]
Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again.

Without that, it has a few false positives about out-of-bounds array accesses.
Also makes the clang static-analyzer happy.

Original code review from Sven Panne:
https://codereview.chromium.org/790723002/

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

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

8 years ago[test] Remove test262-es6.
machenbach [Mon, 28 Sep 2015 13:59:38 +0000 (06:59 -0700)]
[test] Remove test262-es6.

This was copied into test262.

BUG=v8:4254
NOTRY=true
LOG=n

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

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

8 years agoobjects-inl.h: Remove ACCESSORS_TO_SMI macro
jkummerow [Mon, 28 Sep 2015 13:10:13 +0000 (06:10 -0700)]
objects-inl.h: Remove ACCESSORS_TO_SMI macro

Replacing it with SMI_ACCESSORS.
This change makes accesses to Smi fields in objects more regular (the
accessors now always consume/return an int rather than a Smi*), which
avoids a bunch of manual Smi::FromInt() and Smi::value() conversions,
and is a step on the way towards being able to generate objects-inl.h.

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

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

8 years agoRemoving the Class/ObjectLiteral::LayoutFeedbackSlots().
ishell [Mon, 28 Sep 2015 13:02:43 +0000 (06:02 -0700)]
Removing the Class/ObjectLiteral::LayoutFeedbackSlots().

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

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

8 years ago[heap] Simplify CALL_HEAP_FUNCTION macro dance.
mstarzinger [Mon, 28 Sep 2015 12:55:45 +0000 (05:55 -0700)]
[heap] Simplify CALL_HEAP_FUNCTION macro dance.

R=hpayer@chromium.org

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

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

8 years ago[Docs] Add wiki content to Markdown docs
andybons [Mon, 28 Sep 2015 12:40:25 +0000 (05:40 -0700)]
[Docs] Add wiki content to Markdown docs

NOTE: You will have to land this as I don’t have write perms to this repo.

BUG=none
R=hablich@chromium.org

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

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

8 years agoRefactored interface of FeedbackVectorSpec and friends.
ishell [Mon, 28 Sep 2015 11:41:40 +0000 (04:41 -0700)]
Refactored interface of FeedbackVectorSpec and friends.

This is a second step towards merging FeedbackVectorSlot and FeedbackVectorICSlot.

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

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

8 years ago[es6] Ship rest parameters.
neis [Mon, 28 Sep 2015 11:16:55 +0000 (04:16 -0700)]
[es6] Ship rest parameters.

R=rossberg
BUG=

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

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

8 years ago[heap] Reland Move large object space selection into AllocateRaw.
hpayer [Mon, 28 Sep 2015 09:55:35 +0000 (02:55 -0700)]
[heap] Reland Move large object space selection into AllocateRaw.

BUG=

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

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

8 years ago[bootstrapper] Fix raw pointer use during potential GC.
bmeurer [Mon, 28 Sep 2015 09:42:09 +0000 (02:42 -0700)]
[bootstrapper] Fix raw pointer use during potential GC.

This should fix a weird random crash we keep seeing on Linux nosnap
bot with TurboFan enabled.

BUG=v8:4435,v8:4423
LOG=n
R=mvstanton@chromium.org

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

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

8 years ago[api] Make sure InterceptorInfo is always in a verifyable state.
bmeurer [Mon, 28 Sep 2015 09:02:31 +0000 (02:02 -0700)]
[api] Make sure InterceptorInfo is always in a verifyable state.

This should fix the Threading1 flakiness that we see on the waterfall.

R=jarin@chromium.org

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

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

8 years agoRemove obsolete try/catch from ObjectIsPromise().
ben [Mon, 28 Sep 2015 08:44:31 +0000 (01:44 -0700)]
Remove obsolete try/catch from ObjectIsPromise().

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

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

8 years ago[heap] Adjust number of parallel compaction tasks
mlippautz [Mon, 28 Sep 2015 08:32:40 +0000 (01:32 -0700)]
[heap] Adjust number of parallel compaction tasks

This is a trivial spinoff of the more complicated CL splitting up memory:
  https://codereview.chromium.org/1365743003/

- Parallel compaction is still off.
- We now compute the number of parallel compaction tasks, depending on the
  evacuation candidate list, the number of cores, and some hard limit.

BUG=chromium:524425
LOG=N

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

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

8 years agoUse FeedbackVectorSlotKind instead of Code::Kind for type feedback vector.
ishell [Mon, 28 Sep 2015 08:23:35 +0000 (01:23 -0700)]
Use FeedbackVectorSlotKind instead of Code::Kind for type feedback vector.

This is a first step towards merging FeedbackVectorSlot and FeedbackVectorICSlot.

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

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

8 years ago[presubmit] Fix whitespace/semicolon linter violations.
mstarzinger [Mon, 28 Sep 2015 08:18:29 +0000 (01:18 -0700)]
[presubmit] Fix whitespace/semicolon linter violations.

R=bmeurer@chromium.org

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

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

8 years ago[turbofan] Move node verification methods to the Verifier class.
jarin [Mon, 28 Sep 2015 08:12:41 +0000 (01:12 -0700)]
[turbofan] Move node verification methods to the Verifier class.

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

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

8 years ago[heap] No leakage of mark-compact.h outside of heap.
mstarzinger [Mon, 28 Sep 2015 08:04:11 +0000 (01:04 -0700)]
[heap] No leakage of mark-compact.h outside of heap.

R=hpayer@chromium.org

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

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

8 years ago[test] Skip test on noi18n.
machenbach [Mon, 28 Sep 2015 07:03:44 +0000 (00:03 -0700)]
[test] Skip test on noi18n.

Fails since test262-es6 is tested without i18n support.

BUG=v8:4437
LOG=n
NOTRY=true
TBR=jkummerow@chromium.org

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

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

8 years agoremove byte-accounting assert for crbug.com/536163
Michael Achenbach [Mon, 28 Sep 2015 06:58:49 +0000 (08:58 +0200)]
remove byte-accounting assert for crbug.com/536163

The change https://codereview.chromium.org/1274453002 is causing a breakage
on the Chrome OS builds. It is not clear how to easily revert because there is
a following on dependent change (https://codereview.chromium.org/1351983002) am
I am not too familiar with the revert process.

The simplest revert is to remove the DCHECK.

BUG=chromium:536163
LOG=n
NOTRY=true
R=machenbach@chromium.org, cmumford@chromium.org, hpayer@chromium.org

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

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

8 years ago[turbofan] In GraphReducer::Replace, check uses to not misuse the replacement.
jarin [Mon, 28 Sep 2015 05:37:26 +0000 (22:37 -0700)]
[turbofan] In GraphReducer::Replace, check uses to not misuse the replacement.

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

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

8 years ago[es6] Fix invalid ToString in implementation of ToName.
bmeurer [Mon, 28 Sep 2015 05:33:55 +0000 (22:33 -0700)]
[es6] Fix invalid ToString in implementation of ToName.

R=jarin@chromium.org

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

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

8 years ago[builtins] Fix ToString in Array.prototype.join.
bmeurer [Mon, 28 Sep 2015 05:03:29 +0000 (22:03 -0700)]
[builtins] Fix ToString in Array.prototype.join.

The internal ConvertToString helper was using the wrong ToPrimitive,
actually the old ES5 like DefaultString, and it also prematurely
optimized for no real benefit.

BUG=v8:4307
LOG=n

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

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

8 years ago[crankshaft] Add support for %_ToString.
bmeurer [Mon, 28 Sep 2015 05:01:10 +0000 (22:01 -0700)]
[crankshaft] Add support for %_ToString.

Also support %_ToString in Crankshaft utilizing the ToStringStub, which
is also used in TurboFan and fullcodegen. This is necessary to repair a
regression on Octane that was introduced when switching from the hand
crafted NonStringToString/ToString magic to %_ToString (which properly
supports @@toPrimitive).

BUG=chromium:535953,v8:4307
LOG=n

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

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

8 years agoX87: Full code shouldn't embed the type feedback vector.
chunyang.dai [Mon, 28 Sep 2015 03:09:00 +0000 (20:09 -0700)]
X87: Full code shouldn't embed the type feedback vector.

port c90c60ba2689fb524a1526503c9c87f534cf58fb (r30940)

original commit message:

    Make sure to always reference it indirectly. This allows us to make the vector
    native-context dependent should we wish.

BUG=

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

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

8 years agoUpdate V8 DEPS.
v8-autoroll [Sun, 27 Sep 2015 03:25:02 +0000 (20:25 -0700)]
Update V8 DEPS.

Rolling v8/buildtools to 8d89c1b15f80323b54b3305b2be7b26686fd5611

TBR=machenbach@chromium.org,vogelheim@chromium.org,hablich@chromium.org

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

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

8 years ago[test] Skip test on noi18n.
machenbach [Sat, 26 Sep 2015 12:07:43 +0000 (05:07 -0700)]
[test] Skip test on noi18n.

Fails since test262-es6 is tested without i18n support.

BUG=v8:4437
LOG=n
NOTRY=true
TBR=jkummerow@chromium.org

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

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

8 years agoUpdate V8 DEPS.
v8-autoroll [Sat, 26 Sep 2015 03:24:58 +0000 (20:24 -0700)]
Update V8 DEPS.

Rolling v8/third_party/icu to 423fc7e1107fb08ccf007c4aeb76dcab8b2747c1

Rolling v8/tools/clang to 290301c180118e27755bfced176ff61bd0acb1b8

TBR=machenbach@chromium.org,vogelheim@chromium.org,hablich@chromium.org

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

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

8 years agoRevert of JSObject::GetEnumProperty cleanup (patchset #2 id:20001 of https://coderevi...
vogelheim [Fri, 25 Sep 2015 17:22:05 +0000 (10:22 -0700)]
Revert of JSObject::GetEnumProperty cleanup (patchset #2 id:20001 of https://codereview.chromium.org/1363293002/ )

Reason for revert:
Reverting, because of broken GC stress bots.

@cbruni: Sorry for the revert. I'm not entirely sure it's actually your CL; but policy is to revert speculatively if we can't determine an exact cause.

Original issue's description:
> JSObject::GetEnumProperty cleanup
>
> BUG=
>
> Committed: https://crrev.com/a00d47c802f93cf9835eafce4c9da2dd10b44f6a
> Cr-Commit-Position: refs/heads/master@{#30946}

TBR=jkummerow@chromium.org,cbruni@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

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

8 years ago[tools] Add capability of generating log2-based histograms to eval_gc_nvp.py
mlippautz [Fri, 25 Sep 2015 16:14:03 +0000 (09:14 -0700)]
[tools] Add capability of generating log2-based histograms to eval_gc_nvp.py

BUG=

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

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

8 years agoRevert of [heap] Move large object space selection into AllocateRaw. (patchset #2...
machenbach [Fri, 25 Sep 2015 16:11:11 +0000 (09:11 -0700)]
Revert of [heap] Move large object space selection into AllocateRaw. (patchset #2 id:20001 of https://codereview.chromium.org/1373523002/ )

Reason for revert:
Breaks mac asan:
http://build.chromium.org/p/client.v8/builders/V8%20Mac64%20ASAN/builds/2895

According to auto bisect

Original issue's description:
> [heap] Move large object space selection into AllocateRaw.
>
> BUG=
>
> Committed: https://crrev.com/e4f7ebb000432cc2011ecaaa71a69e2e60f416f0
> Cr-Commit-Position: refs/heads/master@{#30938}

TBR=mlippautz@chromium.org,hpayer@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

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

8 years agoRevert of "[heap] Add more tasks for parallel compaction" (patchset #4 id:100001...
mlippautz [Fri, 25 Sep 2015 15:40:27 +0000 (08:40 -0700)]
Revert of "[heap] Add more tasks for parallel compaction" (patchset #4 id:100001 of https://codereview.chromium.org/1365743003/ )

Reason for revert:
failing again: https://chromegw.corp.google.com/i/client.v8/builders/V8%20Mac/builds/4505/steps/Mozilla%20%28flakes%29/logs/regress-416628

Original issue's description:
> Reland of "[heap] Add more tasks for parallel compaction"
>
> - We now compute the number of parallel compaction tasks, depending on the
>   evacuation candidate list, the number of cores, and some hard limit.
> - Free memory is moved over to compaction tasks (up to some limit)
> - Moving over memory is done by dividing the free list of a given space up among
>   other free lists. Since this is potentially slow we limit the maximum amount
>   of moved memory.
>
> This reverts commit bfccd5187ceb21c99feea4538e08ca7aef48b65b.
>
> BUG=chromium:524425
> LOG=N
>
> Committed: https://crrev.com/7e283d746a194ceaaca114e2ba17504653d6a109
> Cr-Commit-Position: refs/heads/master@{#30945}

TBR=hpayer@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=chromium:524425

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

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

8 years agoJSObject::GetEnumProperty cleanup
cbruni [Fri, 25 Sep 2015 15:27:32 +0000 (08:27 -0700)]
JSObject::GetEnumProperty cleanup

BUG=

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

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

8 years agoReland of "[heap] Add more tasks for parallel compaction"
mlippautz [Fri, 25 Sep 2015 15:05:07 +0000 (08:05 -0700)]
Reland of "[heap] Add more tasks for parallel compaction"

- We now compute the number of parallel compaction tasks, depending on the
  evacuation candidate list, the number of cores, and some hard limit.
- Free memory is moved over to compaction tasks (up to some limit)
- Moving over memory is done by dividing the free list of a given space up among
  other free lists. Since this is potentially slow we limit the maximum amount
  of moved memory.

This reverts commit bfccd5187ceb21c99feea4538e08ca7aef48b65b.

BUG=chromium:524425
LOG=N

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

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

8 years agoPerform scavenge in idle tasks.
ulan [Fri, 25 Sep 2015 14:49:07 +0000 (07:49 -0700)]
Perform scavenge in idle tasks.

BUG=chromium:490559
LOG=NO

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

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

8 years ago[swarming] Add isolate configs for d8 on linux.
machenbach [Fri, 25 Sep 2015 14:36:58 +0000 (07:36 -0700)]
[swarming] Add isolate configs for d8 on linux.

BUG=chromium:535160
LOG=n

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

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

8 years agoFix use of deprecated API.
vogelheim [Fri, 25 Sep 2015 14:35:20 +0000 (07:35 -0700)]
Fix use of deprecated API.

R=jochen@chromium.org
BUG=

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

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

8 years agoRemove unused imports from tools/js2c.py
ben [Fri, 25 Sep 2015 13:57:31 +0000 (06:57 -0700)]
Remove unused imports from tools/js2c.py

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

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