platform/upstream/v8.git
10 years agoX87: More OStreamsUse OStreams more often
weiliang.lin@intel.com [Tue, 8 Jul 2014 05:24:52 +0000 (05:24 +0000)]
X87: More OStreamsUse OStreams more often

port r22232

original commit message:

This is a mostly mechanical CL (more than 90% Emacs macros and
query-replace-regexp) moving FILE*/StringStream*-based APIs to
OStream-based APIs. There are a few places where this had to stop,
otherwise the CL would be even bigger, but this can easily and
incrementally cleaned up later.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoMIPS: Fix computed properties on object literals with a double as propertyname.
palfia@homejinni.com [Mon, 7 Jul 2014 20:28:05 +0000 (20:28 +0000)]
MIPS: Fix computed properties on object literals with a double as propertyname.

Port r22255 (cf84805)

BUG=390732
LOG=y
R=palfia@homejinni.com

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

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

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

10 years agoFix computed properties on object literals with a double as propertyname.
verwaest@chromium.org [Mon, 7 Jul 2014 17:08:54 +0000 (17:08 +0000)]
Fix computed properties on object literals with a double as propertyname.

BUG=390732
LOG=y
R=ishell@chromium.org

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

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

10 years agoHydrogenized KeyedLoadGeneric stub: when probing the KeyedLookupCache fails, call...
jkummerow@chromium.org [Mon, 7 Jul 2014 16:24:51 +0000 (16:24 +0000)]
Hydrogenized KeyedLoadGeneric stub: when probing the KeyedLookupCache fails, call the runtime, don't stub-fail.

R=danno@chromium.org

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

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

10 years agoMIPS: Only create arguments-maps in the bootstrapper, remove now obsolete ValueType...
kilvadyb@homejinni.com [Mon, 7 Jul 2014 16:23:28 +0000 (16:23 +0000)]
MIPS: Only create arguments-maps in the bootstrapper, remove now obsolete ValueType flag.

Port r22245 (1471c64)

BUG=
R=palfia@homejinni.com

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

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

10 years agoAdd gdbinit to tools/ directory.
jkummerow@chromium.org [Mon, 7 Jul 2014 16:21:29 +0000 (16:21 +0000)]
Add gdbinit to tools/ directory.

Suggested usage: echo "source /path/to/v8/tools/gdbinit" >> ~/.gdbinit

R=mstarzinger@chromium.org

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

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

10 years agoRevert "Treat ExecutableAccessorInfo as regular data properties."
verwaest@chromium.org [Mon, 7 Jul 2014 16:18:15 +0000 (16:18 +0000)]
Revert "Treat ExecutableAccessorInfo as regular data properties."

Temporarily revert since blink has some properties like this on the
prototype chain where it expects accessorpair-behavior (e.g.,
window.onload).

TBR=dslomov@chromium.org
BUG=

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

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

10 years agoMIPS: More OStreamsUse OStreams more often.
kilvadyb@homejinni.com [Mon, 7 Jul 2014 16:01:09 +0000 (16:01 +0000)]
MIPS: More OStreamsUse OStreams more often.

Port r22232 (f837b91)

Original commit message:
This is a mostly mechanical CL (more than 90% Emacs macros and
query-replace-regexp) moving FILE*/StringStream*-based APIs to
OStream-based APIs. There are a few places where this had to stop,
otherwise the CL would be even bigger, but this can easily and
incrementally cleaned up later.

BUG=
R=palfia@homejinni.com

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

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

10 years agoRevert "ARM64: Use UntagSmi helpers and clean up assertions."
dslomov@chromium.org [Mon, 7 Jul 2014 14:29:07 +0000 (14:29 +0000)]
Revert "ARM64: Use UntagSmi helpers and clean up assertions."

This reverts commit r22247 for breaking Linux arm64 build.

TBR=Jacob.Bramley@arm.com

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

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

10 years agoAdd ScriptID field into ScriptOrigin class.
yurys@chromium.org [Mon, 7 Jul 2014 14:03:20 +0000 (14:03 +0000)]
Add ScriptID field into ScriptOrigin class.
Anonymous script has empty resource name. To identify this script we need its id.

R=ulan@chromium.org, yangguo@chromium.org

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

Patch from Alexey Kozyatinskiy <kozyatinskiy@google.com>.

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

10 years agoARM64: Use UntagSmi helpers and clean up assertions.
Jacob.Bramley@arm.com [Mon, 7 Jul 2014 13:58:21 +0000 (13:58 +0000)]
ARM64: Use UntagSmi helpers and clean up assertions.

BUG=
R=ulan@chromium.org

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

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

