danno@chromium.org [Wed, 2 May 2012 09:58:42 +0000 (09:58 +0000)]
Ensure reload of elements pointer in StoreFastDoubleElement stub.
R=mstarzinger@chromium.org
TEST=test/mjsunit/regress/regress-125515.js
BUG=chromium:125515
Review URL: https://chromiumcodereview.appspot.com/
10260014
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11479
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 2 May 2012 07:51:03 +0000 (07:51 +0000)]
MIPS: Fix LFastLiteral to check boilerplate elements kind.
Port r11470 (
621f96c0)
Original commit message:
Fix LFastLiteral to check boilerplate elements kind.
Adds a missing check that the elements kind of the boilerplate object
still has the expected elements kind, unoptimized code can transition
the boilerplate. Corner cases might cause the optimized code to be
reentered again.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10271018
Patch from Akos Palfi <palfia@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11474
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Mon, 30 Apr 2012 17:06:13 +0000 (17:06 +0000)]
Fix mistakes in r11472
TBR=vegorov@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10274008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11473
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Mon, 30 Apr 2012 15:17:59 +0000 (15:17 +0000)]
Fixed corner cases in truncation behavior when storing to TypedArrays.
Also simplified ia32 KeyedStoreStubCompiler::GenerateStoreExternalArray a bit.
BUG=v8:2110
TEST=mjsunit/regress/regress-2110
Review URL: https://chromiumcodereview.appspot.com/
10260011
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11472
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
vegorov@chromium.org [Mon, 30 Apr 2012 15:02:43 +0000 (15:02 +0000)]
Don't ignore return value of CommitCodePage in AllocateAlignedMemory.
Release the mapping as whole if commit failed to avoid leaking virtual address space.
R=mstarzinger@chromium.org
BUG=chromium:118625
Review URL: https://chromiumcodereview.appspot.com/
10260012
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11471
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Mon, 30 Apr 2012 14:59:13 +0000 (14:59 +0000)]
Fix LFastLiteral to check boilerplate elements kind.
Adds a missing check that the elements kind of the boilerplate object
still has the expected elements kind, unoptimized code can transition
the boilerplate. Corner cases might cause the optimized code to be
reentered again.
R=danno@chromium.org
TEST=mjsunit/regress/regress-fast-literal-transition
Review URL: https://chromiumcodereview.appspot.com/
10254006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11470
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
ulan@chromium.org [Mon, 30 Apr 2012 14:41:12 +0000 (14:41 +0000)]
Make sure idle notifications perform a round of incremental GCs after context disposal.
BUG=v8:2107
Review URL: https://chromiumcodereview.appspot.com/
10209026
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11469
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Mon, 30 Apr 2012 13:04:08 +0000 (13:04 +0000)]
Fixed preparser for try statement. Tiny cleanup.
BUG=v8:2109
TBR=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10270007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11468
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
danno@chromium.org [Mon, 30 Apr 2012 12:32:11 +0000 (12:32 +0000)]
Prepare push to trunk. Now working on version 3.10.8.
R=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10268006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11465
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
ulan@chromium.org [Mon, 30 Apr 2012 11:54:34 +0000 (11:54 +0000)]
Revert r11425 because of V8 benchmark performance regression.
Original CL: https://chromiumcodereview.appspot.com/
10202007 "Re-enable optimization for hot functions that have optimization disabled due to many deopts."
Review URL: https://chromiumcodereview.appspot.com/
10265008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11464
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Mon, 30 Apr 2012 08:53:48 +0000 (08:53 +0000)]
One more register change missing from r11460.
Also re-enable disabled test (reverts r11461).
BUG=v8:2108
TEST=mozilla tests pass
Review URL: https://chromiumcodereview.appspot.com/
10178039
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11463
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Fri, 27 Apr 2012 17:29:22 +0000 (17:29 +0000)]
Temporarily disable crashing mozilla test
BUG=2108
Review URL: https://chromiumcodereview.appspot.com/
10252008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11461
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Fri, 27 Apr 2012 13:05:45 +0000 (13:05 +0000)]
ia32: Redefine register usage in LoadIC/KeyedLoadIC to match StoreIC and KeyedStoreIC
Review URL: https://chromiumcodereview.appspot.com/
10254005
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11460
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Fri, 27 Apr 2012 12:57:01 +0000 (12:57 +0000)]
MIPS: Removed unused variables.
These were found by compilation errors with gcc 4.6.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10253004
Patch from Daniel Kalmar <kalmard@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11459
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
peter.rybin@gmail.com [Thu, 26 Apr 2012 20:16:53 +0000 (20:16 +0000)]
Issue 2081: Expose function's (closure's) inner context in debugger.
This is against the correct branch (bleeding_edge).
Review URL: https://chromiumcodereview.appspot.com/
10171003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11458
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Thu, 26 Apr 2012 16:19:14 +0000 (16:19 +0000)]
Print compare-state with --print-code-stubs.
R=vegorov@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10235006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11457
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Thu, 26 Apr 2012 14:45:58 +0000 (14:45 +0000)]
Fix spurious bugs in GrowAndShrinkNewSpace when the
min and max new space sizes are equal.
Review URL: https://chromiumcodereview.appspot.com/
10241002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11456
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Thu, 26 Apr 2012 13:44:18 +0000 (13:44 +0000)]
Remove more assumptions from debug tests. Even though a function
is optimized, does not mean all frames on the stack are optimized.
Also, when we ask for the list of scripts we may get more or less
depending on GC timing. Also fixed a presubmit error and made
%GetOptimizationStatus a little more honest.
Review URL: https://chromiumcodereview.appspot.com/
10234007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11455
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Thu, 26 Apr 2012 12:43:00 +0000 (12:43 +0000)]
Reduce size of LIR instruction by one word and remove dead code.
Until now we always recorded two deoptimization environments for instructions
that are marked as calls. We actually don't need two for all LIR
instructions except one (LInstanceOfKnownGlobal) where there is a lazy
deoptimization point in deferred code.
This change remove on of them and uses one virtual function instead
to make LInstanceOfKnownGlobal work as before.
Additionally, this change removes an unused predicate save_doubles_ from LIR
instructions and removes some helper functions that are used only in one place.
Review URL: https://chromiumcodereview.appspot.com/
10035021
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11454
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Thu, 26 Apr 2012 11:58:34 +0000 (11:58 +0000)]
Remove unwarranted assumptions about inlining from a debugger test.
Review URL: https://chromiumcodereview.appspot.com/
10239003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11449
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Thu, 26 Apr 2012 11:43:59 +0000 (11:43 +0000)]
Use simple concat of substrings instead of ReplaceStringBuilder for non-global replacements.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10134057
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11448
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
ulan@chromium.org [Thu, 26 Apr 2012 11:14:24 +0000 (11:14 +0000)]
Add missing literal pool guards.
BUG=V8:2095
TEST=see issue
Review URL: https://chromiumcodereview.appspot.com/
10233006
Patch from Rodolph Perfetta <rodolph.perfetta@gmail.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11447
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Thu, 26 Apr 2012 09:11:45 +0000 (09:11 +0000)]
Reenable some heap verification and fix test to keep
heap in a consistent state.
Review URL: https://chromiumcodereview.appspot.com/
10227002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11446
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Thu, 26 Apr 2012 09:11:19 +0000 (09:11 +0000)]
Regexp: Remove nodes from the regexp that cannot match because
they contain non-ASCII characters and the input string is ASCII.
Remove unused Clone() method.
Review URL: https://chromiumcodereview.appspot.com/
10174017
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11445
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
danno@chromium.org [Thu, 26 Apr 2012 09:07:39 +0000 (09:07 +0000)]
Reduce expense of TraceGVN when --trace-gvn is off
R=mstarzinger@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10233004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11444
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Thu, 26 Apr 2012 08:19:17 +0000 (08:19 +0000)]
Prepare push to trunk. Now working on version 3.10.7.
R=jkummerow@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10233003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11441
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Thu, 26 Apr 2012 07:45:29 +0000 (07:45 +0000)]
Remove unused variable in src/platform-solaris.cc.
Based on a patch contributed by Heinz Gies <heinz@licenser.net>
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10231004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11440
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
peter.rybin@gmail.com [Wed, 25 Apr 2012 23:06:30 +0000 (23:06 +0000)]
Add "step in recommended" to LiveEdit response object.
Review URL: https://chromiumcodereview.appspot.com/
10185006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11439
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
danno@chromium.org [Wed, 25 Apr 2012 15:41:57 +0000 (15:41 +0000)]
Fix 64-bit windows size_t assert
R=mstarzinger@chromium.org
TEST=Windows 64 bit build goes green
Review URL: https://chromiumcodereview.appspot.com/
10221006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11438
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mmassi@chromium.org [Wed, 25 Apr 2012 14:32:27 +0000 (14:32 +0000)]
Eliminate redundant array bound checks (checks already performed earlier in the DT).
As a special case, for checks on index expressions with the form (expr + constant) if a smaller constant is checked later in the DT also eliminate the check.
Finally, if a larger constant is checked later in the same BB do the more general check (larger constant) earlier instead of the less general one.
This will not cause useless deoptimizations because, since we are in the same BB, all the checks would have been executed anyway.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10032029
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11437
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 25 Apr 2012 13:22:04 +0000 (13:22 +0000)]
Fix deopted construct stub frame to contain code object.
R=danno@chromium.org
BUG=chromium:124594
TEST=mjsunit/regress/regress-124594
Review URL: https://chromiumcodereview.appspot.com/
10155024
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11436
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Wed, 25 Apr 2012 13:12:08 +0000 (13:12 +0000)]
Temporarily disable some heap verification while test failures are
investigated.
Review URL: https://chromiumcodereview.appspot.com/
10221004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11435
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
danno@chromium.org [Wed, 25 Apr 2012 13:12:00 +0000 (13:12 +0000)]
Use safe string utilities to fix Windows build error.
R=mstarzinger@chromium.org
TEST=waterfall goes green
Review URL: https://chromiumcodereview.appspot.com/
10173023
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11434
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
danno@chromium.org [Wed, 25 Apr 2012 12:04:23 +0000 (12:04 +0000)]
Improve --trace-gvn debug output
R=mstarzinger@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10203010
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11433
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Wed, 25 Apr 2012 11:49:31 +0000 (11:49 +0000)]
Fix release build. Add comment accidentally omitted from
preceeding change (stress-compaction).
Review URL: https://chromiumcodereview.appspot.com/
10161027
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11432
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Wed, 25 Apr 2012 11:35:32 +0000 (11:35 +0000)]
Make --stress-compaction more stressful.
Review URL: https://chromiumcodereview.appspot.com/
10141007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11431
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Wed, 25 Apr 2012 10:20:38 +0000 (10:20 +0000)]
Add field names to Code, ConsString, and JSGlobalPropertyCell in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10217001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11430
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 25 Apr 2012 08:45:45 +0000 (08:45 +0000)]
Make String::Empty inlineable.
R=svenpanne@chromium.org
TEST=cctest/test-api/StringEmpty
Review URL: https://chromiumcodereview.appspot.com/
10199019
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11429
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Tue, 24 Apr 2012 16:37:43 +0000 (16:37 +0000)]
Attempt to fix Win32 build by avoiding a compiler intrinsic.
TBR=mstarzinger@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10198020
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11428
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Tue, 24 Apr 2012 15:59:07 +0000 (15:59 +0000)]
Optimise Math.floor(x/y) to use integer division for specific divisor.
Landing for Rodolph Perfetta <rodolph.perfetta@gmail.com>.
Original CL: http://codereview.chromium.org/9638018/
Review URL: https://chromiumcodereview.appspot.com/
10197010
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11427
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Tue, 24 Apr 2012 14:37:53 +0000 (14:37 +0000)]
Make Isolate::GetData and Isolate::SetData inlineable.
R=svenpanne@chromium.org
TEST=cctest/test-api/IsolateEmbedderData
Review URL: https://chromiumcodereview.appspot.com/
10196013
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11426
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
ulan@chromium.org [Tue, 24 Apr 2012 14:05:07 +0000 (14:05 +0000)]
Re-enable optimization for hot functions that have optimization disabled due to many deopts.
Use exponential backoff in order to avoid getting into optimization-deoptimization cycle.
BUG=v8:2040,121196
Review URL: https://chromiumcodereview.appspot.com/
10202007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11425
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Tue, 24 Apr 2012 12:38:58 +0000 (12:38 +0000)]
Refactoring of heap profiler: split ExtractReferences into several functions.
Review URL: https://chromiumcodereview.appspot.com/
10198011
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11424
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Tue, 24 Apr 2012 09:34:13 +0000 (09:34 +0000)]
Remove some unused stuff from regexp implementation.
Review URL: https://chromiumcodereview.appspot.com/
10205010
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11423
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erik.corry@gmail.com [Mon, 23 Apr 2012 18:56:07 +0000 (18:56 +0000)]
Fix some bugs in accessing details of the lastest regexp
match. Sometimes were were not updating it when we should
and sometimes we were leaving the lastMatchInfoOverride in
place when we should be using the updated regular last match
info. Small optimization for zero length match in
String.prototype.replace.
Review URL: https://chromiumcodereview.appspot.com/
10184004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11422
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Mon, 23 Apr 2012 18:12:36 +0000 (18:12 +0000)]
Revert r11420 because Win32 compilation was broken.
TBR=danno@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10190007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11421
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Mon, 23 Apr 2012 17:44:21 +0000 (17:44 +0000)]
optimise Math.floor(x/y) to use integer divisiion for specific divisor.
BUG=none
TEST=mjsunit/math-floor-of-div.js
Landing for Rodolph Perfetta <rodolph.perfetta@gmail.com>.
Review URL: https://chromiumcodereview.appspot.com/9638018
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11420
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Mon, 23 Apr 2012 16:42:34 +0000 (16:42 +0000)]
Fix compile failure on Mac in r11417.
R=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10187003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11419
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Mon, 23 Apr 2012 16:10:35 +0000 (16:10 +0000)]
Show names of the context fields in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10183005
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11418
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Mon, 23 Apr 2012 15:09:59 +0000 (15:09 +0000)]
Make static API getters inlineable again.
This relands r11376 with minor fixes for Windows where offsets are
slightly different from Linux for unaligned fields.
R=svenpanne@chromium.org
TEST=cctest/test-api/StaticGetters
Review URL: https://chromiumcodereview.appspot.com/
10176004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11417
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Mon, 23 Apr 2012 13:59:43 +0000 (13:59 +0000)]
Fix source property of empty RegExp objects.
R=rossberg@chromium.org
BUG=v8:1982
TEST=test262/15.10.4.1-5
Review URL: https://chromiumcodereview.appspot.com/
10134010
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11416
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erikcorry [Mon, 23 Apr 2012 13:44:06 +0000 (13:44 +0000)]
Remove unused IsNan function
Review URL: http://codereview.chromium.org/
10167008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11415
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Mon, 23 Apr 2012 12:54:47 +0000 (12:54 +0000)]
Prepare push to trunk. Now working on version 3.10.6.
R=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10187001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11412
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Mon, 23 Apr 2012 10:12:29 +0000 (10:12 +0000)]
Exclude filler maps from object properties in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10167013
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11411
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Mon, 23 Apr 2012 10:08:07 +0000 (10:08 +0000)]
Add names to GlobalObject inline properties in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10166007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11410
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
peter.rybin@gmail.com [Fri, 20 Apr 2012 17:08:01 +0000 (17:08 +0000)]
Issue 2089 Expose value wrapper's inner values
Review URL: https://chromiumcodereview.appspot.com/
10162006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11407
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Fri, 20 Apr 2012 15:20:52 +0000 (15:20 +0000)]
Disabling stepping into callback function of String.replace.
This is being done due to performance concerns.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10134006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11406
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
erikcorry [Fri, 20 Apr 2012 14:12:49 +0000 (14:12 +0000)]
MIPS: Do the qNaN fixup at de-serialization time. This is a commit of https://chromiumcodereview.appspot.com/
10093007/ for Paul Lind
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11405
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Fri, 20 Apr 2012 14:03:06 +0000 (14:03 +0000)]
Eliminate internal and hidden links to oddballs and other non-essential objects in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10162005
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11404
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Fri, 20 Apr 2012 13:57:13 +0000 (13:57 +0000)]
Add missing named fields to SharedFunctionInfo in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10169007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11403
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
rossberg@chromium.org [Fri, 20 Apr 2012 13:35:09 +0000 (13:35 +0000)]
Put new global var semantics behind a flag until WebKit tests are cleaned up.
R=mstarzinger@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10163003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11402
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Fri, 20 Apr 2012 12:51:08 +0000 (12:51 +0000)]
MIPS: Port function call type-feedback cells to x64 and ARM.
Port r11391 (
789b1078)
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10124013
Patch from Akos Palfi <palfia@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11401
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Fri, 20 Apr 2012 11:24:16 +0000 (11:24 +0000)]
Remove dead code from our JS builtin-code in math.js.
$random is never used within our JS builtin code.
Review URL: https://chromiumcodereview.appspot.com/
10166003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11400
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Fri, 20 Apr 2012 11:06:12 +0000 (11:06 +0000)]
Enable stepping into callback passed to builtins (e.g. Array.forEach).
BUG=109564
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10078014
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11399
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Fri, 20 Apr 2012 10:43:02 +0000 (10:43 +0000)]
Relax test-debug/ThreadedDebugging to stop flakiness.
Actual bug tracked as issue 2047.
R=yangguo@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10167002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11398
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Fri, 20 Apr 2012 10:42:12 +0000 (10:42 +0000)]
Replaced the --limit-inling flag by three separate flags and bumped hard limits.
This change makes experiments with inlining limits much easier. Note that the
default values for the limits keep their old values for now. Renamed things a
bit for more consistency.
Review URL: https://chromiumcodereview.appspot.com/
10162001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11397
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Fri, 20 Apr 2012 10:21:08 +0000 (10:21 +0000)]
Fix bug in forced-deletion of globals.
When inling functions across contexts in optimized code and using
ForceDelete from the API to delete a DontDelete global property we
can end up returning the hole value instead of throwing a ReferenceError
as expected after accessing a deleted global variable.
BUG=v8:2092
TEST=test/cctest/test-api/InlinedFunctionAcrossContexts
Review URL: https://chromiumcodereview.appspot.com/
10035060
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11396
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Fri, 20 Apr 2012 09:37:06 +0000 (09:37 +0000)]
Flush PC-to-code cache before doing verification.
Review URL: https://chromiumcodereview.appspot.com/
10144002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11395
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Thu, 19 Apr 2012 16:49:09 +0000 (16:49 +0000)]
Finish refactoring done for ia32 for the other platforms.
Make non-templatized versions of LIR printing functions.
This avoid duplicating the code for each template instance.
BUG=v8:1803
Review URL: https://chromiumcodereview.appspot.com/
10123011
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11394
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Thu, 19 Apr 2012 16:31:01 +0000 (16:31 +0000)]
Fix includes order.
TBR=mnaganov@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10078015
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11393
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Thu, 19 Apr 2012 15:58:42 +0000 (15:58 +0000)]
Show names for the strong roots in heap snapshot.
Review URL: https://chromiumcodereview.appspot.com/
10128006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11392
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Thu, 19 Apr 2012 14:17:12 +0000 (14:17 +0000)]
Port function call type-feedback cells to x64 and ARM.
R=fschneider@chromium.org
BUG=v8:1857,v8:2079
Review URL: https://chromiumcodereview.appspot.com/
10124008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11391
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
fschneider@chromium.org [Thu, 19 Apr 2012 13:24:15 +0000 (13:24 +0000)]
Optimize ~~(expr) in optimized code.
~~ is commonly used to truncate a value to int32 (ToInt32).
This change avoid actually emitting the bitwise operations, and
just truncates the subexpression of ~~.
BUG=v8:2037
TEST=test/mjsunit/compiler/optimize-bitnot.js
Review URL: https://chromiumcodereview.appspot.com/
10123007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11390
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Thu, 19 Apr 2012 12:16:37 +0000 (12:16 +0000)]
Hide internal references pointing to the empty array in heap profiler.
Review URL: https://chromiumcodereview.appspot.com/
10021052
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11389
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Thu, 19 Apr 2012 11:59:52 +0000 (11:59 +0000)]
Prepare push to trunk. Now working on version 3.10.5.
R=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10070008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11386
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Thu, 19 Apr 2012 10:32:38 +0000 (10:32 +0000)]
Fix issues when stressing compaction with WeakMaps.
1) While marking the backing hash table of a WeakMap we also need to
record the slot because it might be on an evacuation candidate.
2) With incremental marking one backing hash table might be marked more
than once because the WeakMap might have gone through a white to gray
transition.
3) The corner case when the allocation of the backing hash table itself
causes a GC, leads to a WeakMap with an undefined table field, so we
still need to handle this case correctly.
R=vegorov@chromium.org
TEST=mjsunit/harmony/proxies-example-membrane --stress-compaction
Review URL: https://chromiumcodereview.appspot.com/9985010
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11385
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Thu, 19 Apr 2012 10:28:26 +0000 (10:28 +0000)]
Fix presubmit check for the case when cpplint fails.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10124006
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11384
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Thu, 19 Apr 2012 10:28:17 +0000 (10:28 +0000)]
Fix mod on ia32 without SSE2.
Review URL: https://chromiumcodereview.appspot.com/
10128004
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11383
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Thu, 19 Apr 2012 07:49:11 +0000 (07:49 +0000)]
Fix missing GVN flag for new-space promotion.
R=vegorov@chromium.org
BUG=chromium:123919
TEST=mjsunit/regress/regress-123919
Review URL: https://chromiumcodereview.appspot.com/
10119016
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11382
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Thu, 19 Apr 2012 07:19:33 +0000 (07:19 +0000)]
Fixed type transitions for mod on ia32.
Previously we got stuck in the int32 state, because this handled everything
without a type transition. Note that other platforms do not have this bug.
Review URL: https://chromiumcodereview.appspot.com/
10083044
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11381
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 18 Apr 2012 17:49:53 +0000 (17:49 +0000)]
Revert r11376 and r11379 due to compile failures on Windows.
TBR=jkummerow@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
10116030
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11380
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 18 Apr 2012 17:18:56 +0000 (17:18 +0000)]
Fix presubmit failure in r11376.
R=jkummerow@chromium.org
TEST=cctest/test-api/StaticGetters[AfterDeath]
Review URL: https://chromiumcodereview.appspot.com/
10021057
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11379
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Wed, 18 Apr 2012 17:02:57 +0000 (17:02 +0000)]
Always show link to prototype transitions in heap snapshot.
... otherwise it is shown as a hidden reference with a meaningless name.
Review URL: https://chromiumcodereview.appspot.com/
10041028
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11378
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 18 Apr 2012 16:07:08 +0000 (16:07 +0000)]
Make static API getters inlineable.
R=danno@chromium.org
TEST=cctest/test-api/StaticGetters[AfterDeath]
Review URL: https://chromiumcodereview.appspot.com/
10116024
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11376
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
mstarzinger@chromium.org [Wed, 18 Apr 2012 15:51:34 +0000 (15:51 +0000)]
Make Value::IsUndefined and Value::IsNull inlineable.
R=danno@chromium.org
TEST=cctest/test-api
Review URL: https://chromiumcodereview.appspot.com/
10091035
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11375
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
rossberg@chromium.org [Wed, 18 Apr 2012 15:48:01 +0000 (15:48 +0000)]
MIPS: Implement rudimentary module linking.
Port r11336 (
6dd4e844)
Original commit message:
Implement rudimentary module linking.
Constructs the (generally cyclic) graph of module instance objects
and populates their exports. Any exports other than nested modules
are currently set to 'undefined' (but already present as properties).
Details:
- Added new type JSModule for instance objects: a JSObject carrying a context.
- Statically allocate instance objects for all module literals (in parser 8-}).
- Extend interfaces to record and unify concrete instance objects,
and to support iteration over members.
- Introduce new runtime function for pushing module contexts.
- Generate code for allocating, initializing, and setting module contexts,
and for populating instance objects from module literals.
Currently, all non-module exports are still initialized with 'undefined'.
- Module aliases are resolved statically, so no special code is required.
- Make sure that code containing module constructs is never optimized
(macrofy AST node construction flag setting while we're at it).
- Add test case checking linkage.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10035028
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11374
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
rossberg@chromium.org [Wed, 18 Apr 2012 15:46:08 +0000 (15:46 +0000)]
MIPS: Refactor code generation for global declarations.
Port r11332 (
0e6df8b6)
Original commit message:
Refactor code generation for global declarations.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10041029
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11373
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
rossberg@chromium.org [Wed, 18 Apr 2012 15:43:29 +0000 (15:43 +0000)]
MIPS: Refactoring of code generation for declarations, in preparation for modules.
Port r11331 (
bd7843a0)
Original commit message:
Refactoring of code generation for declarations, in preparation for modules.
Do proper dispatch on declaration type instead of mingling together
different code generation paths. Once we add more declaration forms,
this is more scalable.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10119017
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11372
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
svenpanne@chromium.org [Wed, 18 Apr 2012 11:58:13 +0000 (11:58 +0000)]
Make functions with switch statements inlinable.
Review URL: https://chromiumcodereview.appspot.com/
10083038
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11370
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Wed, 18 Apr 2012 11:17:04 +0000 (11:17 +0000)]
MIPS: Make SubStringStub more robust with unsafe arguments.
Port r11349 (5b381a).
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10107025
Patch from Daniel Kalmar <kalmard@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11367
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
vegorov@chromium.org [Wed, 18 Apr 2012 10:42:30 +0000 (10:42 +0000)]
MIPS: Skip canonicalization check in LStoreKeyedFastDoubleElement when it is not needed
Port r11278 (
e5dc7ebd).
Original commit message:
Skip canonicalization check in LStoreKeyedFastDoubleElement when it is not needed:
- if value is a result of integer32 to double conversion (can't be NaN);
- if value was loaded from fast double backing store (already canonicalized).
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10071004
Patch from Daniel Kalmar <kalmard@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11366
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
vegorov@chromium.org [Wed, 18 Apr 2012 10:39:30 +0000 (10:39 +0000)]
MIPS: fix-up after r11344
Removed a constant now duplicated by r11344 (
7c41cf72).
This fixes compilation on MIPS (with the other submitted patches applied).
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10108023
Patch from Daniel Kalmar <kalmard@homejinni.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11365
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
vegorov@chromium.org [Wed, 18 Apr 2012 09:38:45 +0000 (09:38 +0000)]
Simplify invocation sequence at monomorphic function invocation sites.
Provide known target as a hint to HInvokeFunction instruction so that it can statically determine if arguments adaptation is required.
R=fschneider@chromium.org
BUG=v8:2079
Review URL: https://chromiumcodereview.appspot.com/
10116021
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11364
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Wed, 18 Apr 2012 07:02:21 +0000 (07:02 +0000)]
Fix typo in power_double_double
Contributed by net147@gmail.com
BUGS=
TEST=mjsunit/math-pow,mjsunit/math-sqrt
Review URL: https://chromiumcodereview.appspot.com/
10116001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11363
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Tue, 17 Apr 2012 16:15:20 +0000 (16:15 +0000)]
Fix incorrect Math.pow() calculations on MinGW-w64.
Original patch by Jonathan Liu <net147@gmail.com> https://chromiumcodereview.appspot.com/
10026017/
BUG=
TEST=mjsunit/math-pow,mjsunit/math-sqrt
Review URL: https://chromiumcodereview.appspot.com/
10108022
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11362
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
jkummerow@chromium.org [Tue, 17 Apr 2012 16:02:36 +0000 (16:02 +0000)]
Fix typo in lazy-instance.h.
There was no build error since we never used LazyDynamicInstance's default parameter.
BUG=v8:2091
Review URL: https://chromiumcodereview.appspot.com/
10103032
Patch from Philippe Liard <pliard@chromium.org>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11359
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
alexeif@chromium.org [Tue, 17 Apr 2012 15:57:35 +0000 (15:57 +0000)]
Remove Debug object from the user roots in heap profiler.
Review URL: https://chromiumcodereview.appspot.com/
10096016
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11358
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Tue, 17 Apr 2012 14:53:06 +0000 (14:53 +0000)]
Fix MinGW-w64 GCC 4.7 compilation
Contributed by net147@gmail.com
BUGS=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10019012
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11357
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
yangguo@chromium.org [Tue, 17 Apr 2012 13:16:25 +0000 (13:16 +0000)]
Use ldexp instead of pow for more accuracy.
Original patch by net147@gmail.com: https://chromiumcodereview.appspot.com/
10026011/
BUG=
TEST=cctest/test-conversions/Octal
Review URL: https://chromiumcodereview.appspot.com/
10103030
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11356
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
loislo@chromium.org [Tue, 17 Apr 2012 13:10:17 +0000 (13:10 +0000)]
Push heap stats as HeapStatsUpdate struct instead of raw array of uint32_t values.
We are pushing stats data as a raw array of uint32_t values at the moment.
It makes tricky the process of updating the API between v8 and WebKit.
BUG=none
TEST=HeapSnapshotObjectsStats
Review URL: https://chromiumcodereview.appspot.com/
10110001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11355
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00