platform/upstream/v8.git
10 years agoFix gcmole warning in EnsureSlotContainsAllocationSite().
mvstanton@chromium.org [Wed, 30 Apr 2014 12:33:16 +0000 (12:33 +0000)]
Fix gcmole warning in EnsureSlotContainsAllocationSite().

R=yangguo@chromium.org

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

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

10 years agoKiss goodbye to MaybeObject.
yangguo@chromium.org [Wed, 30 Apr 2014 12:25:18 +0000 (12:25 +0000)]
Kiss goodbye to MaybeObject.

R=hpayer@chromium.org

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

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

10 years agoSimplify feedback vector creation and store in SharedFunctionInfo.
mvstanton@chromium.org [Wed, 30 Apr 2014 10:51:01 +0000 (10:51 +0000)]
Simplify feedback vector creation and store in SharedFunctionInfo.

LOG=N
BUG=v8:3212
R=bmeurer@chromium.org

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

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

10 years agoUnbreak the build after r21083.
svenpanne@chromium.org [Wed, 30 Apr 2014 10:24:03 +0000 (10:24 +0000)]
Unbreak the build after r21083.

TBR=mstarzinger@chromium.org

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

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

10 years agoAdded a Isolate* parameter to Serializer::enabled().
svenpanne@chromium.org [Wed, 30 Apr 2014 09:50:58 +0000 (09:50 +0000)]
Added a Isolate* parameter to Serializer::enabled().

This parameter will soon be used when a few pseudo-classes like
Serializer are turned into real classes. The current CL is already big
enough, untying our Gordian knot called "startup" will continue...

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

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

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

10 years agoIntroduce DropUnderReturnAddress for x64 port.
haitao.feng@intel.com [Wed, 30 Apr 2014 09:23:41 +0000 (09:23 +0000)]
Introduce DropUnderReturnAddress for x64 port.

R=verwaest@chromium.org

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

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

10 years agoHandlification TODOs in scanner and string stream resolved.
ishell@chromium.org [Wed, 30 Apr 2014 09:13:21 +0000 (09:13 +0000)]
Handlification TODOs in scanner and string stream resolved.

R=yangguo@chromium.org

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

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

10 years agoIntroduce PushQuad and PopQuad for x64 port.
haitao.feng@intel.com [Wed, 30 Apr 2014 09:12:18 +0000 (09:12 +0000)]
Introduce PushQuad and PopQuad for x64 port.

R=verwaest@chromium.org

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

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

10 years agoUpdate SafeMove, SafePush, SmiToIndex and SmiToNegativeIndex for x32 port.
haitao.feng@intel.com [Wed, 30 Apr 2014 09:08:21 +0000 (09:08 +0000)]
Update SafeMove, SafePush, SmiToIndex and SmiToNegativeIndex for x32 port.

R=verwaest@chromium.org

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

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

10 years agoA new test needs to exit early on non-internationalization builds.
mvstanton@chromium.org [Wed, 30 Apr 2014 09:04:17 +0000 (09:04 +0000)]
A new test needs to exit early on non-internationalization builds.

R=mstarzinger@chromium.org

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

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

10 years agoFix some more missing ToObject on Array.prototype.
mstarzinger@chromium.org [Wed, 30 Apr 2014 08:52:00 +0000 (08:52 +0000)]
Fix some more missing ToObject on Array.prototype.

R=mvstanton@chromium.org
BUG=

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

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

10 years agoTODO in Dictionary resolved.
ishell@chromium.org [Wed, 30 Apr 2014 08:40:33 +0000 (08:40 +0000)]
TODO in Dictionary resolved.

R=yangguo@chromium.org

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

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

10 years agoUpdate ElementsTransitionGenerator::GenerateSmiToDouble to support x32 port.
haitao.feng@intel.com [Wed, 30 Apr 2014 08:38:20 +0000 (08:38 +0000)]
Update ElementsTransitionGenerator::GenerateSmiToDouble to support x32 port.

R=verwaest@chromium.org

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

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

10 years agoES6: Add support for Array.prototype.fill()
dslomov@chromium.org [Wed, 30 Apr 2014 08:28:29 +0000 (08:28 +0000)]
ES6: Add support for Array.prototype.fill()

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

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

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

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

