platform/upstream/v8.git
13 years agoSupport dec_b instruction in ia32 and x64 disassembler.
kaznacheev@chromium.org [Thu, 23 Sep 2010 19:01:56 +0000 (19:01 +0000)]
Support dec_b instruction in ia32 and x64 disassembler.

Review URL: http://codereview.chromium.org/3412028

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

13 years agoAdd an assert to ensure we never allocate second empty fixed array.
vitalyr@chromium.org [Thu, 23 Sep 2010 12:49:59 +0000 (12:49 +0000)]
Add an assert to ensure we never allocate second empty fixed array.

Review URL: http://codereview.chromium.org/3442012

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

13 years agoFix copy-on-write assert by setting the new array map early.
vitalyr@chromium.org [Thu, 23 Sep 2010 12:23:35 +0000 (12:23 +0000)]
Fix copy-on-write assert by setting the new array map early.

BUG=876

Review URL: http://codereview.chromium.org/3466013

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

13 years agoFix getOwnPropertyDescriptor() support for index properties.
vegorov@chromium.org [Thu, 23 Sep 2010 11:25:01 +0000 (11:25 +0000)]
Fix getOwnPropertyDescriptor() support for index properties.

Add support for index properties with getters, setters or indexed interceptors.

For indexed interceptor case only fix crashes, do not guarantee any semantic soundness. Separate issue opened for this http://code.google.com/p/v8/issues/detail?id=877

BUG=http://code.google.com/p/v8/issues/detail?id=874

Review URL: http://codereview.chromium.org/3462005

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

13 years agoCleanup of contexts in the full code generator.
erik.corry@gmail.com [Thu, 23 Sep 2010 09:22:45 +0000 (09:22 +0000)]
Cleanup of contexts in the full code generator.
Review URL: http://codereview.chromium.org/3449004

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

13 years agoDynamically determine optimal instance size.
kaznacheev@chromium.org [Thu, 23 Sep 2010 09:15:26 +0000 (09:15 +0000)]
Dynamically determine optimal instance size.

The number of inobject properties used to be derived from the number
of this property assignments in the constructor (and increased by 2 to
allow for properties added later). This very often leads to wasted inobject
slots.

