platform/upstream/v8.git
10 years agoFix compilation after r22461: removed now unused var
jochen@chromium.org [Fri, 18 Jul 2014 08:00:51 +0000 (08:00 +0000)]
Fix compilation after r22461: removed now unused var

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

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

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

10 years agoRemove experimental flags that are now required
danno@chromium.org [Fri, 18 Jul 2014 07:17:21 +0000 (07:17 +0000)]
Remove experimental flags that are now required

R=mstarzinger@chromium.org

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

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

10 years agoBootstrapper::DetachGlobal also need to unset global_proxy's constructor to remove...
dcarney@chromium.org [Fri, 18 Jul 2014 06:05:59 +0000 (06:05 +0000)]
Bootstrapper::DetachGlobal also need to unset global_proxy's constructor to remove all refs to context

DetachGlobal detaches original context of a global proxy object.

Before this patch, the constructor JSFunction still carried a reference to the old context after |Bootstrapper::DetachGlobal| call.
This patch removes the reference by setting the constructor null.

TEST=http/tests/security/isolatedWorld w/ --enable-leak-detection
LOG=N
BUG=364377
R=dcarney@chromium.org

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

Patch from Kouhei Ueno <kouhei@chromium.org>.

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

10 years agoX87: StubCallInterfaceDescriptor takes a context register.
weiliang.lin@intel.com [Fri, 18 Jul 2014 03:15:48 +0000 (03:15 +0000)]
X87: StubCallInterfaceDescriptor takes a context register.

port r22448

original commit message:
  StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base class InterfaceDescriptor.

  Handling of the context register had to be massaged to effect the unification. This will make it easier
  to call hydrogen code stubs directly from crankshaft.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoMIPS: StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a...
balazs.kilvady@imgtec.com [Thu, 17 Jul 2014 18:24:59 +0000 (18:24 +0000)]
MIPS: StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base class InterfaceDescriptor.

Port r22448 (a9e0b0e)

Original commit message:
Handling of the context register had to be massaged to effect the unification. This will make it easier to call hydrogen code stubs directly from crankshaft.

BUG=
R=mvstanton@chromium.org, paul.lind@imgtec.com

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

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

10 years agoFix v8 Windows GN build.
jochen@chromium.org [Thu, 17 Jul 2014 17:39:54 +0000 (17:39 +0000)]
Fix v8 Windows GN build.

The paths for some of the Windows-specific files was incorrect.

R=jochen@chromium.org

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

Patch from Brett Wilson <brettw@chromium.org>.

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

10 years agoRevert "Expose the content of Maps and WeakMaps through MapMirror."
yangguo@chromium.org [Thu, 17 Jul 2014 16:43:52 +0000 (16:43 +0000)]
Revert "Expose the content of Maps and WeakMaps through MapMirror."

This reverts r22452.

TBR=amikhaylova@google.com

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

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

10 years agoRemove fuzz-natives blacklist entries that no longer exist.
mstarzinger@chromium.org [Thu, 17 Jul 2014 15:13:46 +0000 (15:13 +0000)]
Remove fuzz-natives blacklist entries that no longer exist.

R=verwaest@chromium.org

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

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

10 years agoExpose the content of Maps and WeakMaps through MapMirror.
yangguo@chromium.org [Thu, 17 Jul 2014 15:07:59 +0000 (15:07 +0000)]
Expose the content of Maps and WeakMaps through MapMirror.

BUG=v8:3291
LOG=N
R=aandrey@chromium.org, yangguo@chromium.org

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

Patch from Alexandra Mikhaylova <amikhaylova@google.com>.

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

10 years agoLimit stack size when testing stack overflow in JSON.stringify.
yangguo@chromium.org [Thu, 17 Jul 2014 13:23:02 +0000 (13:23 +0000)]
Limit stack size when testing stack overflow in JSON.stringify.

R=mvstanton@chromium.org

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

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

10 years agoMove node statistics from GCTracer to Heap.
ernstm@chromium.org [Thu, 17 Jul 2014 13:00:46 +0000 (13:00 +0000)]
Move node statistics from GCTracer to Heap.

R=hpayer@chromium.org
BUG=

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

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

10 years ago[Auto-roll] Bump up version to 3.28.27.0
machenbach@chromium.org [Thu, 17 Jul 2014 11:57:09 +0000 (11:57 +0000)]
[Auto-roll] Bump up version to 3.28.27.0

TBR=machenbach@chromium.org

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

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

10 years agoStubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base...
mvstanton@chromium.org [Thu, 17 Jul 2014 11:50:04 +0000 (11:50 +0000)]
StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base class InterfaceDescriptor.

Handling of the context register had to be massaged to effect the unification. This will make it easier to call hydrogen code stubs directly from crankshaft.

R=danno@chromium.org

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

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

10 years agoChange String.prototype.concat to be more like similar functions.
yangguo@chromium.org [Thu, 17 Jul 2014 10:54:25 +0000 (10:54 +0000)]
Change String.prototype.concat to be more like similar functions.

This is just cosmetic: We usually avoid using %FunctionSetLength.

R=dslomov@chromium.org

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

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

