platform/upstream/v8.git
10 years agoUse std:: on symbols declared in C++-style C headers.
bmeurer@chromium.org [Tue, 14 Jan 2014 09:57:05 +0000 (09:57 +0000)]
Use std:: on symbols declared in C++-style C headers.

Some libraries (e.g. Dinkumware) perform strict checks on whether
the symbols defined in classic C library headers (e.g. <stdio.h>),
or in C++-style C library headers (e.g. <cmath>) are used correctly
(respectively, in the global namespace, or in namespace std).

BUG=
R=danno@chromium.org

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

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

10 years agoVarious API-related simplifications.
svenpanne@chromium.org [Tue, 14 Jan 2014 09:37:45 +0000 (09:37 +0000)]
Various API-related simplifications.

   * Simplified default fatal error handler.

   * Simplified Context::Exit and friends.

   * Inline API_ENTRY_CHECK.

R=dcarney@chromium.org

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

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

10 years agoPrepare push to trunk. Now working on version 3.24.16.
machenbach@chromium.org [Tue, 14 Jan 2014 08:13:06 +0000 (08:13 +0000)]
Prepare push to trunk.  Now working on version 3.24.16.

R=jkummerow@chromium.org
TBR=jkummerow@chromium.org

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

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

10 years ago[Sheriff] Disable allocation site pretenuring due to a failing nosnap test.
machenbach@chromium.org [Tue, 14 Jan 2014 07:59:09 +0000 (07:59 +0000)]
[Sheriff] Disable allocation site pretenuring due to a failing nosnap test.

BUG=
TBR=jkummerow@chromium.org

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

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

10 years agoEnable allocation site pretenuring.
hpayer@chromium.org [Mon, 13 Jan 2014 17:11:36 +0000 (17:11 +0000)]
Enable allocation site pretenuring.

Disable elements-kind.js unit test temporarily on gc stress builders.

BUG=
R=mvstanton@chromium.org

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

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

10 years agoHandlify AllocationSite AddDependentCompilationInfo.
hpayer@chromium.org [Mon, 13 Jan 2014 14:54:33 +0000 (14:54 +0000)]
Handlify AllocationSite AddDependentCompilationInfo.

BUG=
R=mvstanton@chromium.org

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

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

10 years agoDemystified floating point ABI function names.
svenpanne@chromium.org [Mon, 13 Jan 2014 13:25:38 +0000 (13:25 +0000)]
Demystified floating point ABI function names.

This unifies the names used for floating point ABI abstraction across
ARM and MIPS and makes them more comprehensible. Note that in the
underlying implementation, ARM doesn't care about the argument/result
distinction, while MIPS does, but we want to abstract from that, too.

Nuked an unused related function on the way.

R=ulan@chromium.org

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

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

10 years agoInline AllocationMemento::FindForHeapObject() into the two call sites.
bmeurer@chromium.org [Mon, 13 Jan 2014 13:11:46 +0000 (13:11 +0000)]
Inline AllocationMemento::FindForHeapObject() into the two call sites.

R=mvstanton@chromium.org

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

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

10 years agoUse unsigned integer arithmetic in Zone::NewExpand.
dslomov@chromium.org [Mon, 13 Jan 2014 13:00:09 +0000 (13:00 +0000)]
Use unsigned integer arithmetic in Zone::NewExpand.

BUG=328202
R=jkummerow@chromium.org
LOG=N

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

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

10 years agoIntroduce an API mirroring the gc extension
jochen@chromium.org [Mon, 13 Jan 2014 12:03:31 +0000 (12:03 +0000)]
Introduce an API mirroring the gc extension

BUG=none
R=mstarzinger@chromium.org, svenpanne@chromium.org
LOG=y

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

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

10 years agoFix r18556; tests were missing handlescopes.
marja@chromium.org [Mon, 13 Jan 2014 11:15:06 +0000 (11:15 +0000)]
Fix r18556; tests were missing handlescopes.

BUG=
R=ulan@chromium.org

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

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

10 years agoIntroduce kGCCallbackForced flag.
vegorov@chromium.org [Mon, 13 Jan 2014 10:57:49 +0000 (10:57 +0000)]
Introduce kGCCallbackForced flag.

This flag will be passed to GC prologue/epilogue callbacks if GC was forced through GC extension.

BUG=
R=dcarney@chromium.org, mstarzinger@chromium.org

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

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

10 years agoRemove ScriptData::PreCompile which takes const char*.
marja@chromium.org [Mon, 13 Jan 2014 10:51:40 +0000 (10:51 +0000)]
Remove ScriptData::PreCompile which takes const char*.

The version taking a Handle should be used instead.

It's not used by Chromium and complicates the ongoing lexer work.