This patch reclaims some of the unused inobject space by the following method:
 - for each constructor function the first several objects are allocated using the initial
   ("generous) instance size estimation (this is called 'tracking phase').
 - during the tracking phase map transitions are tracked and actual property counts are collected.
 - at the end of the tracking phase instance sizes in the maps are decreased if necessary
   (starting with the function's initial map and traversing the transition tree).
 - all further allocation use more realistic instance size estimation.

Shrinking generously allocated objects without costly heap traversal is made possible
by initializing their inobject properties with one_pointer_filler_map (instead of undefined).

The initial slack for the generous allocation is increased from 2 to 6 which really helps some tests.

Review URL: http://codereview.chromium.org/3329019

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

13 years agoFix possible evaluation order problems.
vegorov@chromium.org [Thu, 23 Sep 2010 08:27:51 +0000 (08:27 +0000)]
Fix possible evaluation order problems.

We should not allow handle dereference and GC inside the same expression because order of subexpression evalution are not defined.

Review URL: http://codereview.chromium.org/3398014

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

13 years agoUnuse labels when bailing out of StubCompiler methods.
kaznacheev@chromium.org [Thu, 23 Sep 2010 08:06:19 +0000 (08:06 +0000)]
Unuse labels when bailing out of StubCompiler methods.

There are 3 methods where early return happen before the
miss label is bound. This is harmless in Release mode,
in Debug an assertion fails.

Review URL: http://codereview.chromium.org/3405022

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

13 years agoFix a build for Win64 with VS2008.
antonm@chromium.org [Wed, 22 Sep 2010 13:57:00 +0000 (13:57 +0000)]
Fix a build for Win64 with VS2008.

It complaints of type conversions.

Review URL: http://codereview.chromium.org/3396015

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

13 years agoFix Win64 build with VS2008.
antonm@chromium.org [Wed, 22 Sep 2010 13:24:14 +0000 (13:24 +0000)]
Fix Win64 build with VS2008.

strlen returns size_t and VS2008 is now pretty picky about that.

Review URL: http://codereview.chromium.org/3384019

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

13 years agoRegExp: Fix caching to correctly set lastIndex.
lrn@chromium.org [Wed, 22 Sep 2010 11:22:57 +0000 (11:22 +0000)]
RegExp: Fix caching to correctly set lastIndex.

BUG: 52801

Review URL: http://codereview.chromium.org/3389022

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

13 years agoPrepare push to trunk. Now working on version 2.4.6.
fschneider@chromium.org [Wed, 22 Sep 2010 09:35:56 +0000 (09:35 +0000)]
Prepare push to trunk. Now working on version 2.4.6.

Review URL: http://codereview.chromium.org/3466009

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

13 years agoTry fix win64 build.
vitalyr@chromium.org [Tue, 21 Sep 2010 13:04:42 +0000 (13:04 +0000)]
Try fix win64 build.

TBR=erik.corry

Review URL: http://codereview.chromium.org/3446015

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

13 years agoCustom call IC for Math.floor.
vitalyr@chromium.org [Tue, 21 Sep 2010 12:54:12 +0000 (12:54 +0000)]
Custom call IC for Math.floor.

Review URL: http://codereview.chromium.org/3327022

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

13 years agoUse //@ sourceURL when formatting stack trace
yurys@chromium.org [Mon, 20 Sep 2010 15:55:28 +0000 (15:55 +0000)]
Use //@ sourceURL when formatting stack trace

BUG=672
Review URL: http://codereview.chromium.org/3444011

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

13 years agoGenerate inline code for contextual loads.
vitalyr@chromium.org [Mon, 20 Sep 2010 13:50:27 +0000 (13:50 +0000)]
Generate inline code for contextual loads.

Contextual load requires only a map check followed by a cell hole
check so we can generate pretty compact code for that. The fact that
we have inlined code is marked by mov ecx, offset instruction after
the IC call. Inlining is only enabled inside loops and in non-builtin
functions.

The generated code size increase is about 3%. This descreased the
pc-to-code cache hit rate in some of the benchmarks that trigger
GC. To compensate we now have 4 times as much entries in the cache.

Review URL: http://codereview.chromium.org/3402014

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

13 years agoFix ProfileNodeFindOrAddChildForSameFunction test on Win32 debug.
mikhail.naganov@gmail.com [Mon, 20 Sep 2010 12:25:45 +0000 (12:25 +0000)]
Fix ProfileNodeFindOrAddChildForSameFunction test on Win32 debug.

Test was failing is due to a fact that MSVC in debug mode uses
separate instances for identical string literals.

TBR=sgjesse@chromium.org

Review URL: http://codereview.chromium.org/3381013

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

13 years agoFix build-breakage on Mac. Initial variable eventhough it is initialized in all reach...
floitschV8@gmail.com [Mon, 20 Sep 2010 10:58:41 +0000 (10:58 +0000)]
Fix build-breakage on Mac. Initial variable eventhough it is initialized in all reachable branches.
Review URL: http://codereview.chromium.org/3471001

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

13 years agoChanged the RegExp benchmark to exercise the regexp engine on different
sandholm@chromium.org [Mon, 20 Sep 2010 10:36:21 +0000 (10:36 +0000)]
Changed the RegExp benchmark to exercise the regexp engine on different
inputs by scrambling the input strings.
Review URL: http://codereview.chromium.org/3435012

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

13 years agoShow RegExp calls in the profile.
mikhail.naganov@gmail.com [Mon, 20 Sep 2010 09:29:12 +0000 (09:29 +0000)]
Show RegExp calls in the profile.

It turns out they were filtered out. But when I unfiltered them, I
discovered another issue: when DevTools run, regexp literals get
recompiled each time they called (looks like this is concerned with
switching to full compiler), so I ended up having multiple entries for
the same regexp. To fix this, I changed the way of how code entries
equivalence is considered.

BUG=crbug/55999
TEST=cctest/test-profile-generator/ProfileNodeFindOrAddChildForSameFunction
(the test isn't for the whole issue, but rather for equivalence testing)

Review URL: http://codereview.chromium.org/3426008

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

13 years agoAdded precision mode to fast-dtoa.
floitschV8@gmail.com [Mon, 20 Sep 2010 09:18:00 +0000 (09:18 +0000)]
Added precision mode to fast-dtoa.
Review URL: http://codereview.chromium.org/2000004

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

13 years agoRemove unused variable from Scanner class.
lrn@chromium.org [Mon, 20 Sep 2010 08:43:35 +0000 (08:43 +0000)]
Remove unused variable from Scanner class.

BUG=None
TEST=compiles

Patch from Thiago Farina <tfarina@chromium.org>

Review URL: http://codereview.chromium.org/3413015

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

13 years agoMake preparsing data reusable.
lrn@chromium.org [Fri, 17 Sep 2010 12:55:27 +0000 (12:55 +0000)]
Make preparsing data reusable.
Fix bug in writing symbol ids over 128.

Review URL: http://codereview.chromium.org/3416010

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

13 years agoAdd missing x87 instructions fisttp and fst to the disassembler.
fschneider@chromium.org [Fri, 17 Sep 2010 12:08:50 +0000 (12:08 +0000)]
Add missing x87 instructions fisttp and fst to the disassembler.

Review URL: http://codereview.chromium.org/3408011

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

13 years agoFix direct loading of global function prototypes:
vitalyr@chromium.org [Fri, 17 Sep 2010 09:56:47 +0000 (09:56 +0000)]
Fix direct loading of global function prototypes:
We must also check the current context has not changed.

The bug reported by Florian.

Review URL: http://codereview.chromium.org/3410014

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

13 years agoMake some runtime arguments checks be RUNTIME_ASSERT, not ASSERT.
lrn@chromium.org [Fri, 17 Sep 2010 08:34:53 +0000 (08:34 +0000)]
Make some runtime arguments checks be RUNTIME_ASSERT, not ASSERT.

Review URL: http://codereview.chromium.org/3411013

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

13 years agoAdd breakOnCaughtException and breakOnUncaughtException flags
peter.rybin@gmail.com [Thu, 16 Sep 2010 21:40:42 +0000 (21:40 +0000)]
Add breakOnCaughtException and breakOnUncaughtException flags

Review URL: http://codereview.chromium.org/3275011

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

13 years agoPrevent inline constructor generation when duplicate properties are present in the...
kaznacheev@chromium.org [Thu, 16 Sep 2010 10:55:37 +0000 (10:55 +0000)]
Prevent inline constructor generation when duplicate properties are present in the constructor.

Currenly the constructor like this:
function f() {
  this.a = 0;
  this.a = 1;
  this.a = 2;
}
creates a map with duplicate desciptors which is bad in many ways.

Review URL: http://codereview.chromium.org/3434004

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

13 years agoFix a regression in character-at stub when doing a keyed load on a string.
fschneider@chromium.org [Thu, 16 Sep 2010 09:18:08 +0000 (09:18 +0000)]
Fix a regression in character-at stub when doing a keyed load on a string.

Loading from out-of-range has to go to the runtime system to check if there
exists a property with that index in the prototype.

Review URL: http://codereview.chromium.org/3410011

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

13 years agoClean up the insertion of nops (signalling non-inlined loads and
kasperl@chromium.org [Thu, 16 Sep 2010 09:10:34 +0000 (09:10 +0000)]
Clean up the insertion of nops (signalling non-inlined loads and
stores) in the full codegens.
Review URL: http://codereview.chromium.org/3431010

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

13 years agoReally fix Mac build, and lint.
mikhail.naganov@gmail.com [Thu, 16 Sep 2010 08:51:13 +0000 (08:51 +0000)]
Really fix Mac build, and lint.

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

13 years agoFix compilation issue on Mac
mikhail.naganov@gmail.com [Thu, 16 Sep 2010 08:39:27 +0000 (08:39 +0000)]
Fix compilation issue on Mac

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

13 years agoEnhance SafeStackFrameIterator to avoid triggering assertions in debug mode.
mikhail.naganov@gmail.com [Thu, 16 Sep 2010 08:23:34 +0000 (08:23 +0000)]
Enhance SafeStackFrameIterator to avoid triggering assertions in debug mode.

When running profiling in debug mode, several assertions in frame
iterators that are undoubtedly useful when iterator is started from a
VM thread in a known "good" state, may fail when running over a stack
of a suspended VM thread. This patch makes SafeStackFrameIterator
to proactively check addresses and bail out from iteration early,
before an assertion will be triggered.

BUG=crbug/55565

Review URL: http://codereview.chromium.org/3436006

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

13 years agoFix x64 compilation error. Patch from tfarina@chromium.org
mikhail.naganov@gmail.com [Thu, 16 Sep 2010 08:17:46 +0000 (08:17 +0000)]
Fix x64 compilation error. Patch from tfarina@chromium.org

http://codereview.chromium.org/3442004/show

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

13 years agoX64: Templating Smi-macros to use both Label and NearLabel.
lrn@chromium.org [Thu, 16 Sep 2010 07:24:15 +0000 (07:24 +0000)]
X64: Templating Smi-macros to use both Label and NearLabel.
Added some more uses of NearLabel.

Review URL: http://codereview.chromium.org/3381005

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

13 years agoMade the use of past tense more consistent in change log.
erik.corry@gmail.com [Wed, 15 Sep 2010 12:17:41 +0000 (12:17 +0000)]
Made the use of past tense more consistent in change log.
Review URL: http://codereview.chromium.org/3425005

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

13 years agoAdd support for near labels.
ricow@chromium.org [Wed, 15 Sep 2010 11:43:12 +0000 (11:43 +0000)]
Add support for near labels.

This change introduces near labels in the assembler, allowing us to
uptimize forward jumps (conditional and unconditional) if we can
guarantee that the jump is witin range -128 to +127.

I changed a large fractions of the existing Labels to NearLabels, and
left out cases where it was not immediately clear if it could be used
or not (not immediately clear means labels covering a large code
block, or used in function calls which we could potentially change to
accept near labels).

Review URL: http://codereview.chromium.org/3388004

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

13 years agoPrepare push to trunk. We are now working on version 2.4.5.
erik.corry@gmail.com [Wed, 15 Sep 2010 10:58:25 +0000 (10:58 +0000)]
Prepare push to trunk.  We are now working on version 2.4.5.
Review URL: http://codereview.chromium.org/3429006

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

13 years agoMade predata smaller by storing symbol data in variable length base-128.
lrn@chromium.org [Wed, 15 Sep 2010 10:54:35 +0000 (10:54 +0000)]
Made predata smaller by storing symbol data in variable length base-128.
Remove position from symbol data - they must come in the correct order anyway.

Review URL: http://codereview.chromium.org/3384003

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

13 years agoReplace 2 ARM ldr instructions with one ldrd in the code generated
erik.corry@gmail.com [Wed, 15 Sep 2010 10:22:55 +0000 (10:22 +0000)]
Replace 2 ARM ldr instructions with one ldrd in the code generated
for a SubStringStub and StringCompareStub in the ARM backend.  This
is a commit of http://codereview.chromium.org/3341012 for Andreas
Anyuru.
Review URL: http://codereview.chromium.org/3387003

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

13 years agoMake the CompareStub and the UnaryOpStub accept smi inputs.
fschneider@chromium.org [Wed, 15 Sep 2010 10:14:25 +0000 (10:14 +0000)]
Make the CompareStub and the UnaryOpStub accept smi inputs.

The stubs get an additional flag for including the smi code
inside the stub. This allows us to generate more compact code
if we don't want to inline the smi case outside the stub.

Review URL: http://codereview.chromium.org/3388005

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

13 years agoAttempt to collect more garbage before panicking with out of memory.
antonm@chromium.org [Tue, 14 Sep 2010 17:48:56 +0000 (17:48 +0000)]
Attempt to collect more garbage before panicking with out of memory.

Currently weak handles retain an object for another GC round (oftem times,
major GC round.)  Instrumenting Chromium shows that navigation leaves
many global objects which are only collected in next go.  Let's
attempt to collect more garbage when approacing OOM condition.

Review URL: http://codereview.chromium.org/3327021

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

13 years agoAdd a few missing nops to signal no inlined code was generated.
vitalyr@chromium.org [Tue, 14 Sep 2010 16:38:02 +0000 (16:38 +0000)]
Add a few missing nops to signal no inlined code was generated.

Review URL: http://codereview.chromium.org/3399005

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

13 years agoAllow List::sort, with an integer comparison function, to sort 64-bit pointers in...
whesse@chromium.org [Tue, 14 Sep 2010 15:16:32 +0000 (15:16 +0000)]
Allow List::sort, with an integer comparison function, to sort 64-bit pointers in profile-generator.  Change a static const int member to be declared and defined only inside the class declaration in class Runtime.
Review URL: http://codereview.chromium.org/3424002

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

13 years agoAdd support for abortion in v8::OutputStream.
mikhail.naganov@gmail.com [Tue, 14 Sep 2010 15:11:24 +0000 (15:11 +0000)]
Add support for abortion in v8::OutputStream.

It's a good idea to allow receiver to interrupt data transmission.

Review URL: http://codereview.chromium.org/3409002

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

13 years agoMove inlined function declarations and support from codegen.* to runtime.*.
whesse@chromium.org [Tue, 14 Sep 2010 14:52:53 +0000 (14:52 +0000)]
Move inlined function declarations and support from codegen.* to runtime.*.
Review URL: http://codereview.chromium.org/3293002

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

13 years agoImplement heap snapshots serialization into JSON. API is designed
mikhail.naganov@gmail.com [Tue, 14 Sep 2010 11:49:06 +0000 (11:49 +0000)]
Implement heap snapshots serialization into JSON. API is designed
to avoid storing serialized snapshot on VM, instead it is emitted
using output stream interface.

The size of JSON emitted is roughly equal to used heap size
(when stored as an ASCII string).

Now a whole heap snapshot can be serialized and transmitted outside
VM. This makes possible:
  - implementing non-async UI for heap snapshots inspection;
  - storing heap snapshots for further inspection;
  - remote profiling (we can even implement a snapshotting mode
    where a snapshot isn't even stored in VM, only transmitted --
    good for mobile devices);
  - creating tools for outside heap snapshots processing, e.g.
    converting to HPROF.

Review URL: http://codereview.chromium.org/3311028

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

13 years agoRecalibrate benchmarks.
sandholm@chromium.org [Mon, 13 Sep 2010 13:55:26 +0000 (13:55 +0000)]
Recalibrate benchmarks.
Review URL: http://codereview.chromium.org/3300031

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

13 years agoPrepare push to trunk. We are now working on version 2.4.4.
sgjesse@chromium.org [Mon, 13 Sep 2010 09:10:47 +0000 (09:10 +0000)]
Prepare push to trunk. We are now working on version 2.4.4.
Review URL: http://codereview.chromium.org/3308028

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

13 years agoImplement for-in cache validity checking in the full codegen on IA-32.
kasperl@chromium.org [Mon, 13 Sep 2010 06:13:20 +0000 (06:13 +0000)]
Implement for-in cache validity checking in the full codegen on IA-32.
Review URL: http://codereview.chromium.org/3376003

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

13 years agoHandle both global and local variables potentially shadowed by
ager@chromium.org [Fri, 10 Sep 2010 10:57:07 +0000 (10:57 +0000)]
Handle both global and local variables potentially shadowed by
eval-introduced variables in full-codegen.

Make sure that x64 assembler records source positions for calls.
Review URL: http://codereview.chromium.org/3357022

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

13 years agoMove string-search functions to separate file.
lrn@chromium.org [Fri, 10 Sep 2010 09:22:41 +0000 (09:22 +0000)]
Move string-search functions to separate file.

Review URL: http://codereview.chromium.org/3291021

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

13 years agoFix bug in Array.prototype.indexOf/lastIndexOf when called on non-sparse non-arrays.
lrn@chromium.org [Fri, 10 Sep 2010 08:21:01 +0000 (08:21 +0000)]
Fix bug in Array.prototype.indexOf/lastIndexOf when called on non-sparse non-arrays.

Review URL: http://codereview.chromium.org/3358025

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

13 years agoCosmetic change, list author names in AUTHORS alphabetically.
ricow@chromium.org [Fri, 10 Sep 2010 08:12:34 +0000 (08:12 +0000)]
Cosmetic change, list author names in AUTHORS alphabetically.

Review URL: http://codereview.chromium.org/3311025

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

13 years agoAdded Michael Smith to Authors file (author of revision 5436).
lrn@chromium.org [Fri, 10 Sep 2010 07:08:03 +0000 (07:08 +0000)]
Added Michael Smith to Authors file (author of revision 5436).

Review URL: http://codereview.chromium.org/3327013

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

13 years agomake Date.parse properly handle TZ offsets
lrn@chromium.org [Fri, 10 Sep 2010 07:00:28 +0000 (07:00 +0000)]
make Date.parse properly handle TZ offsets

This makes, e.g., Date.parse("2010-08-31T22:35:36-09:00") work as
expected. Without this change, the "-9:00" timezone-offset portion
causes V8 to fail to properly parse that string into a date.
BUG=http://code.google.com/p/v8/issues/detail?id=857
TEST=Try Date.parse("2010-08-31T22:35:36-09:00") and make sure
that it gets parsed without errors and does not return NaN.

Review URL: http://codereview.chromium.org/3318017

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

13 years agoLanding 3338012: Move a function below to private section.
peter.rybin@gmail.com [Thu, 9 Sep 2010 17:45:21 +0000 (17:45 +0000)]
Landing 3338012: Move a function below to private section.

Review URL: http://codereview.chromium.org/3295023

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

13 years agoCustom call IC for String.fromCharCode.
vitalyr@chromium.org [Thu, 9 Sep 2010 13:38:01 +0000 (13:38 +0000)]
Custom call IC for String.fromCharCode.

Review URL: http://codereview.chromium.org/3291015

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

13 years agoAdd sparse array handling to Array.protoype.indexOf/lastIndexOf.
lrn@chromium.org [Thu, 9 Sep 2010 12:57:32 +0000 (12:57 +0000)]
Add sparse array handling to Array.protoype.indexOf/lastIndexOf.

Review URL: http://codereview.chromium.org/3132046

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

13 years agoAvoid collecting symbol info for one-off preparsing.
lrn@chromium.org [Thu, 9 Sep 2010 11:49:21 +0000 (11:49 +0000)]
Avoid collecting symbol info for one-off preparsing.

Review URL: http://codereview.chromium.org/3356010

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

13 years agoHandle global variables potentially shadowed by eval-introduced
ager@chromium.org [Thu, 9 Sep 2010 10:44:24 +0000 (10:44 +0000)]
Handle global variables potentially shadowed by eval-introduced
variables in full-codegen.

Review URL: http://codereview.chromium.org/3295022

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

13 years agoChange threshold for using ComplexIndexOf (using Boyer-Moore string
sandholm@chromium.org [Wed, 8 Sep 2010 12:57:50 +0000 (12:57 +0000)]
Change threshold for using ComplexIndexOf (using Boyer-Moore string
search) from 5 to 7.
Review URL: http://codereview.chromium.org/3294016

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

13 years agoStore pattern.length() in a local.
sandholm@chromium.org [Wed, 8 Sep 2010 11:05:54 +0000 (11:05 +0000)]
Store pattern.length() in a local.
Review URL: http://codereview.chromium.org/3300020

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

13 years agoDon't generate preparse data if lazy-flag is false.
lrn@chromium.org [Wed, 8 Sep 2010 10:33:15 +0000 (10:33 +0000)]
Don't generate preparse data if lazy-flag is false.

Review URL: http://codereview.chromium.org/3304012

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

13 years agoPrepare push of version 2.4.2 to trunk.
ager@chromium.org [Wed, 8 Sep 2010 06:20:09 +0000 (06:20 +0000)]
Prepare push of version 2.4.2 to trunk.
Review URL: http://codereview.chromium.org/3324010

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

13 years agoMove stack check below while statement.
podivilov@chromium.org [Tue, 7 Sep 2010 15:34:16 +0000 (15:34 +0000)]
Move stack check below while statement.

Call to Runtime_StackGuard should be generated after loop body.
Otherwise, break position will be the previous position before
loop statement.

Review URL: http://codereview.chromium.org/3302012

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

13 years agoAvoid pushing arguments twice in GenericBinaryOpStub.
kaznacheev@chromium.org [Tue, 7 Sep 2010 13:33:40 +0000 (13:33 +0000)]
Avoid pushing arguments twice in GenericBinaryOpStub.

Under some conditions (ADD, non-number arguments passed in registers)
GenerateRegisterArgumentsPush was called twice and the stack broke.

Review URL: http://codereview.chromium.org/3290012

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

13 years agoAvoid (some) symbol lookups at parse time if preparse data is available.
lrn@chromium.org [Tue, 7 Sep 2010 12:52:16 +0000 (12:52 +0000)]
Avoid (some) symbol lookups at parse time if preparse data is available.

Review URL: http://codereview.chromium.org/3308010

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

13 years agoRemoving a wrong check.
serya@chromium.org [Tue, 7 Sep 2010 11:32:20 +0000 (11:32 +0000)]
Removing a wrong check.

A strings which represents an array index with length 8 and 9 digits do not pass this check. However generated hash is valid.

Review URL: http://codereview.chromium.org/3295017

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

13 years agoFix the ambigous Operand(0) for newer C++ compilers.
whesse@chromium.org [Tue, 7 Sep 2010 11:09:45 +0000 (11:09 +0000)]
Fix the ambigous Operand(0) for newer C++ compilers.
Review URL: http://codereview.chromium.org/3351010/show
Committed for Thiago Farina <tfarina@chromium.org>

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

13 years agoEnsure that empty descriptor array is marked before visiting any maps in marking...
vegorov@chromium.org [Tue, 7 Sep 2010 09:15:15 +0000 (09:15 +0000)]
Ensure that empty descriptor array is marked before visiting any maps in marking phase.

Review URL: http://codereview.chromium.org/3318014

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

13 years agoAdd test for calls to native runtime functions in extensions.
whesse@chromium.org [Mon, 6 Sep 2010 12:54:41 +0000 (12:54 +0000)]
Add test for calls to native runtime functions in extensions.
Review URL: http://codereview.chromium.org/3356007

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

13 years agoTurn visitor_id into a byte field and free back one word in Map.
vitalyr@chromium.org [Mon, 6 Sep 2010 12:50:11 +0000 (12:50 +0000)]
Turn visitor_id into a byte field and free back one word in Map.

Review URL: http://codereview.chromium.org/3364007

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

13 years agoPrepare push to trunk. Now working on version 2.4.2.
kmillikin@chromium.org [Mon, 6 Sep 2010 11:31:07 +0000 (11:31 +0000)]
Prepare push to trunk. Now working on version 2.4.2.

Review URL: http://codereview.chromium.org/3305012

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

13 years agoImprove performance of Error.stack when stack contains local functions.
sgjesse@chromium.org [Mon, 6 Sep 2010 09:10:11 +0000 (09:10 +0000)]
Improve performance of Error.stack when stack contains local functions.

BUG=http://crbug.com/53303
TEST=Use the test case attached in the bug report.

Patch by Xianzhu Wang <wangxianzhu@google.com>

Review URL: http://codereview.chromium.org/3167042

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

13 years agoAdd and use AsciiAlphaToLower. Move RemoveLast test. Add Clear test. This is a...
erik.corry@gmail.com [Fri, 3 Sep 2010 12:59:52 +0000 (12:59 +0000)]
Add and use AsciiAlphaToLower.  Move RemoveLast test.  Add Clear test. This is a commit of codereview.chromium.org/3307003/show http://codereview.chromium.org/3312007/show and http://codereview.chromium.org/3341002/show for tfarina

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

13 years agoFix compilation on 64-bit Windows (a third try)
sgjesse@chromium.org [Fri, 3 Sep 2010 12:56:08 +0000 (12:56 +0000)]
Fix compilation on 64-bit Windows (a third try)
Review URL: http://codereview.chromium.org/3295014

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

13 years agoFix compilation on 64-bit Windows (a second try)
sgjesse@chromium.org [Fri, 3 Sep 2010 12:31:43 +0000 (12:31 +0000)]
Fix compilation on 64-bit Windows (a second try)

TBR=pmehta@chromium.org
Review URL: http://codereview.chromium.org/3290009

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

13 years agoHandle argument conversion in StringAddStub.
vitalyr@chromium.org [Fri, 3 Sep 2010 12:10:44 +0000 (12:10 +0000)]
Handle argument conversion in StringAddStub.

In case one of the arguments is known to be a string we emit a few
fast conversion attempts for the other.  This allows using the
StringAddStub instead of STRING_ADD_{LEFT,RIGHT} builtins.

Review URL: http://codereview.chromium.org/3338007

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

13 years agoFix compilation on 64-bit Windows
sgjesse@chromium.org [Fri, 3 Sep 2010 12:00:05 +0000 (12:00 +0000)]
Fix compilation on 64-bit Windows

TBR=pmehta@chromium.org
Review URL: http://codereview.chromium.org/3333015

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

13 years agoAdd API callback for tracking allocated memory
sgjesse@chromium.org [Fri, 3 Sep 2010 11:31:58 +0000 (11:31 +0000)]
Add API callback for tracking allocated memory

Allows the host application to provide a mechanism for notification and custom logging through a callback (set through the API V8::AddMemoryAllocationCallback and removed through V8::RemoveMemoryAllocationCallback), when V8 allocates ro frees memory.

This replaces the current histogram data "V8.ExecutableMemoryMax" by allowing usage data to be logged by the application as required rather than always through V8.

BUG=http://crbug.com/54222
TEST=Set the callback function with the API and cause V8 to allocate memory.

Patch by Paul Mehta <pmehta@chromium.org>

Review URL: http://codereview.chromium.org/3329006

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

13 years agoClang compatibility changes. This is a commit of http://codereview.chromium.org...
erik.corry@gmail.com [Thu, 2 Sep 2010 10:18:44 +0000 (10:18 +0000)]
Clang compatibility changes.  This is a commit of codereview.chromium.org/3364002 for coldredlemur

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

13 years agoARM: Handle bitwise operations with literal Smi for 32bits integers without calling...
erik.corry@gmail.com [Thu, 2 Sep 2010 08:30:52 +0000 (08:30 +0000)]
ARM: Handle bitwise operations with literal Smi for 32bits integers without calling the GenericBinaryOpStub.  Refactored and updated the routine to convert a signed int to a double.  This is a commit of codereview.chromium.org/3247008 for Rodolph Perfetta.

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

13 years agoFix parsing of /**/--> on first line of input.
lrn@chromium.org [Thu, 2 Sep 2010 07:36:30 +0000 (07:36 +0000)]
Fix parsing of /**/--> on first line of input.

BUG=53548
TEST=

Review URL: http://codereview.chromium.org/3330001

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

13 years agoFix bug in JSON character quote table.
lrn@chromium.org [Thu, 2 Sep 2010 07:35:35 +0000 (07:35 +0000)]
Fix bug in JSON character quote table.

Review URL: http://codereview.chromium.org/3349006

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

13 years agoMake JSON.stringify not quote non-ASCII characters. Fix bug 855.
lrn@chromium.org [Thu, 2 Sep 2010 07:09:28 +0000 (07:09 +0000)]
Make JSON.stringify not quote non-ASCII characters. Fix bug 855.

Review URL: http://codereview.chromium.org/3336001

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

13 years agoia32 StringAddStub: fast two character case.
vitalyr@chromium.org [Wed, 1 Sep 2010 17:20:36 +0000 (17:20 +0000)]
ia32 StringAddStub: fast two character case.

Review URL: http://codereview.chromium.org/3327001

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

13 years agoDon't access PagedSpace::executability after the object has been destroyed
yurys@chromium.org [Wed, 1 Sep 2010 17:01:58 +0000 (17:01 +0000)]
Don't access PagedSpace::executability after the object has been destroyed

Review URL: http://codereview.chromium.org/3344001

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

13 years agoRemove CodeGenerator::PatchInlineRuntimeEntry and replace its single use in test...
whesse@chromium.org [Wed, 1 Sep 2010 13:13:31 +0000 (13:13 +0000)]
Remove CodeGenerator::PatchInlineRuntimeEntry and replace its single use in test-log-stack-tracer.cc with an alternative implementation.
Review URL: http://codereview.chromium.org/3311002

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

13 years agoFix memory overrun possibility during tick samples processing.
mikhail.naganov@gmail.com [Wed, 1 Sep 2010 13:08:39 +0000 (13:08 +0000)]
Fix memory overrun possibility during tick samples processing.

This really can cause crash described in crbug/51919.

BUG=51919
TEST=NONE

Review URL: http://codereview.chromium.org/3334001

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

13 years agoInitialize all VariableProxy fields in its constructor
yurys@chromium.org [Wed, 1 Sep 2010 12:25:46 +0000 (12:25 +0000)]
Initialize all VariableProxy fields in its constructor
Review URL: http://codereview.chromium.org/3330002

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

13 years agoPrepare push of version 2.4.0 to trunk. Now working on version 2.4.1.
ricow@chromium.org [Wed, 1 Sep 2010 06:37:49 +0000 (06:37 +0000)]
Prepare push of version 2.4.0 to trunk. Now working on version 2.4.1.

Review URL: http://codereview.chromium.org/3303002

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

13 years agoCPU profiler: limit the number of simultaneously collected profiles.
mikhail.naganov@gmail.com [Tue, 31 Aug 2010 14:16:01 +0000 (14:16 +0000)]
CPU profiler: limit the number of simultaneously collected profiles.

This is related to Chromium issue 51919

BUG=51919
TEST=test-profile-generator/Issue51919

Review URL: http://codereview.chromium.org/3287005

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

13 years agoFix win64 compilation (using static_cast)
ricow@chromium.org [Tue, 31 Aug 2010 12:20:22 +0000 (12:20 +0000)]
Fix win64 compilation (using static_cast)

Review URL: http://codereview.chromium.org/3225011

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

13 years agoSimplify Array.splice by simply returning the result of AllocateEmptyJSArray.
ricow@chromium.org [Tue, 31 Aug 2010 10:39:12 +0000 (10:39 +0000)]
Simplify Array.splice by simply returning the result of AllocateEmptyJSArray.

Review URL: http://codereview.chromium.org/3216014

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

13 years agoRemove assertion that is no longer valid in InitializeStringSearch.
ricow@chromium.org [Tue, 31 Aug 2010 10:39:02 +0000 (10:39 +0000)]
Remove assertion that is no longer valid in InitializeStringSearch.

This assertion is no longer valid because r5380 changes the assumption
about the pat parameter.

In addition, we embed the no allocation part of StringSplit in a block
to reenable allocation later in that method.

Review URL: http://codereview.chromium.org/3254010

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

13 years agoSimplify code by removing special-casing for single-character patterns
sandholm@chromium.org [Tue, 31 Aug 2010 09:22:53 +0000 (09:22 +0000)]
Simplify code by removing special-casing for single-character patterns
Review URL: http://codereview.chromium.org/3276004

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

13 years agoGet gcc to check that we don't ignore return values of functions that can
erik.corry@gmail.com [Tue, 31 Aug 2010 08:05:42 +0000 (08:05 +0000)]
Get gcc to check that we don't ignore return values of functions that can
fail to allocate because we need a GC.
Review URL: http://codereview.chromium.org/3274008

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

13 years agoAddress some issues with detecting the architecture. See
erik.corry@gmail.com [Tue, 31 Aug 2010 08:05:33 +0000 (08:05 +0000)]
Address some issues with detecting the architecture.  See
http://code.google.com/p/v8/issues/detail?id=429
Review URL: http://codereview.chromium.org/3261003

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

13 years agoFix mozilla and debug check failures.
ricow@chromium.org [Tue, 31 Aug 2010 07:31:25 +0000 (07:31 +0000)]
Fix mozilla and debug check failures.

This removes the expected failure of a mozilla test that we now pass
(an empty array is returned if Array.splice is called with no
arguments) and fixes debug check failure by allocating a new empty
array using AllocateEmptyArray if splice is called with zero arguments
(makes sure we can always create a handle).

Review URL: http://codereview.chromium.org/3218010

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