10 years agoAdd back a static_cast<int32_t> to assembler-arm.cc to fix WebView build.
rmcilroy@chromium.org [Thu, 17 Jul 2014 10:34:59 +0000 (10:34 +0000)]
Add back a static_cast<int32_t> to assembler-arm.cc to fix WebView build.

The WebView Mac builder is having trouble with resolving set_at_offset with an
intptr_t argument to the correct overload. Add back the static_cast which
was present before r22293 to resolve this.

R=bmeurer@chromium.org

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

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

10 years agoSome fixes to avoid breakages when enabling out-of-line constant pools.
rmcilroy@chromium.org [Thu, 17 Jul 2014 10:03:30 +0000 (10:03 +0000)]
Some fixes to avoid breakages when enabling out-of-line constant pools.

Three fixes which are required to pass all the tests when  out-of-line constant
pools are enabled for Arm:

 - Invalidate embedded objects in optimized code when it is deoptimized such
   that the weak pointers in the constant pool array are cleared.  This prevents
   a CHECK(heap_->mark_compact_collector()->IsMarked(object)) error when a
   verifying weak pointers in a deoptimized code object's constant pool.
 - Modify LargeObjectSpace::Verify to allow constant pool arrays in the
   large object space.
 - Increase the 32bit stack size limit, since the constant pool pointer
   is now on every stack frame, causing the size of each stack frame to
   increase by one word, and causing deep-recursion-test to fail.

R=hpayer@chromium.org

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

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

10 years agoReland "Remove erroneous uses of CXX / CXX_target / CXX_host from gyp."
rmcilroy@chromium.org [Thu, 17 Jul 2014 09:56:58 +0000 (09:56 +0000)]
Reland "Remove erroneous uses of CXX / CXX_target / CXX_host from gyp."

The current gyp config tries to test whether the compiler is an arm / mips
compiler and whether it supports -m32 / -m64 based on a test within gyp.
Unfortunately CXX / CXX_target / CXX_host are no no longer set early enough
in gyp for this to work, and so all of these tests were actually being done
using "$(which g++)" rather than the appropriate CXX_target / CXX_host compiler.

This change removes these dynamic tests and instead bases the decisions on
knowledge of the host / target / v8_target architecture combination.  The
the -m32/-m64 flags are set based on host_cxx_is_biarch / target_cxx_is_biarch,
which are set to reasonable defaults of only ia32/x64 or clang compilers
being build for biarch support.  The host_cxx_is_biarch / target_cxx_is_biarch
variables can be overriden if required.

Original Review URL: https://codereview.chromium.org/382343003
TBR=jkummerow@chromium.org

BUG=384474
LOG=NO

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

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

10 years agoARM64: always restore regexp register cache after a C function call.
rodolph.perfetta@arm.com [Thu, 17 Jul 2014 09:55:48 +0000 (09:55 +0000)]
ARM64: always restore regexp register cache after a C function call.

BUG=v8:3444
TEST=mjsunit/regress/regress-regexp-nocase.js
LOG=N
R=yangguo@chromium.org

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

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

10 years agoRemove JSReceiver::GetPrototype and replace it with PrototypeIterator calls
jochen@chromium.org [Thu, 17 Jul 2014 09:44:37 +0000 (09:44 +0000)]
Remove JSReceiver::GetPrototype and replace it with PrototypeIterator calls

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

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

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

10 years agoRemove hole handling since holes cannot occur in JSObjects anymore.
verwaest@chromium.org [Thu, 17 Jul 2014 09:06:49 +0000 (09:06 +0000)]
Remove hole handling since holes cannot occur in JSObjects anymore.
The only case in which the hole can still occur, is in a pre-allocated PropertyCell in a GlobalObject. In that case it indicates that the property is absent.

BUG=
R=ishell@chromium.org

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

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

10 years agoGo to slow path when JSON.stringifying the global proxy.
yangguo@chromium.org [Thu, 17 Jul 2014 08:35:36 +0000 (08:35 +0000)]
Go to slow path when JSON.stringifying the global proxy.

R=verwaest@chromium.org

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

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

10 years agov8: GCTracer clean-up part 1.
ernstm@chromium.org [Thu, 17 Jul 2014 07:50:55 +0000 (07:50 +0000)]
v8: GCTracer clean-up part 1.

- Split GCTracer::~GCTracer into printing functions and update of variables
tracked on Heap.
- Clean-up recording of time, object size and memory size at the beginning and
end of GC.
- Consistently use enum notation in ScopeId.
- Disallow copy and assign for Scope and GCTracer.
- Remove unused stats on GCTracer.

R=hpayer@chromium.org
BUG=

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

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

10 years agoMark test-mark-compact/Promotion as PASS, FAIL on arm64.
yangguo@chromium.org [Thu, 17 Jul 2014 06:51:20 +0000 (06:51 +0000)]
Mark test-mark-compact/Promotion as PASS, FAIL on arm64.

BUG=v8:3446
LOG=N
TBR=hpayer@chromium.org

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

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

10 years agoFix ninja build.
yangguo@chromium.org [Wed, 16 Jul 2014 14:59:49 +0000 (14:59 +0000)]
Fix ninja build.

TBR=jochen@chromium.org

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

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