10 years agoRemove BootUpMemoryUse test.
hpayer@chromium.org [Wed, 30 Apr 2014 08:19:38 +0000 (08:19 +0000)]
Remove BootUpMemoryUse test.

BUG=
R=bmeurer@chromium.org

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

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

10 years agoRemove duplicate ToObject implementaion from i18n.
mstarzinger@chromium.org [Wed, 30 Apr 2014 08:16:16 +0000 (08:16 +0000)]
Remove duplicate ToObject implementaion from i18n.

R=mvstanton@chromium.org
BUG=

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

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

10 years agoBugfix: internationalization routines fail on monkeypatching.
mvstanton@chromium.org [Wed, 30 Apr 2014 07:36:12 +0000 (07:36 +0000)]
Bugfix: internationalization routines fail on monkeypatching.

Calls to Object.defineProperty() and Object.apply() are not safe.

R=mstarzinger@chromium.org

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

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

10 years agoEnable concurrent sweeping.
hpayer@chromium.org [Wed, 30 Apr 2014 07:07:39 +0000 (07:07 +0000)]
Enable concurrent sweeping.

BUG=
R=jarin@chromium.org

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

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

10 years agoHide some more heap allocators.
yangguo@chromium.org [Wed, 30 Apr 2014 06:26:50 +0000 (06:26 +0000)]
Hide some more heap allocators.

R=mstarzinger@chromium.org

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

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

10 years agoFix compile.
hpayer@chromium.org [Tue, 29 Apr 2014 19:37:56 +0000 (19:37 +0000)]
Fix compile.

BUG=

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

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

10 years agoWait for sweepter threads in idle notifcation with large hints.
hpayer@chromium.org [Tue, 29 Apr 2014 19:01:41 +0000 (19:01 +0000)]
Wait for sweepter threads in idle notifcation with large hints.

BUG=
R=ulan@chromium.org

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

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

10 years agoPass in the prototype to CreateApiFunction rather than setting it on the result.
verwaest@chromium.org [Tue, 29 Apr 2014 17:48:07 +0000 (17:48 +0000)]
Pass in the prototype to CreateApiFunction rather than setting it on the result.

BUG=
R=ishell@chromium.org

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

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

10 years agoAdapt more test expectations
rossberg@chromium.org [Tue, 29 Apr 2014 15:52:50 +0000 (15:52 +0000)]
Adapt more test expectations

TBR=danno@chromium.org
BUG=

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

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

10 years agodisable Object.observe
danno@chromium.org [Tue, 29 Apr 2014 15:11:57 +0000 (15:11 +0000)]
disable Object.observe

R=danno@chromium.org, danno
BUG=

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

Patch from Rafael Weinstein <rafaelw@chromium.org>.

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

10 years agoRevert "Enable concurrent sweeping."
rossberg@chromium.org [Tue, 29 Apr 2014 15:11:03 +0000 (15:11 +0000)]
Revert "Enable concurrent sweeping."

[Sheriff intervening.]

TBR=hpayer@chromium.org
BUG=

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

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

10 years agoWeakHashTable::Lookup() handlified and ObjectHashTable's interface cleaned up.
ishell@chromium.org [Tue, 29 Apr 2014 14:31:12 +0000 (14:31 +0000)]
WeakHashTable::Lookup() handlified and ObjectHashTable's interface cleaned up.

R=yangguo@chromium.org

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

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

10 years agoEnable concurrent sweeping.
hpayer@chromium.org [Tue, 29 Apr 2014 14:23:03 +0000 (14:23 +0000)]
Enable concurrent sweeping.

BUG=
R=jarin@chromium.org

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

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

10 years agoWait for sweeper threads in incremental marking step when sweeper threads are done...
hpayer@chromium.org [Tue, 29 Apr 2014 14:17:42 +0000 (14:17 +0000)]
Wait for sweeper threads in incremental marking step when sweeper threads are done sweeping.

BUG=
R=mstarzinger@chromium.org

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

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