R=svenpanne@chromium.org
BUG=

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

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

10 years agoMore efficient use of space in AllocationSite.
mvstanton@chromium.org [Mon, 13 Jan 2014 10:28:01 +0000 (10:28 +0000)]
More efficient use of space in AllocationSite.

We can eliminate one word from the object by sharing the pretenuring decision and the found memento count.

R=bmeurer@chromium.org, hpayer@chromium.org

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

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

10 years agoVarious ApiCheck-related cleanups.
svenpanne@chromium.org [Mon, 13 Jan 2014 09:42:23 +0000 (09:42 +0000)]
Various ApiCheck-related cleanups.

R=mstarzinger@chromium.org

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

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

10 years ago"dead" and "osr" block flags added to trace output for unreachable and osr entry...
ishell@chromium.org [Mon, 13 Jan 2014 08:45:26 +0000 (08:45 +0000)]
"dead" and "osr" block flags added to trace output for unreachable and osr entry blocks respectively.

R=verwaest@chromium.org

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

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

10 years ago[Sheriff] Revert "Turn on allocation site pretenuring."
machenbach@chromium.org [Mon, 13 Jan 2014 08:15:56 +0000 (08:15 +0000)]
[Sheriff] Revert "Turn on allocation site pretenuring."

This reverts commit r18547 for breaking the GC stress builders.

BUG=
TBR=hpayer@chromium.org

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

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

10 years agoFix of Hydrogen environment building for function "apply" calls.
jarin@chromium.org [Sat, 11 Jan 2014 13:59:04 +0000 (13:59 +0000)]
Fix of Hydrogen environment building for function "apply" calls.

BUG=
R=jkummerow@chromium.org

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

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

10 years agoTurn on allocation site pretenuring.
hpayer@chromium.org [Fri, 10 Jan 2014 20:31:03 +0000 (20:31 +0000)]
Turn on allocation site pretenuring.

BUG=
R=mvstanton@chromium.org

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

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

10 years ago[Sheriff] Revert "Turn on allocation site pretenuring."
rossberg@chromium.org [Fri, 10 Jan 2014 15:35:19 +0000 (15:35 +0000)]
[Sheriff] Revert "Turn on allocation site pretenuring."

This reverts commit d57b17889a300d0978f8ed104d1274c9838904a6.

TBR=mvstanton@chromium.org
BUG=

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

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

10 years agoRevert "Implement zone-allocated types"
rossberg@chromium.org [Fri, 10 Jan 2014 15:33:37 +0000 (15:33 +0000)]
Revert "Implement zone-allocated types"

This reverts commit 4308974b16d1ee67d9f64d797c5ea64ffaab51df.

TBR=machenbach@chromium.org
BUG=

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

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

10 years agoRevert "Add debug output to presubmit script for investigating tree check behavior...
machenbach@chromium.org [Fri, 10 Jan 2014 15:17:49 +0000 (15:17 +0000)]
Revert "Add debug output to presubmit script for investigating tree check behavior." and "Add more temporary debugging output to PRESUBMIT.py".

This reverts commits r18538 and r18528, since the investigated problem was found.

BUG=
TBR=jkummerow@chromium.org

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

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

10 years agoImplement zone-allocated types
rossberg@chromium.org [Fri, 10 Jan 2014 14:43:48 +0000 (14:43 +0000)]
Implement zone-allocated types

More template magic FTW.

R=titzer@chromium.org
BUG=

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

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

10 years agoTurn on allocation site pretenuring.
mvstanton@chromium.org [Fri, 10 Jan 2014 14:35:58 +0000 (14:35 +0000)]
Turn on allocation site pretenuring.

BUG=
R=mvstanton@chromium.org

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

Patch from Hannes Payer <hpayer@chromium.org>.

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

10 years agoPrepare push to trunk. Now working on version 3.24.15.
machenbach@chromium.org [Fri, 10 Jan 2014 14:15:34 +0000 (14:15 +0000)]
Prepare push to trunk.  Now working on version 3.24.15.

R=rossberg@chromium.org
TBR=rossberg@chromium.org

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

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

10 years agoAdd more temporary debugging output to PRESUBMIT.py
jkummerow@chromium.org [Fri, 10 Jan 2014 13:48:43 +0000 (13:48 +0000)]
Add more temporary debugging output to PRESUBMIT.py

R=machenbach@chromium.org

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

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

10 years agoCheck elimination enabled.
ishell@chromium.org [Fri, 10 Jan 2014 13:28:26 +0000 (13:28 +0000)]
Check elimination enabled.

R=titzer@chromium.org

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

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

10 years agoWork around VS template problem
rossberg@chromium.org [Fri, 10 Jan 2014 12:55:02 +0000 (12:55 +0000)]
Work around VS template problem