10 years agoARM64: Generate better immediates for shifted ops
m.m.capewell@googlemail.com [Mon, 7 Jul 2014 13:31:22 +0000 (13:31 +0000)]
ARM64: Generate better immediates for shifted ops

Improve code generated for immediate data processing operations where the shift
on the operation can be exploited to use fewer instructions for the immediate.

For example, Add(x0, x0, 0x1f7de) used to generate:
  movz x16, 0xf7de
  movk x16, 0x1, lsl #16
  add x0, x0, x16

now generates:
  movz x16, 0xfbef
  add x0, x0, x16, lsl #1

BUG=
R=ulan@chromium.org

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

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

10 years agoOnly create arguments-maps in the bootstrapper, remove now obsolete ValueType flag.
verwaest@chromium.org [Mon, 7 Jul 2014 13:27:37 +0000 (13:27 +0000)]
Only create arguments-maps in the bootstrapper, remove now obsolete ValueType flag.

TBR=dslomov@chromium.org

BUG=

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

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

10 years agoRevert "Only create arguments-maps in the bootstrapper, remove now obsolete ValueType...
dslomov@chromium.org [Mon, 7 Jul 2014 13:12:29 +0000 (13:12 +0000)]
Revert "Only create arguments-maps in the bootstrapper, remove now obsolete ValueType flag."

This reverts commit r22240 for breaking tests on Linux.

Revert "Remove SetOwnPropertyIgnoreAttribute uses from the bootstrapper"

This reverts commit r22241 for breaking tests on Linux.

TBR=verwaest@chromium.org

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

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

10 years agoRemove SetOwnPropertyIgnoreAttribute uses from the bootstrapper
verwaest@chromium.org [Mon, 7 Jul 2014 12:31:25 +0000 (12:31 +0000)]
Remove SetOwnPropertyIgnoreAttribute uses from the bootstrapper

BUG=
R=ishell@chromium.org

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

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

10 years agoOnly create arguments-maps in the bootstrapper, remove now obsolete ValueType flag.
verwaest@chromium.org [Mon, 7 Jul 2014 12:21:01 +0000 (12:21 +0000)]
Only create arguments-maps in the bootstrapper, remove now obsolete ValueType flag.

R=ishell@chromium.org

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

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

10 years agoHydrogenized KeyedLoadGeneric stub: exhaustively search dictionary properties.
jkummerow@chromium.org [Mon, 7 Jul 2014 11:43:02 +0000 (11:43 +0000)]
Hydrogenized KeyedLoadGeneric stub: exhaustively search dictionary properties.

And call the runtime instead of stub-failing when the property isn't found.

R=danno@chromium.org

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

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

10 years agoHydrogenized KeyedLoadGeneric stub: Fix FieldIndex::GetLoadByFieldIndex()
jkummerow@chromium.org [Mon, 7 Jul 2014 11:35:17 +0000 (11:35 +0000)]
Hydrogenized KeyedLoadGeneric stub: Fix FieldIndex::GetLoadByFieldIndex()

R=danno@chromium.org

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

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

10 years agoAnother round of MSVC fixes.
svenpanne@chromium.org [Mon, 7 Jul 2014 11:00:53 +0000 (11:00 +0000)]
Another round of MSVC fixes.

TBR=bmeurer@chromium.org

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

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

10 years agoTreat ExecutableAccessorInfo as regular data properties.
verwaest@chromium.org [Mon, 7 Jul 2014 11:00:44 +0000 (11:00 +0000)]
Treat ExecutableAccessorInfo as regular data properties.

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

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

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

10 years agoReland^3 r22105 "Remove static initializer from isolate"
jochen@chromium.org [Mon, 7 Jul 2014 10:56:36 +0000 (10:56 +0000)]
Reland^3 r22105 "Remove static initializer from isolate"

This time:
When accessing the isolate from the sampler signal handler, don't try
to take the global lock. A sampler should only be active if there is
already an isolate on that thread, so we don't need to check whether
the TLS key is already created.

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

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

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

10 years agoMake MSVC happy again.
svenpanne@chromium.org [Mon, 7 Jul 2014 10:36:47 +0000 (10:36 +0000)]
Make MSVC happy again.

TBR=bmeurer@chromium.org

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

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

10 years agoFix compilation with clang after r22208
jochen@chromium.org [Mon, 7 Jul 2014 10:00:21 +0000 (10:00 +0000)]
Fix compilation with clang after r22208

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

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

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

10 years agoMore OStreamsUse OStreams more often.
svenpanne@chromium.org [Mon, 7 Jul 2014 09:57:29 +0000 (09:57 +0000)]
More OStreamsUse OStreams more often.