10 years agoShip ES6 Math functions.
yangguo@chromium.org [Wed, 16 Jul 2014 14:00:15 +0000 (14:00 +0000)]
Ship ES6 Math functions.

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

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

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

10 years agoFix PagedSpace size accounting.
yangguo@chromium.org [Wed, 16 Jul 2014 13:36:46 +0000 (13:36 +0000)]
Fix PagedSpace size accounting.

R=hpayer@chromium.org

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

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

10 years agov8: fix tracking of longest_step in IncrementalMarking.
ernstm@chromium.org [Wed, 16 Jul 2014 13:19:31 +0000 (13:19 +0000)]
v8: fix tracking of longest_step in IncrementalMarking.

longest_step is only output at the end of a mark-compact. We shouldn't
reset it after a Scavenge.

R=hpayer@chromium.org
BUG=

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

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

10 years agoChange ScriptCompiler::CompileOptions to allow for two 'cache' modes
vogelheim@chromium.org [Wed, 16 Jul 2014 12:18:33 +0000 (12:18 +0000)]
Change ScriptCompiler::CompileOptions to allow for two 'cache' modes
(parser or code) and to be explicit about cache consumption or production
(rather than making presence of cached_data imply one or the other.)

Also add a --cache flag to d8, to allow testing the functionality.

-----------------------------
API change

Reason: Currently, V8 supports a 'parser cache' for repeatedly executing the same script. We'd like to add a 2nd mode that would cache code, and would like to let the embedder decide which mode they chose (if any).

Note: Previously, the 'use cached data' property was implied by the presence of the cached data itself. (That is, kNoCompileOptions and source->cached_data != NULL.) That is no longer sufficient, since the presence of data is no longer sufficient to determine /which kind/ of data is present.

Changes from old behaviour:

- If you previously didn't use caching, nothing changes.
Example:
  v8::CompileUnbound(isolate, source, kNoCompileOptions);

- If you previously used caching, it worked like this:

  - 1st run:
  v8::CompileUnbound(isolate, source, kProduceToCache);
  Then, source->cached_data would contain the
  data-to-be cached. This remains the same, except you
  need to tell V8 which type of data you want.
  v8::CompileUnbound(isolate, source, kProduceParserCache);

  - 2nd run:
  v8::CompileUnbound(isolate, source, kNoCompileOptions);
  with source->cached_data set to the data you received in
  the first run. This will now ignore the cached data, and
  you need to explicitly tell V8 to use it:
  v8::CompileUnbound(isolate, source, kConsumeParserCache);
-----------------------------

BUG=
R=marja@chromium.org, yangguo@chromium.org

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

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

10 years agoRename [Load/Delete]ContextSlot for consistency after r22379.
mstarzinger@chromium.org [Wed, 16 Jul 2014 12:03:33 +0000 (12:03 +0000)]
Rename [Load/Delete]ContextSlot for consistency after r22379.

R=verwaest@chromium.org

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

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

10 years agoStore builtin index on the builtin code object.
yangguo@chromium.org [Wed, 16 Jul 2014 09:55:34 +0000 (09:55 +0000)]
Store builtin index on the builtin code object.

R=mvstanton@chromium.org

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

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

10 years agoProperly escape benchmark names when retrieving results.
machenbach@chromium.org [Wed, 16 Jul 2014 09:54:34 +0000 (09:54 +0000)]
Properly escape benchmark names when retrieving results.

This allows benchmarks to contain regular expression characters in their name.

BUG=
R=jkummerow@chromium.org

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

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

10 years agoRevert "Remove erroneous uses of CXX / CXX_target / CXX_host from gyp."
rmcilroy@chromium.org [Wed, 16 Jul 2014 09:53:32 +0000 (09:53 +0000)]
Revert "Remove erroneous uses of CXX / CXX_target / CXX_host from gyp."

This reverts commit r22425 for breaking the Arm debug builder.

BUG=384474
TBR=jkummerow@chromium.org

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

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

10 years agoMake ToPrimitive throw on symbol wrappers
rossberg@chromium.org [Wed, 16 Jul 2014 09:26:11 +0000 (09:26 +0000)]
Make ToPrimitive throw on symbol wrappers

R=mstarzinger@chromium.org
BUG=v8:3442
LOG=Y

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

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

10 years agoRemove erroneous uses of CXX / CXX_target / CXX_host from gyp.
rmcilroy@chromium.org [Wed, 16 Jul 2014 09:20:37 +0000 (09:20 +0000)]
Remove erroneous uses of CXX / CXX_target / CXX_host from gyp.

The current gyp config tries to test whether the compiler is an arm / mips
compiler and whether it supports -m32 / -m64 based on a test within gyp.
Unfortunately CXX / CXX_target / CXX_host are no no longer set early enough
in gyp for this to work, and so all of these tests were actually being done
using "$(which g++)" rather than the appropriate CXX_target / CXX_host compiler.

This change removes these dynamic tests and instead bases the decisions on
knowledge of the host / target / v8_target architecture combination.  The
the -m32/-m64 flags are set based on host_cxx_is_biarch / target_cxx_is_biarch,
which are set to reasonable defaults of only ia32/x64 or clang compilers
being build for biarch support.  The host_cxx_is_biarch / target_cxx_is_biarch
variables can be overriden if required.