10 years agoOrderedHashTable::FindEntry() handlified.
ishell@chromium.org [Tue, 29 Apr 2014 14:16:38 +0000 (14:16 +0000)]
OrderedHashTable::FindEntry() handlified.

R=yangguo@chromium.org

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

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

10 years agoFix android_arm.debug after r20051
rmcilroy@chromium.org [Tue, 29 Apr 2014 14:14:06 +0000 (14:14 +0000)]
Fix android_arm.debug after r20051

The ConstantPoolBuilder stores RelocInfo in an stl::vector, therefore RelocInfo
cannot subclass BASE_EMBEDDED.

R=jkummerow@chromium.org

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

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

10 years agoOrderedHashMap::Lookup() and ObjectHashTable::Lookup() handlified.
ishell@chromium.org [Tue, 29 Apr 2014 14:09:14 +0000 (14:09 +0000)]
OrderedHashMap::Lookup() and ObjectHashTable::Lookup() handlified.

R=yangguo@chromium.org

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

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

10 years agoRename debug event enum to be consistent.
yangguo@chromium.org [Tue, 29 Apr 2014 14:03:06 +0000 (14:03 +0000)]
Rename debug event enum to be consistent.

R=aandrey@chromium.org

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

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

10 years agoHide heap methods where possible.
yangguo@chromium.org [Tue, 29 Apr 2014 13:58:55 +0000 (13:58 +0000)]
Hide heap methods where possible.

Factory is already a friend class of Heap.
We introduce a TestHeap class in cctest.h to access protected methods.

R=mstarzinger@chromium.org

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

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

10 years agoJSObject::GetHiddenProperty() handlified.
ishell@chromium.org [Tue, 29 Apr 2014 13:51:14 +0000 (13:51 +0000)]
JSObject::GetHiddenProperty() handlified.

R=yangguo@chromium.org

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

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

10 years agoObject::Lookup(), JSObject::*Lookup*() and JSReceiver::*Lookup*() handlified.
ishell@chromium.org [Tue, 29 Apr 2014 13:43:17 +0000 (13:43 +0000)]
Object::Lookup(), JSObject::*Lookup*() and JSReceiver::*Lookup*() handlified.

R=yangguo@chromium.org

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

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

10 years agoarm: Fix Smi check in SubStringStub::Generate
jkummerow@chromium.org [Tue, 29 Apr 2014 13:42:00 +0000 (13:42 +0000)]
arm: Fix Smi check in SubStringStub::Generate

R=ulan@chromium.org

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

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

10 years agoReturn MaybeHandle from Object::ToSmi.
yangguo@chromium.org [Tue, 29 Apr 2014 13:18:27 +0000 (13:18 +0000)]
Return MaybeHandle from Object::ToSmi.

R=ulan@chromium.org

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

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

10 years agoRemove String::Visit
dcarney@chromium.org [Tue, 29 Apr 2014 13:09:31 +0000 (13:09 +0000)]
Remove String::Visit

R=yangguo@chromium.org

BUG=

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

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

10 years agoCheck that JSArray::SetElementsLength does not throw in array.length accessor.
ulan@chromium.org [Tue, 29 Apr 2014 12:52:42 +0000 (12:52 +0000)]
Check that JSArray::SetElementsLength does not throw in array.length accessor.

BUG=
R=yangguo@chromium.org

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

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

10 years agoDo not make objects in optimized code weak if collecting maps is disabled.
ulan@chromium.org [Tue, 29 Apr 2014 12:32:38 +0000 (12:32 +0000)]
Do not make objects in optimized code weak if collecting maps is disabled.

When collecting maps is disabled we do not clear non-live references.

BUG=
R=ishell@chromium.org

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

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

10 years agoMicro-optimizations to pop() and shift()
danno@chromium.org [Tue, 29 Apr 2014 11:33:39 +0000 (11:33 +0000)]
Micro-optimizations to pop() and shift()

R=verwaest@chromium.org
LOG=N

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

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

10 years agoDon't unlink evacuation candidates before sweeping, move them to the end of their...
hpayer@chromium.org [Tue, 29 Apr 2014 11:01:42 +0000 (11:01 +0000)]
Don't unlink evacuation candidates before sweeping, move them to the end of their list of pages.