R=machenbach@chromium.org
BUG=

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

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

10 years agoRetry "Templatise type representation" after making clang happy
rossberg@chromium.org [Fri, 10 Jan 2014 12:19:01 +0000 (12:19 +0000)]
Retry "Templatise type representation" after making clang happy

The only thing different now is line types.h:208/236, which had a static_cast<Type*> before.

R=mstarzinger@chromium.org
BUG=

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

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

10 years agoAllocation site pretenuring.
hpayer@chromium.org [Fri, 10 Jan 2014 12:11:54 +0000 (12:11 +0000)]
Allocation site pretenuring.

Pretenuring decisions are made based on allocation site lifetime statistics.

BUG=
R=mstarzinger@chromium.org, mvstanton@chromium.org

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

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

10 years agoRevert "Temporarily disable performance.now() in the d8 shell."
bmeurer@chromium.org [Fri, 10 Jan 2014 12:07:29 +0000 (12:07 +0000)]
Revert "Temporarily disable performance.now() in the d8 shell."

This reverts commit r18529.

R=hpayer@chromium.org

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

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

10 years agoTemporarily disable performance.now() in the d8 shell.
bmeurer@chromium.org [Fri, 10 Jan 2014 11:17:57 +0000 (11:17 +0000)]
Temporarily disable performance.now() in the d8 shell.

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

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

10 years agoAdd debug output to presubmit script for investigating tree check behavior.
machenbach@chromium.org [Fri, 10 Jan 2014 10:50:59 +0000 (10:50 +0000)]
Add debug output to presubmit script for investigating tree check behavior.

BUG=
R=ulan@chromium.org

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

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

10 years agoFixed alignment issues of ProfilerEventsProcessor.
svenpanne@chromium.org [Fri, 10 Jan 2014 10:39:47 +0000 (10:39 +0000)]
Fixed alignment issues of ProfilerEventsProcessor.

R=bmeurer@chromium.org

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

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

10 years ago[Sheriff] Make flaky cpu profiler test.
machenbach@chromium.org [Fri, 10 Jan 2014 09:02:24 +0000 (09:02 +0000)]
[Sheriff] Make flaky cpu profiler test.

BUG=v8:2999
TBR=yurys@chromium.org
LOG=n

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

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

10 years ago[Sheriff] Revert "Templatise type representation" and "Fix Mac warnings".
machenbach@chromium.org [Thu, 9 Jan 2014 19:52:15 +0000 (19:52 +0000)]
[Sheriff] Revert "Templatise type representation" and "Fix Mac warnings".

This reverts commit r18521 and r18522 for breaking mac and win builders.

BUG=
TBR=rossberg@chromium.org

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

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

10 years agoMIPS: Implement sqrt in inline assembly.
plind44@gmail.com [Thu, 9 Jan 2014 19:00:06 +0000 (19:00 +0000)]
MIPS: Implement sqrt in inline assembly.

Port r18506 (c7b2885)

Original commit message:
Call VSQRT directly to avoid the tiniest (1ulp) precision
error that occurs in the system-supplied sqrt on QNX/ARM.

All precision tests in SunSpider are now passing on this platform.

BUG=
R=plind44@gmail.com

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

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

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

10 years agoFix Mac warnings
rossberg@chromium.org [Thu, 9 Jan 2014 17:37:48 +0000 (17:37 +0000)]
Fix Mac warnings

R=mstarzinger@chromium.org
BUG=

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

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

10 years agoTemplatise type representation
rossberg@chromium.org [Thu, 9 Jan 2014 17:12:48 +0000 (17:12 +0000)]
Templatise type representation

This is to support both heap- and zone-allocated types in the future (the latter not yet implemented).

Also, handlify the type API some more.

R=titzer@chromium.org
BUG=

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

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

10 years agoES6: Add Object.getOwnPropertySymbols
rossberg@chromium.org [Thu, 9 Jan 2014 15:57:30 +0000 (15:57 +0000)]
ES6: Add Object.getOwnPropertySymbols

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.getownpropertysymbols

This allows you to get the symbols used as property keys for an object.

  var object = {};
  var sym = Symbol();
  object[sym] = 42;
  assert(Object.getOwnPropertySymbols(object)[0] === sym);

This is only available with --harmony-symbols

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

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

Patch from Erik Arvidsson <arv@chromium.org>.

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

10 years agoSkip back edge creation for "do ... while(false)" loops
jkummerow@chromium.org [Thu, 9 Jan 2014 15:20:25 +0000 (15:20 +0000)]
Skip back edge creation for "do ... while(false)" loops

Drive-by fix: Fix disassembling "prefetch" instruction on ia32