This is a mostly mechanical CL (more than 90% Emacs macros and
query-replace-regexp) moving FILE*/StringStream*-based APIs to
OStream-based APIs. There are a few places where this had to stop,
otherwise the CL would be even bigger, but this can easily and
incrementally cleaned up later.

R=bmeurer@chromium.org

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

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

10 years agoAvoid brittle use of .bind in Promise.all
rossberg@chromium.org [Mon, 7 Jul 2014 09:47:43 +0000 (09:47 +0000)]
Avoid brittle use of .bind in Promise.all

R=yangguo@chromium.org
BUG=v8:3420
LOG=Y

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

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

10 years agoARM64: optimize fullcodegen pushes
m.m.capewell@googlemail.com [Mon, 7 Jul 2014 09:41:04 +0000 (09:41 +0000)]
ARM64: optimize fullcodegen pushes

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

BUG=

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

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

10 years agoParser cleanup: Cached data cannot contain errors (removed dead code)
marja@chromium.org [Mon, 7 Jul 2014 09:31:58 +0000 (09:31 +0000)]
Parser cleanup: Cached data cannot contain errors (removed dead code)

We no longer store the errors in cached data (see Parser::ParseProgram()) and
storing them is an unnecessary optimization. In addition, the code which
extracts errors from cached data is wrong, since it stores the result of
BuildArgs (in ReportMessageAt) and then deletes it.

R=rossberg@chromium.org
BUG=

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

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

10 years agoAdd missing include to timers
m.m.capewell@googlemail.com [Mon, 7 Jul 2014 09:29:25 +0000 (09:29 +0000)]
Add missing include to timers

Library function close() needs unistd.h header included.

BUG=
R=jochen@chromium.org

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

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

10 years agoWrap captureStackTrace in a try-catch when constructing an error.
yangguo@chromium.org [Mon, 7 Jul 2014 07:23:41 +0000 (07:23 +0000)]
Wrap captureStackTrace in a try-catch when constructing an error.

TBR=verwaest@chromium.org

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

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

10 years agoAvailability of sprintf_s is a C standard library thing, not a compiler thing.
jochen@chromium.org [Mon, 7 Jul 2014 07:21:10 +0000 (07:21 +0000)]
Availability of sprintf_s is a C standard library thing, not a compiler thing.

Our clang/win build currently uses MSVS's C library, so it doesn't have
snprintf but it does have sprintf_s.

BUG=chromium:82385
LOG=n
R=jochen@chromium.org

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

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

10 years agoRemove a bunch of Isolate::UncheckedCurrent calls
jochen@chromium.org [Mon, 7 Jul 2014 07:19:46 +0000 (07:19 +0000)]
Remove a bunch of Isolate::UncheckedCurrent calls

The callbacks are per isolate, so we shouldn't get the isolate implicitly
from TLS. Also, we shouldn't allow calls to these methods prior to
initializing the respective isolate (and silently ignore them).

Esp. add a per-isolate API to set the stats counter callbacks and
make it possible to set the stats counter callback after the isolate
was touched.

Embedders should use e.g. isolate->SetCounterFunction(callback) instead
of v8::V8::SetCounterFunction(callback).

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

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

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

10 years agoProperly seed the RNG for cctest/test-types.
bmeurer@chromium.org [Mon, 7 Jul 2014 07:04:16 +0000 (07:04 +0000)]
Properly seed the RNG for cctest/test-types.

This was broken since r21879, as the RandomNumberGenerator constructor
does no longer look at FLAG_random_seed implicitly.

TEST=cctest/test-types
R=jochen@chromium.org

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

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

10 years agoX87: Error in CallFunctionNoFeedback ia32 made less efficient code
weiliang.lin@intel.com [Fri, 4 Jul 2014 07:30:45 +0000 (07:30 +0000)]
X87: Error in CallFunctionNoFeedback ia32 made less efficient code

port r22191.

original commit message:
  Error in CallFunctionNoFeedback ia32 made less efficient code

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoX87: Start using OStreams.
weiliang.lin@intel.com [Fri, 4 Jul 2014 07:00:01 +0000 (07:00 +0000)]
X87: Start using OStreams.

port r22179

original commit message:

Note that until everything is OStream-based, there are a few places
where we have to do some impedance matching. A few accessors had to be
const-corrected on the way.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoRevert "Remove unnecessary check in RegExpExecStub."
yangguo@chromium.org [Thu, 3 Jul 2014 20:21:00 +0000 (20:21 +0000)]
Revert "Remove unnecessary check in RegExpExecStub."