BUG=
R=mstarzinger@chromium.org

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

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

10 years agoRemove old-style accessor support from runtime.
ulan@chromium.org [Tue, 29 Apr 2014 10:59:14 +0000 (10:59 +0000)]
Remove old-style accessor support from runtime.

BUG=
R=yangguo@chromium.org

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

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

10 years agoFix android_arm64 build after r21001.
ulan@chromium.org [Tue, 29 Apr 2014 10:58:16 +0000 (10:58 +0000)]
Fix android_arm64 build after r21001.

BUG=
R=svenpanne@chromium.org

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

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

10 years agoMore runtime hardening
jkummerow@chromium.org [Tue, 29 Apr 2014 08:52:17 +0000 (08:52 +0000)]
More runtime hardening

R=dslomov@chromium.org

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

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

10 years agoMake CreateInitialObjects more concise.
yangguo@chromium.org [Tue, 29 Apr 2014 08:25:24 +0000 (08:25 +0000)]
Make CreateInitialObjects more concise.

R=ishell@chromium.org

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

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

10 years agoAdd missing length check when copying fixed arrays.
yangguo@chromium.org [Tue, 29 Apr 2014 08:24:54 +0000 (08:24 +0000)]
Add missing length check when copying fixed arrays.

This was mistakenly removed in r21027.

R=bmeurer@chromium.org

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

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

10 years agoRefactor calls to CALL_HEAP_FUNCTION.
yangguo@chromium.org [Tue, 29 Apr 2014 07:02:11 +0000 (07:02 +0000)]
Refactor calls to CALL_HEAP_FUNCTION.

R=mvstanton@chromium.org

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

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

10 years agoBulk update of Google copyright headers in source files.
bmeurer@chromium.org [Tue, 29 Apr 2014 06:42:26 +0000 (06:42 +0000)]
Bulk update of Google copyright headers in source files.

R=svenpanne@chromium.org

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

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

10 years agoCopy the profiler ticks in %SetCode().
bmeurer@chromium.org [Tue, 29 Apr 2014 06:05:54 +0000 (06:05 +0000)]
Copy the profiler ticks in %SetCode().

R=svenpanne@chromium.org

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

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

10 years agoRemove invalid HCheckValue case in check elimination.
bmeurer@chromium.org [Tue, 29 Apr 2014 04:59:37 +0000 (04:59 +0000)]
Remove invalid HCheckValue case in check elimination.

Also eliminate a useless copy of the map set in case of
HCheckMaps.

R=svenpanne@chromium.org

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

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

10 years agoRevert "PromiseThen should ignore non-function parameters."
rossberg@chromium.org [Mon, 28 Apr 2014 15:57:25 +0000 (15:57 +0000)]
Revert "PromiseThen should ignore non-function parameters."

Wrong Blink test expectations, need to fix later.

TBR=machenbach@chromium.org
BUG=

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

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

10 years agoRemove some remnants of MaybeObjects in objects.*.
yangguo@chromium.org [Mon, 28 Apr 2014 15:33:16 +0000 (15:33 +0000)]
Remove some remnants of MaybeObjects in objects.*.

R=hpayer@chromium.org

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

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

10 years agoFix promises-aplus testcfg.py
rossberg@chromium.org [Mon, 28 Apr 2014 15:20:39 +0000 (15:20 +0000)]
Fix promises-aplus testcfg.py

Fix GetSourceForTest which returned an incorrect result.
With this fix promises-aplus shows correct sources when --cat option is specified.

BUG=
R=jkummerow@chromium.org

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

Patch from Yutaka Hirano <yhirano@chromium.org>.

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

10 years agoPromiseThen should ignore non-function parameters.
rossberg@chromium.org [Mon, 28 Apr 2014 15:19:15 +0000 (15:19 +0000)]
PromiseThen should ignore non-function parameters.

When non-function parameters are given, PromiseThen should work as if
undefined parameters were given.

BUG=347455
LOG=Y
R=rossberg@chromium.org

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

Patch from Yutaka Hirano <yhirano@chromium.org>.

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