BUG=384474
LOG=NO
R=jkummerow@chromium.org

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

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

10 years agoAllow benchmarks to provide the standard deviation.
machenbach@chromium.org [Wed, 16 Jul 2014 08:53:46 +0000 (08:53 +0000)]
Allow benchmarks to provide the standard deviation.

Some benchmarks include their own runner which provides an
overall average and a standard deviation. This enables
extraction of that value similar to the other measurements.

These benchmarks should only be run once. If a benchmarks
specifies multiple runs and provides a standard deviation,
a warning will be issued that makes the build fail on the
buildbot side.

TEST=python -m unittest run_benchmarks_test
BUG=393947
LOG=n
R=jkummerow@chromium.org

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

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

10 years ago[Auto-roll] Bump up version to 3.28.26.0
machenbach@chromium.org [Wed, 16 Jul 2014 08:42:52 +0000 (08:42 +0000)]
[Auto-roll] Bump up version to 3.28.26.0

TBR=machenbach@chromium.org

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

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

10 years agoDo not expose all timer events to the API callback.
yangguo@chromium.org [Wed, 16 Jul 2014 08:14:50 +0000 (08:14 +0000)]
Do not expose all timer events to the API callback.

R=fmeawad@chromium.org

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

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

10 years agoAdd script to bump up version on bleeding edge.
machenbach@chromium.org [Wed, 16 Jul 2014 07:57:13 +0000 (07:57 +0000)]
Add script to bump up version on bleeding edge.

The version.cc file will from now on be controlled on
bleeding edge and on trunk. The next version to use will
always be max(bleeding_edge_version, trunk_version) + 1.

The trunk and bleeding_edge versions are not semantically
tied together. The trunk branch can be used to make
independent point releases of bleeding_edge revisions.

The version on bleeding_edge will be increased if:
- the lkgr version is smaller than the version of the latest
  revision,
- the lkgr version is not a version change itself,
- the tree is not closed for maintenance.

This will allow chromium to refer directly to bleeding_edge
revisions of v8. The v8 versions will not be unique, but
they will change as often as possible, dependent on the lkgr
cycle time and the frequency this script is called.

BUG=391261
LOG=n
TEST=tools/push-to-trunk/script_test.py
TEST=tools/push-to-trunk/bump_up_version.py --dry_run
R=jarin@chromium.org

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

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

10 years agoError.captureStackTrace should define "stack" property as configurable.
yangguo@chromium.org [Wed, 16 Jul 2014 07:55:05 +0000 (07:55 +0000)]
Error.captureStackTrace should define "stack" property as configurable.

R=verwaest@chromium.org
BUG=393988
LOG=N

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

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

10 years agoVerify that source string matches serialized code.
yangguo@chromium.org [Wed, 16 Jul 2014 06:59:14 +0000 (06:59 +0000)]
Verify that source string matches serialized code.

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

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

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

10 years agoX87: Drop unnecessary receiver validity checks from {Load,Store}IC_Normal
weiliang.lin@intel.com [Wed, 16 Jul 2014 03:12:29 +0000 (03:12 +0000)]
X87: Drop unnecessary receiver validity checks from {Load,Store}IC_Normal

port r22391

original commit message:
   Drop unnecessary receiver validity checks from {Load,Store}IC_Normal.

   Since these builtins are used as handlers after a map check/dispatch, they don't need to check the receiver again.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoMIPS: Minor fixes to r22396
akos.palfi@imgtec.com [Tue, 15 Jul 2014 19:03:13 +0000 (19:03 +0000)]
MIPS: Minor fixes to r22396

BUG=
R=akos.palfi@imgtec.com

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

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

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

10 years agoMIPS: Fix r19500 register usage to match to ASSERT.
akos.palfi@imgtec.com [Tue, 15 Jul 2014 19:01:31 +0000 (19:01 +0000)]
MIPS: Fix r19500 register usage to match to ASSERT.

BUG=
R=akos.palfi@imgtec.com

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

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

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

10 years agoMIPS: Drop unnecessary receiver validity checks from {Load,Store}IC_Normal.
akos.palfi@imgtec.com [Tue, 15 Jul 2014 19:00:02 +0000 (19:00 +0000)]
MIPS: Drop unnecessary receiver validity checks from {Load,Store}IC_Normal.

Port r22391 (fe86010)

Original commit message:
Since these builtins are used as handlers after a map check/dispatch, they don't need to check the receiver again.

BUG=
R=akos.palfi@imgtec.com

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

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

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

10 years agoMIPS64: Reland r22082 "Replace HeapNumber as doublebox with an explicit MutableHeapN...
dusan.milosavljevic@rt-rk.com [Tue, 15 Jul 2014 16:57:04 +0000 (16:57 +0000)]
MIPS64:  Reland r22082 "Replace HeapNumber as doublebox with an explicit MutableHeapNumber.

Port r22129 (676bb14).

TEST=
BUG=
R=balazs.kilvady@imgtec.com, paul.lind@imgtec.com

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

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