This reverts r22203 and r22205.

TBR=danno@chromium.org

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

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

10 years agoReland "Linux perf tool support update + refactoring." (r22146, fifth attempt)
jarin@chromium.org [Thu, 3 Jul 2014 19:18:26 +0000 (19:18 +0000)]
Reland "Linux perf tool support update + refactoring." (r22146, fifth attempt)

Bringing the offending timer functions to the platform dependent files.

BUG=
R=yangguo@chromium.org

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

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

10 years ago[Arm]: Enable use of extended out-of-line constant pool for Arm.
rmcilroy@chromium.org [Thu, 3 Jul 2014 17:01:14 +0000 (17:01 +0000)]
[Arm]: Enable use of extended out-of-line constant pool for Arm.

 - Adds support to the Arm assembler to use extended constant pools.
 - Update (set_)target_address_at to support extended constant pool load
   updates.
 - Replace Operand::is_single_instruction with Operand::instructions_required
   Due to the fact that different constant pool load types require different
   numbers of instructions.
 - Various cleanups of ConstantPoolBuilder to cleaner integration of the
   extended constant pool building.
 - Update GetRelocatedValue such that offsets to both map_check and bool_load
   are explicitly provided, rather than location of bool_load being inferred
   based on map_check, since the code inbetween is no longer of a predictable
   size.
 - Update MacroAssembler::GetRelocatedValueLocation() to add support for
   getting a value from an extended constant pool entry.
 - Update Debug::SetAfterBreakTarget() to use target_address_from_return_address
   when checking for debug breaks at constant pool load points.
 - Change ConstantPoolIterateBody to iterate over both heap and code pointer in
   the small section before moving onto the extended section, to work around the
   requirement of the serializer that pointers are iterated in-order.
 - Increase old_pointer_space SizeOfFirstPage() to offset the fact that constant
   pools are now in the old pointer space (rather than code).

R=ulan@chromium.org

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

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

10 years agoUse the HeapObjectIterator to scan-on-scavenge map pages.
verwaest@chromium.org [Thu, 3 Jul 2014 16:55:17 +0000 (16:55 +0000)]
Use the HeapObjectIterator to scan-on-scavenge map pages.

Deserializing the partial snapshot may prematurely stop using a map page, adding a free-space filler at the end. Scan-on-scavenge of map-space did not expect anything but maps, and would interpret the uninitialized memory as pointers. Using the heap iterator we can skip over free space and only visit maps.

BUG=390732
LOG=y
R=hpayer@chromium.org

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

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

10 years agoHydrogen LoopBuilder: add support for "while(true) {...}" loops
jkummerow@chromium.org [Thu, 3 Jul 2014 16:33:42 +0000 (16:33 +0000)]
Hydrogen LoopBuilder: add support for "while(true) {...}" loops

R=danno@chromium.org

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

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

10 years agoHGraphBuilder::BuildJSObjectCheck: Tighten instance type comparison
jkummerow@chromium.org [Thu, 3 Jul 2014 16:32:23 +0000 (16:32 +0000)]
HGraphBuilder::BuildJSObjectCheck: Tighten instance type comparison

R=danno@chromium.org

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

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

10 years agoMIPS: Remove unnecessary check in RegExpExecStub.
kilvadyb@homejinni.com [Thu, 3 Jul 2014 16:22:34 +0000 (16:22 +0000)]
MIPS: Remove unnecessary check in RegExpExecStub.

Port r22202 (cd07587)

BUG=v8:592
LOG=N
R=palfia@homejinni.com

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

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

10 years agoIntroduce debug events for Microtask queue.
aandrey@chromium.org [Thu, 3 Jul 2014 15:56:01 +0000 (15:56 +0000)]
Introduce debug events for Microtask queue.

R=yangguo@chromium.org, adamk@chromium.org, rafaelw@chromium.org, rossberg@chromium.org
BUG=chromium:272416
LOG=Y

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

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

10 years agoFix assertion failure in mjsunit/regexp-stack-overflow.
yangguo@chromium.org [Thu, 3 Jul 2014 14:57:55 +0000 (14:57 +0000)]
Fix assertion failure in mjsunit/regexp-stack-overflow.

TBR=machenbach@chromium.org

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

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

10 years agoRemove unnecessary check in RegExpExecStub.
yangguo@chromium.org [Thu, 3 Jul 2014 14:03:10 +0000 (14:03 +0000)]
Remove unnecessary check in RegExpExecStub.

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

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

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

10 years agoARM64: use direct conditional branches for regexp
m.m.capewell@googlemail.com [Thu, 3 Jul 2014 13:16:51 +0000 (13:16 +0000)]
ARM64: use direct conditional branches for regexp

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