10 years agoMIPS: Revert r20974, r20991: Unify and simplify the FastCloneShallowArrayStub.
plind44@gmail.com [Mon, 28 Apr 2014 15:01:41 +0000 (15:01 +0000)]
MIPS: Revert r20974, r20991: Unify and simplify the FastCloneShallowArrayStub.

Port r21007 (3a5d22d)

Original commit message:
Due to Layout test redness.

BUG=
R=plind44@gmail.com

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

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

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

10 years agoConvert array.length to API-style accessor.
ulan@chromium.org [Mon, 28 Apr 2014 14:59:29 +0000 (14:59 +0000)]
Convert array.length to API-style accessor.

BUG=
R=yangguo@chromium.org

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

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

10 years agoTighten OpenHandle's extra checks.
yangguo@chromium.org [Mon, 28 Apr 2014 13:42:03 +0000 (13:42 +0000)]
Tighten OpenHandle's extra checks.

R=jkummerow@chromium.org

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

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

10 years agoConvert function.caller to API-style accessor.
ulan@chromium.org [Mon, 28 Apr 2014 13:41:12 +0000 (13:41 +0000)]
Convert function.caller to API-style accessor.

BUG=
R=yangguo@chromium.org

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

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

10 years agoARM64: Rename TryConvertDoubleToInt64 function
m.m.capewell@googlemail.com [Mon, 28 Apr 2014 13:33:14 +0000 (13:33 +0000)]
ARM64: Rename TryConvertDoubleToInt64 function

There are two TryConvertDoubleToInt64 functions: one rounds, the other checks
if a double can be exactly represented as an int. This patch renames the second
instance to reflect its purpose more clearly.

BUG=
R=ulan@chromium.org

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

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

10 years agoChange concurrent sweeping CHECKs to ASSERTs.
hpayer@chromium.org [Mon, 28 Apr 2014 13:20:48 +0000 (13:20 +0000)]
Change concurrent sweeping CHECKs to ASSERTs.

BUG=
R=mstarzinger@chromium.org

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

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

10 years agoRemove unnecessary includes of v8 headers from platform files
jochen@chromium.org [Mon, 28 Apr 2014 13:02:17 +0000 (13:02 +0000)]
Remove unnecessary includes of v8 headers from platform files

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

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

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

10 years agoSimplify old space allocation strategy.
hpayer@chromium.org [Mon, 28 Apr 2014 12:58:32 +0000 (12:58 +0000)]
Simplify old space allocation strategy.

BUG=
R=mstarzinger@chromium.org

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

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

10 years agoError stack getter should not overwrite itself with a data property.
yangguo@chromium.org [Mon, 28 Apr 2014 12:14:36 +0000 (12:14 +0000)]
Error stack getter should not overwrite itself with a data property.

R=ulan@chromium.org
BUG=v8:3294
LOG=Y

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

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

10 years agoFix assertion when collecting stack trace from debug break.
yangguo@chromium.org [Mon, 28 Apr 2014 12:08:17 +0000 (12:08 +0000)]
Fix assertion when collecting stack trace from debug break.

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

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

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

10 years agoConvert function.arguments to API-style accessor.
ulan@chromium.org [Mon, 28 Apr 2014 12:02:11 +0000 (12:02 +0000)]
Convert function.arguments to API-style accessor.

BUG=
R=yangguo@chromium.org

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

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

10 years agoIgnore debug stepin in optimized code for array builtins.
yangguo@chromium.org [Mon, 28 Apr 2014 11:42:19 +0000 (11:42 +0000)]
Ignore debug stepin in optimized code for array builtins.

R=dslomov@chromium.org

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

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

10 years agoFix and improve Map::CurrentMapForDeprecatedInternal().
bmeurer@chromium.org [Mon, 28 Apr 2014 11:09:07 +0000 (11:09 +0000)]
Fix and improve Map::CurrentMapForDeprecatedInternal().

Inline relevant bits from Map::FindUpdatedMap() and Map::IsMoreGeneralThan()
into Map::CurrentMapForDeprecatedInternal() to fix issues introduced
with field type tracking, avoid the useless second pass over the transition
tree, and finally make it easier to understand what this method actually
does.

TEST=mjsunit/regress/regress-365172-2
R=svenpanne@chromium.org

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

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

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