10 years agoRevert "Remove failure tag.".
hpayer@chromium.org [Tue, 15 Jul 2014 12:22:38 +0000 (12:22 +0000)]
Revert "Remove failure tag.".

TBR=mstarzinger@chromium.org

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

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

10 years agoRemove failure tag.
hpayer@chromium.org [Tue, 15 Jul 2014 11:11:15 +0000 (11:11 +0000)]
Remove failure tag.

BUG=
R=mstarzinger@chromium.org

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

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

10 years agoFix assertion failure. Use Vector instead of List in code deserializer.
yangguo@chromium.org [Tue, 15 Jul 2014 11:01:03 +0000 (11:01 +0000)]
Fix assertion failure. Use Vector instead of List in code deserializer.

R=mvstanton@chromium.org

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

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

10 years agoAllow embedding of ConsString objects into code.
mstarzinger@chromium.org [Tue, 15 Jul 2014 10:51:12 +0000 (10:51 +0000)]
Allow embedding of ConsString objects into code.

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

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

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

10 years agoX87: Use the same registers for StoreIC and KeyedStoreIC.
weiliang.lin@intel.com [Tue, 15 Jul 2014 10:41:23 +0000 (10:41 +0000)]
X87: Use the same registers for StoreIC and KeyedStoreIC.

port r22387

original commit message:
  Use the same registers for StoreIC and KeyedStoreIC.

  Based on https://codereview.chromium.org/389283002 ("Use register parameters in ElementsTransitionGenerator") which must land first.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoEnum RegisterInfo renamed to ParameterIndices.
mvstanton@chromium.org [Tue, 15 Jul 2014 10:19:30 +0000 (10:19 +0000)]
Enum RegisterInfo renamed to ParameterIndices.

"Info" is information-poor.

R=mstarzinger@chromium.org

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

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

10 years agoDo not dump user source code in the code serializer.
yangguo@chromium.org [Tue, 15 Jul 2014 10:17:22 +0000 (10:17 +0000)]
Do not dump user source code in the code serializer.

R=mvstanton@chromium.org

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

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

10 years agoX87: Use register parameters in ElementsTransitionGenerator
weiliang.lin@intel.com [Tue, 15 Jul 2014 09:46:10 +0000 (09:46 +0000)]
X87: Use register parameters in ElementsTransitionGenerator

port r22384

original commit message:
 Use register parameters in ElementsTransitionGenerator
x

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoUnify the IsShortcutCandidate predicate.
mstarzinger@chromium.org [Tue, 15 Jul 2014 09:19:22 +0000 (09:19 +0000)]
Unify the IsShortcutCandidate predicate.

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

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

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

10 years agoFix up internalized strings after deserializing user code.
yangguo@chromium.org [Tue, 15 Jul 2014 08:46:47 +0000 (08:46 +0000)]
Fix up internalized strings after deserializing user code.

R=mvstanton@chromium.org

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

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

10 years agoMIPS: Use the same registers for StoreIC and KeyedStoreIC.
akos.palfi@imgtec.com [Tue, 15 Jul 2014 08:40:26 +0000 (08:40 +0000)]
MIPS: Use the same registers for StoreIC and KeyedStoreIC.

Port r22387 (ff76c666)

BUG=
R=mvstanton@chromium.org

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

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

10 years agoMIPS: Use register parameters in ElementsTransitionGenerator.
akos.palfi@imgtec.com [Tue, 15 Jul 2014 08:38:16 +0000 (08:38 +0000)]
MIPS: Use register parameters in ElementsTransitionGenerator.

Port r22384 (52caca20)

BUG=
R=mvstanton@chromium.org

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

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

10 years agoX87: Clean up and update const / var
weiliang.lin@intel.com [Tue, 15 Jul 2014 08:37:37 +0000 (08:37 +0000)]
X87: Clean up and update const / var

port r22379

original commit message:
This CL simplifies var / const by ensuring the behavior is consistent in itself,
and with regular JS semantics; between regular var/const and eval-ed var/const.

Legacy const is changed so that a declaration declares a configurable, but non-writable, slot,
 and the initializer reconfigures it (when possible) to non-configurable non-writable. This
 avoids the need for "the hole" as marker value in JSContextExtensionObjects and GlobalObjects.
Undefined is used instead.

BUG=
R=weiliang.lin@intel.com

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

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

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

10 years agoRemove sequential sweeping mode and perform lazy sweeping when no sweeper threads...
hpayer@chromium.org [Tue, 15 Jul 2014 08:24:44 +0000 (08:24 +0000)]
Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are active.

BUG=
R=jarin@chromium.org

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

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

10 years agofix the vtune support bug.
danno@chromium.org [Tue, 15 Jul 2014 08:13:42 +0000 (08:13 +0000)]
fix the vtune support bug.

During https://code.google.com/p/v8/source/detail?r=19925 checkin context bound scripts (Script)
and context unbound scripts (UnboundScript) are Distinguished.

And then Sven Panne helped to fix the vtune support compilation
error in https://code.google.com/p/v8/source/detail?r=20955.

The problem is that there is runtime error for vtune
support.
In our original implementation, we encapsulated and passed v8::internal::Script
to V8 API. It will leads to type check error for current V8::Script definition.