R=titzer@chromium.org

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

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

10 years agoArray constructor can be simplified by loading context from JSFunction.
mvstanton@chromium.org [Thu, 9 Jan 2014 15:07:23 +0000 (15:07 +0000)]
Array constructor can be simplified by loading context from JSFunction.

BUG=
R=verwaest@chromium.org

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

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

10 years agoFix d8 DebugMessageDetails and DebugCommandToJSONRequest
jochen@chromium.org [Thu, 9 Jan 2014 13:57:09 +0000 (13:57 +0000)]
Fix d8 DebugMessageDetails and DebugCommandToJSONRequest

They both returned zapped handles. Use an EscapableHandleScope and
properly return handles

BUG=none
R=jkummerow@chromium.org
LOG=n

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

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

10 years agoBe sure to also register the BinaryOpWithAllocationSiteStub.
bmeurer@chromium.org [Thu, 9 Jan 2014 13:22:18 +0000 (13:22 +0000)]
Be sure to also register the BinaryOpWithAllocationSiteStub.

R=hpayer@chromium.org

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

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

10 years agoPromises: some adaptations to spec
rossberg@chromium.org [Thu, 9 Jan 2014 13:00:56 +0000 (13:00 +0000)]
Promises: some adaptations to spec

- Rename Promise.{resolved,rejected,deferred} to Promise.{resolve,reject,defer}
- Rename Promise.one to Promise.race
- Make all failures asynchronous, EXCEPT type errors for resolver
- Disallow non-construct call to Promise constructor
- Don't make combinators go through public this.defer

Also, don't bother using IsCallable.

R=dslomov@chromium.org, yhirano@chromium.org
BUG=

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

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

10 years agoFix invalid debug code assertion on x64.
bmeurer@chromium.org [Thu, 9 Jan 2014 12:41:05 +0000 (12:41 +0000)]
Fix invalid debug code assertion on x64.

R=hpayer@chromium.org

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

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

10 years agoPrepare push to trunk. Now working on version 3.24.14.
machenbach@chromium.org [Thu, 9 Jan 2014 10:39:27 +0000 (10:39 +0000)]
Prepare push to trunk.  Now working on version 3.24.14.

R=rossberg@chromium.org
TBR=rossberg@chromium.org

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

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

10 years agoAdd Isolate parameter to HandleScope::NumberOfHandles.
svenpanne@chromium.org [Thu, 9 Jan 2014 10:37:15 +0000 (10:37 +0000)]
Add Isolate parameter to HandleScope::NumberOfHandles.

LOG=y
BUG=324225
R=mstarzinger@chromium.org

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

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

10 years agoFunctionLiteral has work to do in the typing phase.
mvstanton@chromium.org [Thu, 9 Jan 2014 09:00:19 +0000 (09:00 +0000)]
FunctionLiteral has work to do in the typing phase.

In crankshaft, we searched un-optimized code for a SharedFunctionInfo
that matches the FunctionLiteral we are processing. Ideally, this
work should be done in the typing phase.

R=jkummerow@chromium.org

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

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

10 years agoConvert some ifdefs to use their V8_OS_* macros equivalents.
bmeurer@chromium.org [Thu, 9 Jan 2014 07:57:11 +0000 (07:57 +0000)]
Convert some ifdefs to use their V8_OS_* macros equivalents.

R=bmeurer@chromium.org

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

Patch from Thiago Farina <tfarina@chromium.org>.

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

10 years agoARM: Implement sqrt in inline assembly.
bmeurer@chromium.org [Thu, 9 Jan 2014 07:47:58 +0000 (07:47 +0000)]
ARM: Implement sqrt in inline assembly.

Call VSQRT directly to avoid the tiniest (1ulp) precision
error that occurs in the system-supplied sqrt on QNX/ARM.

All precision tests in SunSpider are now passing on this platform.

BUG=
R=bmeurer@chromium.org

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

Patch from Cosmin Truta <ctruta@gmail.com>.

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

10 years agoMinor Object.observe optimizations
rafaelw@chromium.org [Wed, 8 Jan 2014 20:25:08 +0000 (20:25 +0000)]
Minor Object.observe optimizations

This patch includes the follow two minor optimizations:

1) When Object.unobserve-ing, instead of deleting from changeObservers, set the index position to null, and null-check when iterating elsewhere
2) Isolate creation of null-proto objects inside a utility function

These former (deleting) was clearly showing up in d8 --prof traces and the later was preventing optimization of containing functions because of non-standard literal. Combined, on MDV construction/teardown benchmark, saves about 10%.

Note that this patch also cleans up retrieving objectInfo inside a utility function.

R=rossberg@chromium.org, rossberg
BUG=

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

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