10 years agoRevert "Fix and cleanup Map::GeneralizeRepresentation()."
bmeurer@chromium.org [Mon, 28 Apr 2014 11:02:12 +0000 (11:02 +0000)]
Revert "Fix and cleanup Map::GeneralizeRepresentation()."

This reverts commit r21006 for performance regressions.

TBR=svenpanne@chromium.org

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

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

10 years agoARM: don't use r9 anymore for gap resolution
m.m.capewell@googlemail.com [Mon, 28 Apr 2014 10:42:21 +0000 (10:42 +0000)]
ARM: don't use r9 anymore for gap resolution

BUG=
R=bmeurer@chromium.org, ulan@chromium.org

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

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

10 years agoRevert r20974: Unify and simplify the FastCloneShallowArrayStub
danno@chromium.org [Mon, 28 Apr 2014 10:28:15 +0000 (10:28 +0000)]
Revert r20974: Unify and simplify the FastCloneShallowArrayStub

Due to Layout test redness.

TBR=mvstanton@chromium.org

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

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

10 years agoFix and cleanup Map::GeneralizeRepresentation().
bmeurer@chromium.org [Mon, 28 Apr 2014 10:19:25 +0000 (10:19 +0000)]
Fix and cleanup Map::GeneralizeRepresentation().

TEST=mjsunit/regress/regress-365172-[1-3],mjsunit/field-type-tracking
R=svenpanne@chromium.org

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

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

10 years agoMerge v8converions with conversions
jochen@chromium.org [Mon, 28 Apr 2014 09:14:24 +0000 (09:14 +0000)]
Merge v8converions with conversions

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

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

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

10 years agoUse InitialPropertiesLength to reinitialize rather than local calculation.
verwaest@chromium.org [Mon, 28 Apr 2014 08:38:51 +0000 (08:38 +0000)]
Use InitialPropertiesLength to reinitialize rather than local calculation.

R=bmeurer@chromium.org

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

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

10 years agoExpose promise value through promise mirror.
yangguo@chromium.org [Mon, 28 Apr 2014 08:33:23 +0000 (08:33 +0000)]
Expose promise value through promise mirror.

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

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

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

10 years agoConvert function.name to API-style accessor and make CallApiGetterStub serializable.
ulan@chromium.org [Mon, 28 Apr 2014 08:26:35 +0000 (08:26 +0000)]
Convert function.name to API-style accessor and make CallApiGetterStub serializable.

BUG=
R=yangguo@chromium.org

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

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

10 years agoSimplified CPU/CpuFeatures a bit.
svenpanne@chromium.org [Mon, 28 Apr 2014 08:18:38 +0000 (08:18 +0000)]
Simplified CPU/CpuFeatures a bit.

This is a necessary intermediate step to disentangle the startup.

In the long run CPU and CpuFeatures should probably be merged,
and Serializer::enabled usage should be radically reduced, but
we're not there yet.

BUG=359977
LOG=y
R=bmeurer@chromium.org

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

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

10 years agoIntroduce DisallowDeoptimization scope.
bmeurer@chromium.org [Mon, 28 Apr 2014 06:47:05 +0000 (06:47 +0000)]
Introduce DisallowDeoptimization scope.

R=yangguo@chromium.org

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

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

10 years agoFix and improve Map::CurrentMapForDeprecatedInternal().
bmeurer@chromium.org [Mon, 28 Apr 2014 06:31:23 +0000 (06:31 +0000)]
Fix and improve Map::CurrentMapForDeprecatedInternal().

Inline relevant bits from Map::FindUpdatedMap() and Map::IsMoreGeneralThan()
into Map::CurrentMapForDeprecatedInternal() to fix issues introduced
with field type tracking, avoid the useless second pass over the transition
tree, and finally make it easier to understand what this method actually
does.

TEST=mjsunit/regress/regress-365172-2
R=svenpanne@chromium.org

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

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

10 years agoFix CurrentMapForDeprecated() to return MaybeHandle instead of a null handle.
bmeurer@chromium.org [Mon, 28 Apr 2014 05:47:43 +0000 (05:47 +0000)]
Fix CurrentMapForDeprecated() to return MaybeHandle instead of a null handle.