So I changed the Handle<Script> definition in JitCodeEvent
to Handle<UnboundScript>
 and add the corresponding change in log.cc.

If you do NOT prefer to change in include/v8.h. I think I can change the definition of
CodeEventLogger::LogRecordedBuffer(...) so that the we can pass the correct
type (JSFunction) as V8::Script to V8 API.

BUG=
R=danno@chromium.org, svenpanne@chromium.org

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

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

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

10 years agoFix flags for test cases involving arrow functions
marja@chromium.org [Tue, 15 Jul 2014 08:10:26 +0000 (08:10 +0000)]
Fix flags for test cases involving arrow functions

There are a lot of tests in cctest/test-parsing/ErrorsArrowFunctions,
so it is quite slow. This patch removes some flags to make it faster.
Removing three flags that don't affect the test brings down the run
time one order of magnitude, which is fast enough even for debug/ASAN
bots.

Also, remove the unneeded kArrowFunctions flag from
cctest/test-parsing/NoErrorsYieldSloppyAllModes

BUG=
R=marja@chromium.org

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

Patch from Adrián Pérez de Castro <aperez@igalia.com>.

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

10 years agoDrop unnecessary receiver validity checks from {Load,Store}IC_Normal.
jkummerow@chromium.org [Tue, 15 Jul 2014 08:07:25 +0000 (08:07 +0000)]
Drop unnecessary receiver validity checks from {Load,Store}IC_Normal.

Since these builtins are used as handlers after a map check/dispatch, they don't need to check the receiver again.

R=verwaest@chromium.org

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

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

10 years agoRemoved some copy-n-paste from StackFrame::Foo API entries.
svenpanne@chromium.org [Tue, 15 Jul 2014 06:59:42 +0000 (06:59 +0000)]
Removed some copy-n-paste from StackFrame::Foo API entries.

BUG=v8:3436
LOG=y
R=dcarney@chromium.org

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

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

10 years agoUse the same registers for StoreIC and KeyedStoreIC.
mvstanton@chromium.org [Mon, 14 Jul 2014 20:43:41 +0000 (20:43 +0000)]
Use the same registers for StoreIC and KeyedStoreIC.

Based on https://codereview.chromium.org/389283002 ("Use register parameters in ElementsTransitionGenerator") which must land first.

R=mstarzinger@chromium.org

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

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

10 years agoMIPS: Remove ASSERT since there are tons of different ASSIGN variants
kilvadyb@homejinni.com [Mon, 14 Jul 2014 18:53:49 +0000 (18:53 +0000)]
MIPS: Remove ASSERT since there are tons of different ASSIGN variants

Port r22382 (84a841f)

BUG=
R=akos.palfi@imgtec.com

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

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

10 years agoMIPS: This CL simplifies var / const by ensuring the behavior is consistent in itself...
kilvadyb@homejinni.com [Mon, 14 Jul 2014 18:22:34 +0000 (18:22 +0000)]
MIPS: This CL simplifies var / const by ensuring the behavior is consistent in itself, and with regular JS semantics; between regular var/const and eval-ed var/const.

Port r22379 (fb62653)

Original commit message:
Legacy const is changed so that a declaration declares a configurable, but non-writable, slot, and the initializer reconfigures it (when possible) to non-configurable non-writable. This avoids the need for "the hole" as marker value in JSContextExtensionObjects and GlobalObjects. Undefined is used instead.

BUG=
R=akos.palfi@imgtec.com

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

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

10 years agoUse register parameters in ElementsTransitionGenerator.
mvstanton@chromium.org [Mon, 14 Jul 2014 15:03:38 +0000 (15:03 +0000)]
Use register parameters in ElementsTransitionGenerator.

R=mstarzinger@chromium.org

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

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

10 years agoRemove PropertyAttributes from SetProperty
verwaest@chromium.org [Mon, 14 Jul 2014 14:52:24 +0000 (14:52 +0000)]
Remove PropertyAttributes from SetProperty

BUG=
R=ishell@chromium.org

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

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

10 years agoRemove ASSERT since there are tons of different ASSIGN variants
verwaest@chromium.org [Mon, 14 Jul 2014 14:42:33 +0000 (14:42 +0000)]
Remove ASSERT since there are tons of different ASSIGN variants

BUG=
R=rossberg@chromium.org

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

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

10 years agoReplace AddProperty by AddNamedProperty to speed up the common case
verwaest@chromium.org [Mon, 14 Jul 2014 14:05:30 +0000 (14:05 +0000)]
Replace AddProperty by AddNamedProperty to speed up the common case

BUG=
R=ishell@chromium.org

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

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

10 years agoFix d8 object printing (symbols, accessors)
rossberg@chromium.org [Mon, 14 Jul 2014 14:01:30 +0000 (14:01 +0000)]
Fix d8 object printing (symbols, accessors)

R=yangguo@chromium.org

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

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

10 years agoThis CL simplifies var / const by ensuring the behavior is consistent in itself,...
verwaest@chromium.org [Mon, 14 Jul 2014 14:01:04 +0000 (14:01 +0000)]
This CL simplifies var / const by ensuring the behavior is consistent in itself, and with regular JS semantics; between regular var/const and eval-ed var/const.