BUG=

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

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

10 years agoARM64: improve Adr patching
m.m.capewell@googlemail.com [Thu, 3 Jul 2014 13:08:15 +0000 (13:08 +0000)]
ARM64: improve Adr patching

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

BUG=

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

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

10 years agoRevert "Reland^2 r22105 "Remove static initializer from isolate""
yangguo@chromium.org [Thu, 3 Jul 2014 12:33:16 +0000 (12:33 +0000)]
Revert "Reland^2 r22105 "Remove static initializer from isolate""

This reverts r22167.

BUG=v8:3421
LOG=N
TBR=jochen@chromium.org

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

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

10 years agoMIPS: Start using OStreams.
kilvadyb@homejinni.com [Thu, 3 Jul 2014 12:27:23 +0000 (12:27 +0000)]
MIPS: Start using OStreams.

Port r22179 (01402bc)

Original commit message:
Note that until everything is OStream-based, there are a few places
where we have to do some impedance matching. A few accessors had to be
const-corrected on the way.

BUG=
R=palfia@homejinni.com

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

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

10 years agoRevert "Turn old space cons strings into regular external strings (not short)."
yangguo@chromium.org [Thu, 3 Jul 2014 12:24:41 +0000 (12:24 +0000)]
Revert "Turn old space cons strings into regular external strings (not short)."

This reverts commits r22192 and r22194.

TBR=hpayer@chromium.org

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

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

10 years agoFix changed expectation in Heap::AllowToBeMigrated.
yangguo@chromium.org [Thu, 3 Jul 2014 12:01:34 +0000 (12:01 +0000)]
Fix changed expectation in Heap::AllowToBeMigrated.

R=hpayer@chromium.org

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

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

10 years agoFix deopt reason printing to print stub failure reason with --trace-stub-failures...
jkummerow@chromium.org [Thu, 3 Jul 2014 11:47:31 +0000 (11:47 +0000)]
Fix deopt reason printing to print stub failure reason with --trace-stub-failures --code-comments

R=jarin@chromium.org

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

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

10 years agoTurn old space cons strings into regular external strings (not short).
yangguo@chromium.org [Thu, 3 Jul 2014 11:46:31 +0000 (11:46 +0000)]
Turn old space cons strings into regular external strings (not short).

R=hpayer@chromium.org

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

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

10 years agoError in CallFunctionNoFeedback ia32 made less efficient code.
mvstanton@chromium.org [Thu, 3 Jul 2014 11:11:39 +0000 (11:11 +0000)]
Error in CallFunctionNoFeedback ia32 made less efficient code.

R=mstarzinger@chromium.org
BUG=

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

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

10 years agoadd GetOwnPropertyDescriptor to api
dcarney@chromium.org [Thu, 3 Jul 2014 10:04:57 +0000 (10:04 +0000)]
add GetOwnPropertyDescriptor to api

R=verwaest@chromium.org

BUG=

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

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

10 years agoAdd an API to pump the message loop to libplatform
jochen@chromium.org [Thu, 3 Jul 2014 09:33:36 +0000 (09:33 +0000)]
Add an API to pump the message loop to libplatform

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

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

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

10 years agoFix result status of rerun flaky tests.
machenbach@chromium.org [Thu, 3 Jul 2014 09:33:22 +0000 (09:33 +0000)]
Fix result status of rerun flaky tests.

Tests that pass on reruns where wrongly treated as failures. Now the result state can include any of (PASS, FAIL, CRASH, TIMEOUT)

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

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

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

10 years agoHydrogenized KeyedLoadGeneric stub: Fix BuildDecodeField
jkummerow@chromium.org [Thu, 3 Jul 2014 08:58:03 +0000 (08:58 +0000)]
Hydrogenized KeyedLoadGeneric stub: Fix BuildDecodeField

R=yangguo@chromium.org

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

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

10 years agoHydrogenized KeyedLoadGeneric stub: Fix string hash retrieval
jkummerow@chromium.org [Thu, 3 Jul 2014 08:55:42 +0000 (08:55 +0000)]
Hydrogenized KeyedLoadGeneric stub: Fix string hash retrieval

R=yangguo@chromium.org

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

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

10 years agoStack overflow checkers are now compatible with ASAN's detect_stack_use_after_return...
ishell@chromium.org [Thu, 3 Jul 2014 08:52:28 +0000 (08:52 +0000)]
Stack overflow checkers are now compatible with ASAN's detect_stack_use_after_return mode.

BUG=chromium:376287
BUG=chromium:376262
BUG=chromium:369962
LOG=N
R=jkummerow@chromium.org

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

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