Also fix TryMigrateInstance() to return bool instead of the parameter or
a null handle.

R=yangguo@chromium.org

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

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

10 years agoAdd timestamps to CPU profile samples.
alph@chromium.org [Fri, 25 Apr 2014 18:53:06 +0000 (18:53 +0000)]
Add timestamps to CPU profile samples.

BUG=363976
LOG=Y
R=bmeurer@chromium.org, yurys@chromium.org

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

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

10 years agoFix for a GC-stress failures after r20987.
ishell@chromium.org [Fri, 25 Apr 2014 16:02:50 +0000 (16:02 +0000)]
Fix for a GC-stress failures after r20987.

R=verwaest@chromium.org

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

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

10 years agoMIPS: Unify and simplify the FastCloneShallowArrayStub.
plind44@gmail.com [Fri, 25 Apr 2014 15:44:01 +0000 (15:44 +0000)]
MIPS: Unify and simplify the FastCloneShallowArrayStub.

Port r20974 (5de4367)

Original commit message:
- Don't bake in length/capacity into full codegen calls of stubs,
allowing boilerplates to increase their capacity without regenerating
code.
- Unify all variants of the clone stub into a single,
length-independent version.
- Various tweaks to make sure that the clone stub doesn't spill and
therefore need an eager stack frame.
- Handle all lengths of array literals in the fast case.

BUG=
R=plind44@gmail.com

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

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

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

10 years agoRuntime_KeyedGetProperty handlified.
ishell@chromium.org [Fri, 25 Apr 2014 14:14:25 +0000 (14:14 +0000)]
Runtime_KeyedGetProperty handlified.

R=yangguo@chromium.org

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

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

10 years agoARM64: Fix LCodeGen::ToOperand32.
Jacob.Bramley@arm.com [Fri, 25 Apr 2014 14:07:45 +0000 (14:07 +0000)]
ARM64: Fix LCodeGen::ToOperand32.

This fixes the following generated code sequence:
  movn w1, #0     // Synthesize -1.
  cmp w0, w1

With a properly-constructed Operand, the MacroAssembler can optimize it
as follows:
  cmn w0, #1

BUG=
R=ulan@chromium.org

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

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

10 years agoExpose promise status through promise mirror.
yangguo@chromium.org [Fri, 25 Apr 2014 14:01:01 +0000 (14:01 +0000)]
Expose promise status through promise mirror.

R=aandrey@chromium.org, rossberg@chromium.org, yurys@chromium.org
BUG=v8:3093
LOG=Y

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

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

10 years agoHashTableKey::AsObject() handlified.
ishell@chromium.org [Fri, 25 Apr 2014 13:59:33 +0000 (13:59 +0000)]
HashTableKey::AsObject() handlified.

R=yangguo@chromium.org

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

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

10 years ago*Shape::AsObject() are no longer used - removed.
ishell@chromium.org [Fri, 25 Apr 2014 13:50:19 +0000 (13:50 +0000)]
*Shape::AsObject() are no longer used - removed.

R=yangguo@chromium.org

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

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

10 years agoRemove static CallCompletedCallback handlers
jochen@chromium.org [Fri, 25 Apr 2014 13:49:22 +0000 (13:49 +0000)]
Remove static CallCompletedCallback handlers

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

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

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

10 years agoEnter a description of the change.
jochen@chromium.org [Fri, 25 Apr 2014 13:47:01 +0000 (13:47 +0000)]
Enter a description of the change.
Reland 20968 - "Merge v8utils.* and utils.*"

>  BUG=none
>  R=mstarzinger@chromium.org
>  LOG=n
>
>  Review URL: https://codereview.chromium.org/256753002

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

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

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

10 years agoReland 20962 "Break cyclic reference between utils and platform."
jochen@chromium.org [Fri, 25 Apr 2014 13:43:58 +0000 (13:43 +0000)]
Reland 20962 "Break cyclic reference between utils and platform."

Don't use OS::MemCopy in BitCast. It's crucial that the compiler can
optimize the memcpy away.