Legacy const is changed so that a declaration declares a configurable, but non-writable, slot, and the initializer reconfigures it (when possible) to non-configurable non-writable. This avoids the need for "the hole" as marker value in JSContextExtensionObjects and GlobalObjects. Undefined is used instead.

BUG=
R=rossberg@chromium.org

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

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

10 years agoReland "Include symbol properties in Object.{create,defineProperties}"
rossberg@chromium.org [Mon, 14 Jul 2014 14:00:33 +0000 (14:00 +0000)]
Reland "Include symbol properties in Object.{create,defineProperties}"

Second try; implementation that doesn't rely on external arrays.

R=mstarzinger@chromium.org
BUG=v8:3440

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

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

10 years agoFix error message about read-only symbol properties.
mstarzinger@chromium.org [Mon, 14 Jul 2014 13:57:10 +0000 (13:57 +0000)]
Fix error message about read-only symbol properties.

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

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

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

10 years agoRevert "Remove sequential sweeping mode and perform lazy sweeping when no sweeper...
titzer@chromium.org [Mon, 14 Jul 2014 13:02:36 +0000 (13:02 +0000)]
Revert "Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are active."

Reason: broke win64 build

This reverts commit 221bfdd2da2b6f3c1cbe77c5d197f1ea626b0bd2.

TBR=hpayer@chromium.org
BUG=

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

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

10 years agoRevert "Include symbol properties in Object.{create,defineProperties}"
rossberg@chromium.org [Mon, 14 Jul 2014 12:27:08 +0000 (12:27 +0000)]
Revert "Include symbol properties in Object.{create,defineProperties}"

TBR=mstarzinger@chromium.org
BUG=

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

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

10 years agoRemove sequential sweeping mode and perform lazy sweeping when no sweeper threads...
hpayer@chromium.org [Mon, 14 Jul 2014 11:31:22 +0000 (11:31 +0000)]
Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are active.

BUG=
R=jarin@chromium.org

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

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

10 years agoSerialize builtins by referencing canonical ones.
yangguo@chromium.org [Mon, 14 Jul 2014 11:22:03 +0000 (11:22 +0000)]
Serialize builtins by referencing canonical ones.

R=mvstanton@chromium.org

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

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

10 years agoInclude symbol properties in Object.{create,defineProperties}
rossberg@chromium.org [Mon, 14 Jul 2014 10:59:29 +0000 (10:59 +0000)]
Include symbol properties in Object.{create,defineProperties}

R=mstarzinger@chromium.org
BUG=v8:3440
LOG=Y

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

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

10 years agoUnify LookupIterator::GetRoot and Objects::GetRootMap
jochen@chromium.org [Mon, 14 Jul 2014 10:54:24 +0000 (10:54 +0000)]
Unify LookupIterator::GetRoot and Objects::GetRootMap

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

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

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

10 years agoEnsure that each profiling entry ends with a new line.
yangguo@chromium.org [Mon, 14 Jul 2014 10:47:40 +0000 (10:47 +0000)]
Ensure that each profiling entry ends with a new line.

Currently this does not happen if the message builder buffer is full.

R=jkummerow@chromium.org

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

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

10 years agoWhitespace change to trigger bots.
machenbach@chromium.org [Mon, 14 Jul 2014 09:27:07 +0000 (09:27 +0000)]
Whitespace change to trigger bots.

TBR=jochen@chromium.org
BUG=

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

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

10 years agoImplement handling of arrow functions in the parser
marja@chromium.org [Mon, 14 Jul 2014 07:55:45 +0000 (07:55 +0000)]
Implement handling of arrow functions in the parser

Arrow functions are parsed from ParseAssignmentExpression(). Handling the
parameter list is done by letting ParseConditionalExpression() parse a comma
separated list of identifiers, and it returns a tree of BinaryOperation nodes
with VariableProxy leaves, or a single VariableProxy if there is only one
parameter. When the arrow token "=>" is found, the VariableProxy nodes are
passed to ParseArrowFunctionLiteral(), which will then skip parsing the
paramaeter list. This avoids having to rewind when the arrow is found and
restart parsing the parameter list.

Note that the empty parameter list "()" is handled directly in
ParsePrimaryExpression(): after is has consumed the opening parenthesis,
if a closing parenthesis follows, then the only valid input is an arrow
function. In this case, ParsePrimaryExpression() directly calls
ParseArrowFunctionLiteral(), to avoid needing to return a sentinel value
to signal the empty parameter list. Because it will consume the body of
the arrow function, ParseAssignmentExpression() will not see the arrow
"=>" token as next, and return the already-parser expression.

The implementation is done in ParserBase, so it was needed to do some
additions to ParserBase, ParserTraits and PreParserTraits. Some of the
glue code can be removed later on when more more functionality is moved
to ParserBase.

Additionally, this adds a runtime flag "harmony_arrow_functions"
(disabled by default); enabling "harmony" will enable it as well.

BUG=v8:2700
LOG=N
R=marja@chromium.org

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

Patch from Adrián Pérez de Castro <aperez@igalia.com>.

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

10 years agoIntroduce a PrototypeIterator class and use it for prototype access
jochen@chromium.org [Mon, 14 Jul 2014 07:19:49 +0000 (07:19 +0000)]
Introduce a PrototypeIterator class and use it for prototype access