10 years agoRoll gyp 1830:1831
jochen@chromium.org [Wed, 8 Jan 2014 15:54:46 +0000 (15:54 +0000)]
Roll gyp 1830:1831

1831 - Don't try to match mixed source/dir gyp order on MSVS prior to 2010

BUG=none
LOG=n
R=machenbach@chromium.org

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

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

10 years agoRemoved a few internal uses of Isolate::Current.
svenpanne@chromium.org [Wed, 8 Jan 2014 14:44:30 +0000 (14:44 +0000)]
Removed a few internal uses of Isolate::Current.

R=ulan@chromium.org

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

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

10 years agoAdd 'LOG=N' line to merge-to-branch.sh to avoid presubmit errors when merging to...
ulan@chromium.org [Wed, 8 Jan 2014 14:04:14 +0000 (14:04 +0000)]
Add 'LOG=N' line to merge-to-branch.sh to avoid presubmit errors when merging to branch.

R=machenbach@chromium.org

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

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

10 years agoRemoved v8::AssertNoGCScope.
svenpanne@chromium.org [Wed, 8 Jan 2014 12:22:42 +0000 (12:22 +0000)]
Removed v8::AssertNoGCScope.

Everything was private, so no object could ever be constructed, which
implies that nobody uses it. Furthermore, it contained a TODO and was
overly complicated, an #ifdef-less simple pimpl idiom would have been
enough.

LOG=y
R=bmeurer@chromium.org

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

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

10 years agoCleanup SetUpMath to use InstallConstants helper.
mstarzinger@chromium.org [Wed, 8 Jan 2014 11:55:53 +0000 (11:55 +0000)]
Cleanup SetUpMath to use InstallConstants helper.

R=rossberg@chromium.org

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

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

10 years agoRemove redundant NULL check.
bmeurer@chromium.org [Wed, 8 Jan 2014 11:40:56 +0000 (11:40 +0000)]
Remove redundant NULL check.

R=mvstanton@chromium.org

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

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

10 years agoRoll gyp 1806:1830
jochen@chromium.org [Wed, 8 Jan 2014 10:58:25 +0000 (10:58 +0000)]
Roll gyp 1806:1830

1830 fixes Makefile generation for v8

BUG=none
LOG=n
R=machenbach@chromium.org

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

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

10 years agoPrepare push to trunk. Now working on version 3.24.13.
ulan@chromium.org [Wed, 8 Jan 2014 10:55:04 +0000 (10:55 +0000)]
Prepare push to trunk.  Now working on version 3.24.13.

R=machenbach@chromium.org
TBR=machenbach@chromium.org

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

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

10 years agoCorrectly handle instances without elements in polymorphic keyed load/store.
ulan@chromium.org [Wed, 8 Jan 2014 09:57:28 +0000 (09:57 +0000)]
Correctly handle instances without elements in polymorphic keyed load/store.

BUG=331416
TEST=mjsunit/regress/regress-331416.js
LOG=Y
R=verwaest@chromium.org

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

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

10 years agoFix selection of popular pages in store buffer.
ulan@chromium.org [Wed, 8 Jan 2014 09:49:37 +0000 (09:49 +0000)]
Fix selection of popular pages in store buffer.

BUG=331444
TEST=mjsunit/regress/regress-331444.js
LOG=Y
R=hpayer@chromium.org

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

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

10 years agoFix d8's Shell::ReadBuffer after r18227
jkummerow@chromium.org [Wed, 8 Jan 2014 09:48:38 +0000 (09:48 +0000)]
Fix d8's Shell::ReadBuffer after r18227

BUG=v8:3085
LOG=N
R=jochen@chromium.org

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

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

10 years agoAdapt Webkit test expectations to r18480.
mstarzinger@chromium.org [Wed, 8 Jan 2014 09:30:49 +0000 (09:30 +0000)]
Adapt Webkit test expectations to r18480.

R=jkummerow@chromium.org
LOG=N
BUG=v8:3082
TEST=webkit/fast/js/Object-getOwnPropertyNames

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

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

10 years agoUpgrade Number constructor to ES6.
mstarzinger@chromium.org [Wed, 8 Jan 2014 09:09:49 +0000 (09:09 +0000)]
Upgrade Number constructor to ES6.

Add missing constants, predicates and functions to the Number
constructor to have it offer what ES6 now specifies.

That is, extend it with:

 * isInteger(), isSafeInteger()
 * parseInt(), parseFloat()
 * EPSILON, MIN_SAFE_INTEGER, MAX_SAFE_INTEGER

LOG=N
R=mstarzinger@chromium.org
BUG=v8:3082

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

Patch from Sigbjorn Finne <sigbjornf@opera.com>.

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