>  Platform includes utils.h for the definition of Vector<>, so utils.h
>  can't include platform.h and has to use memcpy instead of OS::MemCopy.
>
>  We split out Vector<> into its own header to break this cycle
>  dependency.
>
>  BUG=none
>  R=mstarzinger@chromium.org
>  LOG=n
>
>  Review URL: https://codereview.chromium.org/251753002

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

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

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

10 years agoObjectHashTable's key and WeakHashTable's key types are now Handle<Object> instead...
ishell@chromium.org [Fri, 25 Apr 2014 13:35:03 +0000 (13:35 +0000)]
ObjectHashTable's key and WeakHashTable's key types are now Handle<Object> instead of Object*.

R=yangguo@chromium.org

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

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

10 years agoDictionary::SetEntry() and Dictionary::AddEntry() handlified.
ishell@chromium.org [Fri, 25 Apr 2014 13:21:16 +0000 (13:21 +0000)]
Dictionary::SetEntry() and Dictionary::AddEntry() handlified.

R=yangguo@chromium.org

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

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

10 years agoHashTable::New() handlified.
ishell@chromium.org [Fri, 25 Apr 2014 13:06:21 +0000 (13:06 +0000)]
HashTable::New() handlified.

R=yangguo@chromium.org

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

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

10 years agoReland r20960: "HashTable::EnsureCapacity() handlified."
ishell@chromium.org [Fri, 25 Apr 2014 12:59:07 +0000 (12:59 +0000)]
Reland r20960: "HashTable::EnsureCapacity() handlified."

R=yangguo@chromium.org

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

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

10 years agoFix materialization of accessor frames with captured receivers
jarin@chromium.org [Fri, 25 Apr 2014 12:58:15 +0000 (12:58 +0000)]
Fix materialization of accessor frames with captured receivers

I have fixed skipping of the receiver object to materialize captured
objects. This is done with a new DoTranslateSkip method.

We should consider unifying DoTranslateSkip, DoTranslateObject and
DoTranslateCommand as they do the almost the same thing - they only
differ in where they store the result.

The change also turns bunch of ASSERTs into CHECKs.

R=mstarzinger@chromium.org
BUG=359441
TEST=test/mjsunit/regress/regress-359441.js
LOG=N

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

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

10 years agoMove JSON-stringify webkit test to V8.
ulan@chromium.org [Fri, 25 Apr 2014 12:49:55 +0000 (12:49 +0000)]
Move JSON-stringify webkit test to V8.

BUG=367089
LOG=N
R=machenbach@chromium.org

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

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

10 years agoRevert 20962 "Break cyclic reference between utils and platform."
jochen@chromium.org [Fri, 25 Apr 2014 12:23:11 +0000 (12:23 +0000)]
Revert 20962 "Break cyclic reference between utils and platform."

>  Platform includes utils.h for the definition of Vector<>, so utils.h
>  can't include platform.h and has to use memcpy instead of OS::MemCopy.
>
>  We split out Vector<> into its own header to break this cycle
>  dependency.
>
>  BUG=none
>  R=mstarzinger@chromium.org
>  LOG=n
>
>  Review URL: https://codereview.chromium.org/251753002

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

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

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

10 years agoRevert 20968 - "Merge v8utils.* and utils.*"
jochen@chromium.org [Fri, 25 Apr 2014 12:21:32 +0000 (12:21 +0000)]
Revert 20968 - "Merge v8utils.* and utils.*"

>  BUG=none
>  R=mstarzinger@chromium.org
>  LOG=n
>
>  Review URL: https://codereview.chromium.org/256753002

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

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

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

10 years agoUnify and simplify the FastCloneShallowArrayStub
danno@chromium.org [Fri, 25 Apr 2014 11:54:01 +0000 (11:54 +0000)]
Unify and simplify the FastCloneShallowArrayStub

- Don't bake in length/capacity into full codegen calls of stubs,
  allowing boilerplates to increase their capacity without regenerating
  code.
- Unify all variants of the clone stub into a single,
  length-independent version.
- Various tweaks to make sure that the clone stub doesn't spill and
  therefore need an eager stack frame.
- Handle all lengths of array literals in the fast case.

R=mvstanton@chromium.org

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

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