10 years agoDon't even include v8.h from libbase or libplatform
jochen@chromium.org [Thu, 3 Jul 2014 08:50:52 +0000 (08:50 +0000)]
Don't even include v8.h from libbase or libplatform

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

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

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

10 years agoBuildfix for windows after r22180
jochen@chromium.org [Thu, 3 Jul 2014 07:57:29 +0000 (07:57 +0000)]
Buildfix for windows after r22180

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

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

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

10 years agoSplit out libplatform into a separate libary
jochen@chromium.org [Thu, 3 Jul 2014 07:37:27 +0000 (07:37 +0000)]
Split out libplatform into a separate libary

Also remove the "use default platform" compile flag. Instead, the embedder
has to provide the platform.

Change all binaries to use the default platfrom from libplatform.

Unless --job-based-sweeping is passed, nothing uses the platform yet, so
nothing will break for embedders (yet).

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

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

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

10 years agoStart using OStreams.
svenpanne@chromium.org [Thu, 3 Jul 2014 07:18:30 +0000 (07:18 +0000)]
Start using OStreams.

Note that until everything is OStream-based, there are a few places
where we have to do some impedance matching. A few accessors had to be
const-corrected on the way.

R=mstarzinger@chromium.org

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

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

10 years agoOne of the fast cases in JSObject::MigrateFastToFast() should not be taken if the...
ishell@chromium.org [Wed, 2 Jul 2014 19:10:19 +0000 (19:10 +0000)]
One of the fast cases in JSObject::MigrateFastToFast() should not be taken if the number of fields did not change.

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

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

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

10 years agoRevert "Remove special ExecutableAccessorInfo handling based on flag"
verwaest@chromium.org [Wed, 2 Jul 2014 16:59:04 +0000 (16:59 +0000)]
Revert "Remove special ExecutableAccessorInfo handling based on flag"

Temporarily reverting until we figure out how to handle the API cases that use accessors to lazily compute values.
dataAttributeGetterCustom in V8MessageEventCustom (at least) overwrites itself with the computed value using ForceSet. We can either force such clients to first use ForceDelete before caching, use some other caching mechanism; or provide an API for lazily computed properties.

TBR=dcarney@chromium.org
BUG=

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

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

10 years agoFix rerun barrier for flaky tests.
machenbach@chromium.org [Wed, 2 Jul 2014 15:33:21 +0000 (15:33 +0000)]
Fix rerun barrier for flaky tests.

- The rerun flag doesn't include the first run.
- Timeout is an int. The division makes it 0 for small
numbers.

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

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

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

10 years agoRemove special ExecutableAccessorInfo handling based on flag
verwaest@chromium.org [Wed, 2 Jul 2014 15:28:29 +0000 (15:28 +0000)]
Remove special ExecutableAccessorInfo handling based on flag
This additionally removes special "prototype" handling for O.o, since it's broken; and added test.

BUG=
R=mvstanton@chromium.org

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

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

10 years agoMIPS: Clean up the global object naming madness.
kilvadyb@homejinni.com [Wed, 2 Jul 2014 15:21:28 +0000 (15:21 +0000)]
MIPS: Clean up the global object naming madness.

Port r22117 (e9244d6)

BUG=
R=palfia@homejinni.com

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

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

10 years agoHarden Runtime_LiveEditCheckAndDropActivations against unsafe args.
yangguo@chromium.org [Wed, 2 Jul 2014 15:09:44 +0000 (15:09 +0000)]
Harden Runtime_LiveEditCheckAndDropActivations against unsafe args.

R=jarin@chromium.org
BUG=390925
LOG=N

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

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

10 years agoMIPS: KeyedLoadIC should have same register spec as LoadIC.
kilvadyb@homejinni.com [Wed, 2 Jul 2014 15:09:14 +0000 (15:09 +0000)]
MIPS: KeyedLoadIC should have same register spec as LoadIC.

Port r22103 (2c36867)

Original commit message:
On arm, arm64 and x64 there is a different register specification between LoadIC and KeyedLoadIC.

It would be nicer if these are the same, allowing some key optimizations.

BUG=
R=palfia@homejinni.com

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

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

10 years agoReland^2 r22105 "Remove static initializer from isolate"
jochen@chromium.org [Wed, 2 Jul 2014 14:43:54 +0000 (14:43 +0000)]
Reland^2 r22105 "Remove static initializer from isolate"

Make Isolate::UncheckedCurrent() return NULL if Isolate wasn't yet initialized
to avoid reentrancy when running with the profiler

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

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

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