10 years agoRefactor loading a pointer into a register instruction for X64
haitao.feng@intel.com [Wed, 8 Jan 2014 07:02:02 +0000 (07:02 +0000)]
Refactor loading a pointer into a register instruction for X64

R=verwaest@chromium.org

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

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

10 years agoPrepare removal of ObjectTemplate::New without Isolate parameter.
svenpanne@chromium.org [Wed, 8 Jan 2014 06:53:31 +0000 (06:53 +0000)]
Prepare removal of ObjectTemplate::New without Isolate parameter.

LOG=y
BUG=324225
R=ulan@chromium.org

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

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

10 years agoUse PushReturnAddressFrom and PopReturnAddressTo to manipulate return address for X64
haitao.feng@intel.com [Wed, 8 Jan 2014 04:31:31 +0000 (04:31 +0000)]
Use PushReturnAddressFrom and PopReturnAddressTo to manipulate return address for X64

R=dcarney@chromium.org

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

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

10 years agoPolymorphic named calls optimized for the case of repetitive call targets.
ishell@chromium.org [Tue, 7 Jan 2014 16:59:42 +0000 (16:59 +0000)]
Polymorphic named calls optimized for the case of repetitive call targets.

R=verwaest@chromium.org

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

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

10 years agoMIPS: Reland v8:18458 "Load the global proxy from the context of the target function."
plind44@gmail.com [Tue, 7 Jan 2014 16:16:20 +0000 (16:16 +0000)]
MIPS: Reland v8:18458 "Load the global proxy from the context of the target function."

Port r18462 (7024b6d)

BUG=
R=plind44@gmail.com

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

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

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

10 years agoRemove flag track-allocation-sites.
mvstanton@chromium.org [Tue, 7 Jan 2014 15:58:25 +0000 (15:58 +0000)]
Remove flag track-allocation-sites.

The flag has been on in the build for ~9 months, and we aren't likely to turn it off. The only customer of the flag is a set of tests that want to verify transitioning behavior in isolation. This CL removes the flag and updates those tests to get what they want without the flag.

R=verwaest@chromium.org

Committed: https://code.google.com/p/v8/source/detail?r=18385

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

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

10 years agoFix some out-of-line constant pool garbage collection bugs.
rmcilroy@chromium.org [Tue, 7 Jan 2014 15:53:54 +0000 (15:53 +0000)]
Fix some out-of-line constant pool garbage collection bugs.

This CL fixes some bugs in the out of line constant pool implementation when
constant pools are GCed.  Namely:
  - Push/Pop pp register in exit frames and VisitPointer on it to ensure it is
    updated if the ConstantPoolArray is moved by GC.
  - Mark pp as a SafePoint Register for optimized functions.
  - Ensure that StandardFrame::IterateExpressions also iterates over the
    constant pool pointer in the stackframe.
  - Fix calculation of last_ptr_offset in ConstantPoolArray body iterator.
  - Make ensure that CONSTANT_POOL_ARRAY_TYPE is a pointer object InstanceType.

R=ulan@chromium.org

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

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

10 years agoAdd better remote control to push-to-trunk auto-roll script.
machenbach@chromium.org [Tue, 7 Jan 2014 15:23:48 +0000 (15:23 +0000)]
Add better remote control to push-to-trunk auto-roll script.

This CL enables controlling the automatic push-to-trunk via a settings file .auto-roll in the home directory or via the v8 status app message.

Pushes can be disabled by setting .auto-roll to {"enable_auto_roll": false} or by adding the phrase "nopush" or "no push" to http://v8-status.appspot.com/.

R=ulan@chromium.org

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

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

10 years agoAdd a bit to HObjectAccess to encode immutable fields.
titzer@chromium.org [Tue, 7 Jan 2014 14:42:51 +0000 (14:42 +0000)]
Add a bit to HObjectAccess to encode immutable fields.

BUG=
R=ishell@chromium.org

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

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