The new pattern is that we first get the map of the root of the
prototype chain using Object::GetMapRoot() and then walk up the
prototype chain using Map::prototype().

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

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

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

10 years agoWhiltespace change to trigger bots.
machenbach@chromium.org [Sat, 12 Jul 2014 16:56:32 +0000 (16:56 +0000)]
Whiltespace change to trigger bots.

TBR=jochen@chromium.org
BUG=

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

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

10 years agoWhiltespace change to trigger bots.
machenbach@chromium.org [Sat, 12 Jul 2014 15:27:18 +0000 (15:27 +0000)]
Whiltespace change to trigger bots.

TBR=jochen@chromium.org
BUG=

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

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

10 years agoFix arm64 deoptimization from double registers (reverts r20613).
jarin@chromium.org [Fri, 11 Jul 2014 19:30:09 +0000 (19:30 +0000)]
Fix arm64 deoptimization from double registers (reverts r20613).

This reverts "ARM64: Use pair memory access in deoptimizer entry", r20613. It does not really make sense to micro-optimize the deoptimizer as it is the ultra-slow path. Moreover, the original code was easier to read (in addition to being correct).

BUG=391313
LOG=N
R=ulan@chromium.org

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

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

10 years agoRevert "Use the same registers for StoreIC and KeyedStoreIC."
mvstanton@chromium.org [Fri, 11 Jul 2014 14:50:59 +0000 (14:50 +0000)]
Revert "Use the same registers for StoreIC and KeyedStoreIC."

This reverts commit r22358 due to release mode arm64 test failures.

TBR=mstarzinger@chromium.org

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

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

10 years agoUse the same registers for StoreIC and KeyedStoreIC.
mvstanton@chromium.org [Fri, 11 Jul 2014 13:53:19 +0000 (13:53 +0000)]
Use the same registers for StoreIC and KeyedStoreIC.

The x64 and ia32 platforms already did this, port to arm and arm64.

R=mstarzinger@chromium.org

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

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

10 years agoMIPS: slightly reduce deopt tables size.
kilvadyb@homejinni.com [Fri, 11 Jul 2014 13:49:33 +0000 (13:49 +0000)]
MIPS: slightly reduce deopt tables size.

Port r22305 (00a3740)

BUG=
R=dusan.milosavljevic@rt-rk.com

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

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

10 years agoWhitespace change to trigger bots.
machenbach@chromium.org [Fri, 11 Jul 2014 13:29:12 +0000 (13:29 +0000)]
Whitespace change to trigger bots.

BUG=
TBR=jochen@chromium.org

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

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

10 years agoUnbreak build by making old MSVC happy (hopefully).
svenpanne@chromium.org [Fri, 11 Jul 2014 12:55:56 +0000 (12:55 +0000)]
Unbreak build by making old MSVC happy (hopefully).

TBR=mstarzinger@chromium.org

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

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

10 years agoMade printing of special FP values portable.
svenpanne@chromium.org [Fri, 11 Jul 2014 12:42:37 +0000 (12:42 +0000)]
Made printing of special FP values portable.

R=mstarzinger@chromium.org

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

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

10 years agoWhitespace change to trigger bots.
machenbach@chromium.org [Fri, 11 Jul 2014 12:37:53 +0000 (12:37 +0000)]
Whitespace change to trigger bots.

BUG=
TBR=jochen@chromium.org

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

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

10 years agoWhitespace change to trigger bots.
machenbach@chromium.org [Fri, 11 Jul 2014 12:28:22 +0000 (12:28 +0000)]
Whitespace change to trigger bots.

BUG=
TBR=jochen@chromium.org

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

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

10 years agoMake UBSan happy.
svenpanne@chromium.org [Fri, 11 Jul 2014 12:12:58 +0000 (12:12 +0000)]
Make UBSan happy.

This involves avoiding signed multiplication overflow, shifting too
far and overflow during negation.

R=mstarzinger@chromium.org

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

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

10 years agoWhitespace change to trigger bots.
machenbach@chromium.org [Fri, 11 Jul 2014 11:54:33 +0000 (11:54 +0000)]
Whitespace change to trigger bots.

BUG=
TBR=jochen@chromium.org

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

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

10 years agoRevert "Remove sequential sweeping mode and perform lazy sweeping when no sweeper...
dslomov@chromium.org [Fri, 11 Jul 2014 11:33:57 +0000 (11:33 +0000)]
Revert "Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are active."

This reverts commit r22346 for breaking GC stress tests.

TBR=hpayer@chromium.org

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

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

10 years agoDisabling flakes.Filed 3433, 3434, 3435.
dslomov@chromium.org [Fri, 11 Jul 2014 11:20:37 +0000 (11:20 +0000)]
Disabling flakes.Filed 3433, 3434, 3435.

R=machenbach@chromium.org

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

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

10 years agoMIPS: update owners.
akos.palfi@imgtec.com [Fri, 11 Jul 2014 10:02:48 +0000 (10:02 +0000)]
MIPS: update owners.

BUG=
R=danno@chromium.org, plind44@gmail.com

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

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