10 years agoReland "Fix stack trace accessor behavior."
yangguo@chromium.org [Wed, 2 Jul 2014 14:18:10 +0000 (14:18 +0000)]
Reland "Fix stack trace accessor behavior."

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

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

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

10 years agoAdd clang-format to presubmit checks
jochen@chromium.org [Wed, 2 Jul 2014 14:11:44 +0000 (14:11 +0000)]
Add clang-format to presubmit checks

The check doesn't modify the patch, instead, you'll have to use "git cl
format" manually.

BUG=none
R=danno@google.com, danno@chromium.org, jkummerow@chromium.org
LOG=y

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

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

10 years agoMake flag definition macros style guide compliant and clang-format it.
jochen@chromium.org [Wed, 2 Jul 2014 14:00:16 +0000 (14:00 +0000)]
Make flag definition macros style guide compliant and clang-format it.

coding style wants macros to be all upper case, and so clang-format only
detects those as macros.

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

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

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

10 years agoAllow yield expressions without a RHS.
wingo@igalia.com [Wed, 2 Jul 2014 13:48:28 +0000 (13:48 +0000)]
Allow yield expressions without a RHS.

R=marja@chromium.org
BUG=

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

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

10 years agoStack traces exposed to Javascript should omit extensions.
yangguo@chromium.org [Wed, 2 Jul 2014 13:36:29 +0000 (13:36 +0000)]
Stack traces exposed to Javascript should omit extensions.

R=marja@chromium.org
BUG=v8:311
LOG=Y

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

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

10 years agoRevert "Precisely sweep scan on scavenge pages and use heap iterator to iterate over...
yangguo@chromium.org [Wed, 2 Jul 2014 13:00:36 +0000 (13:00 +0000)]
Revert "Precisely sweep scan on scavenge pages and use heap iterator to iterate over them."

This reverts r22154.

TBR=hpayer@chromium.org

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

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

10 years agoWait for sweeper threads only if we have to, i.e. if we globally have to finish sweep...
hpayer@chromium.org [Wed, 2 Jul 2014 12:33:12 +0000 (12:33 +0000)]
Wait for sweeper threads only if we have to, i.e. if we globally have to finish sweeping or if we have to allocate from a certain space.
BUG=
R=ulan@chromium.org

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

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

10 years agoAdd more generator/yield parsing tests
wingo@igalia.com [Wed, 2 Jul 2014 12:27:34 +0000 (12:27 +0000)]
Add more generator/yield parsing tests

R=marja@chromium.org
BUG=

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

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

10 years agoPrecisely sweep scan on scavenge pages and use heap iterator to iterate over them.
hpayer@chromium.org [Wed, 2 Jul 2014 12:19:03 +0000 (12:19 +0000)]
Precisely sweep scan on scavenge pages and use heap iterator to iterate over them.

BUG=
R=jarin@chromium.org

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

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

10 years agoFix: Parser::HandleSourceURLComments was making gcmole unhappy (rightfully).
marja@chromium.org [Wed, 2 Jul 2014 12:01:56 +0000 (12:01 +0000)]
Fix: Parser::HandleSourceURLComments was making gcmole unhappy (rightfully).

R=yangguo@chromium.org
BUG=

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

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

10 years agoFix platform-cygwin.cc to really not use an Isolate
jochen@chromium.org [Wed, 2 Jul 2014 11:22:54 +0000 (11:22 +0000)]
Fix platform-cygwin.cc to really not use an Isolate

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

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

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

10 years agoRemove deprecated v8::Context::HasOutOfMemoryException.
yangguo@chromium.org [Wed, 2 Jul 2014 10:34:13 +0000 (10:34 +0000)]
Remove deprecated v8::Context::HasOutOfMemoryException.

LOG=Y
R=ulan@chromium.org

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

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

10 years agoRevert "Reland "Linux perf tool support update + refactoring." (r22118)"
yangguo@chromium.org [Wed, 2 Jul 2014 10:19:35 +0000 (10:19 +0000)]
Revert "Reland "Linux perf tool support update + refactoring." (r22118)"

This reverts r22146.

TBR=jarin@chromium.org

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

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

10 years agoMark mjsunit/migrations test in debug mode as TIMEOUT
ishell@chromium.org [Wed, 2 Jul 2014 09:57:27 +0000 (09:57 +0000)]
Mark mjsunit/migrations test in debug mode as TIMEOUT

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

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

10 years agoARM64: Reland faster immediate check
m.m.capewell@googlemail.com [Wed, 2 Jul 2014 09:52:23 +0000 (09:52 +0000)]
ARM64: Reland faster immediate check