10 years agoFixed Lithium environment generation bug for captured objects (created
jarin@chromium.org [Tue, 7 Jan 2014 14:36:26 +0000 (14:36 +0000)]
Fixed Lithium environment generation bug for captured objects (created
by escape analysis). Added several tests that expose the bug.

Summary:
LCodegen::AddToTranslation assumes that Lithium environments are
generated by depth-first traversal, but LChunkBuilder::CreateEnvironment
was generating them in breadth-first fashion. This fixes the
CreateEnvironment to traverse the captured objects depth-first.

Note:
It might be worth considering representing LEnvironment by a list
with the same order as the serialized translation representation
rather than having two lists with a subtle relationship between
them (and then serialize in a slightly different order again).

R=titzer@chromium.org, mstarzinger@chromium.org
LOG=N
BUG=

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

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

10 years agoFix for issue 3071: A zombie AlloctionSite must clear pointer fields.
mvstanton@chromium.org [Tue, 7 Jan 2014 14:27:31 +0000 (14:27 +0000)]
Fix for issue 3071: A zombie AlloctionSite must clear pointer fields.

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

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

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

10 years agoWe need to know if a load, store or call IC is assumed
mvstanton@chromium.org [Tue, 7 Jan 2014 14:14:34 +0000 (14:14 +0000)]
We need to know if a load, store or call IC is assumed
to be on the global object. Previously, this information
was stored in RelocInfo. A more logical place for this kind
of structural information is ExtraICState. Storing it there
makes it easier for us to gather type feedback from these
sites too.

R=verwaest@chromium.org

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

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

10 years agoPrepare push to trunk. Now working on version 3.24.12.
rossberg@chromium.org [Tue, 7 Jan 2014 14:10:08 +0000 (14:10 +0000)]
Prepare push to trunk.  Now working on version 3.24.12.

R=ulan@chromium.org
TBR=ulan@chromium.org
BUG=

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

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

10 years agoMake -Wshadow happy.
svenpanne@chromium.org [Tue, 7 Jan 2014 13:28:33 +0000 (13:28 +0000)]
Make -Wshadow happy.

LOG=y
BUG=v8:3073
R=bmeurer@chromium.org

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

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

10 years agoReland v8:18458 "Load the global proxy from the context of the target function."
verwaest@chromium.org [Tue, 7 Jan 2014 10:46:39 +0000 (10:46 +0000)]
Reland v8:18458 "Load the global proxy from the context of the target function."

BUG=
R=bmeurer@chromium.org

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

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

10 years agoRevert "Load the global proxy from the context of the target function."
rossberg@chromium.org [Tue, 7 Jan 2014 09:55:25 +0000 (09:55 +0000)]
Revert "Load the global proxy from the context of the target function."

This reverts commit https://code.google.com/p/v8/source/detail?r=18458, since it exhibits a bug that breaks some tests.

TBR=verwaest@chromium.org
BUG=

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

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

10 years agoRemove generated makefiles on linux when running gyp_v8
jochen@chromium.org [Tue, 7 Jan 2014 09:09:24 +0000 (09:09 +0000)]
Remove generated makefiles on linux when running gyp_v8

BUG=331475
R=machenbach@chromium.org
LOG=n

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

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

10 years agoRemove socket.h include from debug.h
bmeurer@chromium.org [Tue, 7 Jan 2014 08:27:53 +0000 (08:27 +0000)]
Remove socket.h include from debug.h

Looks like there is no Socket usage in debug.h, so we don't need to
include it there.

TEST=in static build, ninja -C out/Debug/ d8
R=bmeurer@chromium.org

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

Patch from Thiago Farina <tfarina@chromium.org>.

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

10 years agoLoad the global proxy from the context of the target function.
verwaest@chromium.org [Tue, 7 Jan 2014 08:21:17 +0000 (08:21 +0000)]
Load the global proxy from the context of the target function.

BUG=
R=dcarney@chromium.org

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

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

10 years agoFix building d8 with readline support due to API changes
bmeurer@chromium.org [Tue, 7 Jan 2014 07:53:18 +0000 (07:53 +0000)]
Fix building d8 with readline support due to API changes

After recent API changes, d8 will fail to build when passing
"console=readline". This patch makes d8 work with readline again.

R=bmeurer@chromium.org

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

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

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

10 years agosilence has_changed_character may be used uninitialized warning
bmeurer@chromium.org [Sat, 4 Jan 2014 18:20:50 +0000 (18:20 +0000)]
silence has_changed_character may be used uninitialized warning

Some slightly older versions of gcc aren't clever enough to figure out
that this variable won't be used if the return value from the function
that initializes it is false.  Tested with gcc 4.5.1.

R=yangguo@chromium.org

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

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

10 years agoPrepare push to trunk. Now working on version 3.24.11.
ulan@chromium.org [Fri, 3 Jan 2014 15:50:51 +0000 (15:50 +0000)]
Prepare push to trunk.  Now working on version 3.24.11.

R=verwaest@chromium.org
TBR=verwaest@chromium.org

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

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

10 years agoRevert r18451 "Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak...
ulan@chromium.org [Fri, 3 Jan 2014 14:31:17 +0000 (14:31 +0000)]
Revert r18451 "Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build."" since necessary WebKit changes are rolled in Chromium.

TBR=svenpanne@chromium.org
BUG=

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

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

10 years agoRevert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build."
ulan@chromium.org [Fri, 3 Jan 2014 14:13:21 +0000 (14:13 +0000)]
Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build."
because of broken WebKit bots.

TBR=svenpanne@chromium.org

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

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

10 years agoUnbreak build.
svenpanne@chromium.org [Fri, 3 Jan 2014 12:21:48 +0000 (12:21 +0000)]
Unbreak build.

Test/update/commit race condition... >:-(

TBR=ulan@chromium.org

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

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

10 years agoReland r18383: More API cleanup.
svenpanne@chromium.org [Fri, 3 Jan 2014 11:56:33 +0000 (11:56 +0000)]
Reland r18383: More API cleanup.

* Removed String::Empty, Number::New, Integer::New, Integer::NewFromUnsigned, FunctionTemplate::New and Object::New without Isolate* parameter.

* Removed Integer::New and Integer::NewUnsigned with weird argument order.

Chrome CLs matching this change have been landed.

TBR=dcarney@chromium.org
LOG=y
BUG=324225

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

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

10 years agoAvoid duplication of a hidden & inherited prototype's properties.
jochen@chromium.org [Fri, 3 Jan 2014 11:19:13 +0000 (11:19 +0000)]
Avoid duplication of a hidden & inherited prototype's properties.

In Runtime_GetLocalPropertyNames(), the hidden prototypes of an object
are also consulted when deriving the property name set. However, if
given a function object and its template was inherited from the
template of one of its hidden prototypes, that hidden prototype's
property accessors will be present on the object already. Unwanted
duplicates will therefore appear.

Hence, go through the property names that the hidden prototypes
contribute and remove any already occurring ones.

Assumed to be a rare constellation, so the cost of this extra pass is
considered acceptable.

LOG=N
R=dcarney@chromium.org, jochen@chromium.org, rossberg@chromium.org
BUG=269562

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

Patch from Sigbjorn Finne <sof@opera.com>.

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

10 years agoMIPS: Reland "Allocation site support for monomorphic StringAdds in BinaryOps".
plind44@gmail.com [Thu, 2 Jan 2014 21:38:09 +0000 (21:38 +0000)]
MIPS: Reland "Allocation site support for monomorphic StringAdds in BinaryOps".

Port r18444 (856f92e)

BUG=
R=plind44@gmail.com

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

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

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

10 years agoMIPS: Avoid unnecessary branches in array constructor stubs.
plind44@gmail.com [Thu, 2 Jan 2014 16:53:51 +0000 (16:53 +0000)]
MIPS: Avoid unnecessary branches in array constructor stubs.

Port r18427 (4db045a)

BUG=
R=plind44@gmail.com

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

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

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

10 years agoARM: Optimize truncating division and fix sim
m.m.capewell@googlemail.com [Thu, 2 Jan 2014 16:36:21 +0000 (16:36 +0000)]
ARM: Optimize truncating division and fix sim

Optimize code generated for DivI Lithium instruction when handling division
where the result is int32. Also, fix the ARM simulator to give the correct
answer for kMinInt / -1.

TEST=Division tests added to test-assembler-arm.cc
BUG=
R=ulan@chromium.org

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

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

10 years agoReland "Allocation site support for monomorphic StringAdds in BinaryOps".
bmeurer@chromium.org [Thu, 2 Jan 2014 15:31:27 +0000 (15:31 +0000)]
Reland "Allocation site support for monomorphic StringAdds in BinaryOps".

R=ulan@chromium.org

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

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

10 years agoMIPS: Fix loading of global object in LWrapReceiver.
palfia@homejinni.com [Thu, 2 Jan 2014 15:20:55 +0000 (15:20 +0000)]
MIPS: Fix loading of global object in LWrapReceiver.

Port r18421 (39719ed)

Original commit message:
Since r16993 the cp register is handled by registers allocator,
and we cannot assume that the cp always contains the context.

BUG=318420
LOG=Y
TEST=test/mjsunit/regress/regress-318420.js
R=ulan@chromium.org

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

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

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

10 years agoRevert r18435 "... Roll gyp 1685:1806"
jochen@chromium.org [Thu, 2 Jan 2014 15:13:53 +0000 (15:13 +0000)]
Revert r18435 "... Roll gyp 1685:1806"

TBR=ulan@chromium.org
LOG=n
BUG=none

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

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

10 years agoDon't bail out of the cpplint cache is broken.
jochen@chromium.org [Thu, 2 Jan 2014 15:06:27 +0000 (15:06 +0000)]
Don't bail out of the cpplint cache is broken.

Instead, try to remove it.

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

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

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

10 years agoSet the gyp DEPTH variable as relative path.
jochen@chromium.org [Thu, 2 Jan 2014 14:35:32 +0000 (14:35 +0000)]
Set the gyp DEPTH variable as relative path.

After r18439, it's an absolute variable which confuses gy

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

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

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