Improve the code used to check for encodable logical immediates, fix some corner
cases associated with moving kWMinInt into W registers, and add tests.

BUG=
R=ulan@chromium.org

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

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

10 years agoAdd information about rerun tests to json output.
machenbach@chromium.org [Wed, 2 Jul 2014 09:12:07 +0000 (09:12 +0000)]
Add information about rerun tests to json output.

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

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

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

10 years agoReland "Linux perf tool support update + refactoring." (r22118)
jarin@chromium.org [Wed, 2 Jul 2014 08:38:52 +0000 (08:38 +0000)]
Reland "Linux perf tool support update + refactoring." (r22118)

This disables the perf support in Android because of build problems with librt (should be fixable with a bit of effort, but priority is low).

BUG=
R=yangguo@chromium.org

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

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

10 years agoRevert "Postpone termination exceptions in debug scope."
yangguo@chromium.org [Wed, 2 Jul 2014 08:27:31 +0000 (08:27 +0000)]
Revert "Postpone termination exceptions in debug scope."

This reverts r22144.

TBR=yurys@chromium.org

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

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

10 years agoPostpone termination exceptions in debug scope.
yangguo@chromium.org [Wed, 2 Jul 2014 08:15:52 +0000 (08:15 +0000)]
Postpone termination exceptions in debug scope.

R=yurys@chromium.org
BUG=v8:3408
LOG=Y

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

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

10 years agoLet test runner rerun failures to test for flakes.
machenbach@chromium.org [Wed, 2 Jul 2014 08:15:44 +0000 (08:15 +0000)]
Let test runner rerun failures to test for flakes.

When enabled, this dynamically adds jobs that had failures back to the pool. Special json output for flakes will be handled in a separate CL.

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

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

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

10 years agoReland "Add mechanism to postpone interrupts selectively."
yangguo@chromium.org [Wed, 2 Jul 2014 08:05:40 +0000 (08:05 +0000)]
Reland "Add mechanism to postpone interrupts selectively."

BUG=v8:3408
LOG=N
R=yurys@chromium.org

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

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

10 years agoRevert "Reland 22105 "Remove static initializer from isolate""
jochen@chromium.org [Wed, 2 Jul 2014 07:44:02 +0000 (07:44 +0000)]
Revert "Reland 22105 "Remove static initializer from isolate""

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

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

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

10 years agoX87: Clean up the global object naming madness.
weiliang.lin@intel.com [Wed, 2 Jul 2014 07:07:22 +0000 (07:07 +0000)]
X87: Clean up the global object naming madness.

port r22117

original message:

  Clean up the global object naming madness.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoReland 22105 "Remove static initializer from isolate"
jochen@chromium.org [Wed, 2 Jul 2014 07:04:44 +0000 (07:04 +0000)]
Reland 22105 "Remove static initializer from isolate"

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

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

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

10 years agoRe-enable the check in GetRangeConstraint() function.
jochen@chromium.org [Wed, 2 Jul 2014 07:02:39 +0000 (07:02 +0000)]
Re-enable the check in GetRangeConstraint() function.

Now that we have ASSERT() macro in src/base/logging.h we can use it in
safe_conversions_impl.h, re-enable this assertion and fix the TODO
there.

BUG=None
TEST=None
R=jochen@chromium.org
LOG=n

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

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

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

10 years agoHandle "//# sourceURL" comments in the Parser instead of the JS.
marja@chromium.org [Wed, 2 Jul 2014 07:01:31 +0000 (07:01 +0000)]
Handle "//# sourceURL" comments in the Parser instead of the JS.

BUG=v8:2948
LOG=N
R=svenpanne@chromium.org, yurys@chromium.org

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

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

10 years agoAdded a promotion queue unit test that test promotion queue memory corruption
hpayer@chromium.org [Tue, 1 Jul 2014 18:48:02 +0000 (18:48 +0000)]
Added a promotion queue unit test that test promotion queue memory corruption
by semi-space evacuation.

BUG=
R=titzer@chromium.org

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

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

10 years agoSkip mjsunit/migrations test in debug mode to avoid timeout failures.
ishell@chromium.org [Tue, 1 Jul 2014 17:39:16 +0000 (17:39 +0000)]
Skip mjsunit/migrations test in debug mode to avoid timeout failures.

TBR=yangguo@chromium.org

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

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

10 years agoMake freeze & friends ignore private properties
rossberg@chromium.org [Tue, 1 Jul 2014 15:47:41 +0000 (15:47 +0000)]
Make freeze & friends ignore private properties

R=verwaest@chromium.org
BUG=v8:3419
LOG=Y

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

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