platform/upstream/v8.git
12 years agoEnable stepping into callback passed to builtins (e.g. Array.forEach).
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

12 years agoRelax test-debug/ThreadedDebugging to stop flakiness.
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

12 years agoReplaced the --limit-inling flag by three separate flags and bumped hard limits.
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

12 years agoFix bug in forced-deletion of globals.
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

12 years agoFlush PC-to-code cache before doing verification.
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

12 years agoFinish refactoring done for ia32 for the other platforms.
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

12 years agoFix includes order.
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

12 years agoShow names for the strong roots in heap snapshot.
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

12 years agoPort function call type-feedback cells to x64 and ARM.
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

12 years agoOptimize ~~(expr) in optimized code.
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

12 years agoHide internal references pointing to the empty array in heap profiler.
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

12 years agoPrepare push to trunk. Now working on version 3.10.5.
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

12 years agoFix issues when stressing compaction with WeakMaps.
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

12 years agoFix presubmit check for the case when cpplint fails.
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

12 years agoFix mod on ia32 without SSE2.
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

12 years agoFix missing GVN flag for new-space promotion.
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

12 years agoFixed type transitions for mod on ia32.
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

12 years agoRevert r11376 and r11379 due to compile failures on Windows.
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

12 years agoFix presubmit failure in r11376.
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

12 years agoAlways show link to prototype transitions in heap snapshot.
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

12 years agoMake static API getters inlineable.
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

12 years agoMake Value::IsUndefined and Value::IsNull inlineable.
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

12 years agoMIPS: Implement rudimentary module linking.
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

12 years agoMIPS: Refactor code generation for global declarations.
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

12 years agoMIPS: Refactoring of code generation for declarations, in preparation for modules.
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

12 years agoMake functions with switch statements inlinable.
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

12 years agoMIPS: Make SubStringStub more robust with unsafe arguments.
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

12 years agoMIPS: Skip canonicalization check in LStoreKeyedFastDoubleElement when it is not...
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

12 years agoMIPS: fix-up after r11344
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

12 years agoSimplify invocation sequence at monomorphic function invocation sites.
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

12 years agoFix typo in power_double_double
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

12 years agoFix incorrect Math.pow() calculations on MinGW-w64.
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

12 years agoFix typo in lazy-instance.h.
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

12 years agoRemove Debug object from the user roots in heap profiler.
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

12 years agoFix MinGW-w64 GCC 4.7 compilation
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

12 years agoUse ldexp instead of pow for more accuracy.
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

12 years agoPush heap stats as HeapStatsUpdate struct instead of raw array of uint32_t values.
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

12 years agoPrepare push to trunk. We are now working on 3.10.4.
erik.corry@gmail.com [Tue, 17 Apr 2012 11:21:16 +0000 (11:21 +0000)]
Prepare push to trunk.  We are now working on 3.10.4.
Review URL: https://chromiumcodereview.appspot.com/10107013

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

12 years agoEmbed entries_ list into HeapObjectsMap by value.
loislo@chromium.org [Tue, 17 Apr 2012 11:14:14 +0000 (11:14 +0000)]
Embed entries_ list into HeapObjectsMap by value.

Previously it was owned by pointer but now it is not necessary and we can own it by value.

BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9969197

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

12 years agoFix fast array literals to ignore prototype chain.
mstarzinger@chromium.org [Tue, 17 Apr 2012 11:12:37 +0000 (11:12 +0000)]
Fix fast array literals to ignore prototype chain.

This makes sure that boilerplate objects for array literals with
non-constant elements (which will contain the hole at non-constant
positions) will not cause prototype chain lookups when generating
optimized code.

R=erik.corry@gmail.com
BUG=chromium:123512
TEST=mjsunit/regress/regress-123512

Review URL: https://chromiumcodereview.appspot.com/10105025

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

12 years agoMake SubStringStub more robust wrt unsafe arguments.
yangguo@chromium.org [Tue, 17 Apr 2012 10:49:15 +0000 (10:49 +0000)]
Make SubStringStub more robust wrt unsafe arguments.

BUG=
TEST=test-strings/RobustSubStringStub

Review URL: https://chromiumcodereview.appspot.com/9969196

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

12 years agoFix a bug in heap profile tracing of closures.
kmillikin@chromium.org [Tue, 17 Apr 2012 10:42:17 +0000 (10:42 +0000)]
Fix a bug in heap profile tracing of closures.

The heap profile tracers assumed that a closure always closed over a
function context.  This is obviously not true (e.g., function expressions
nested inside catch or with).  This assumption could lead to using a
function's scope info to interpret a catch or with context.

R=vegorov@chromium.org
BUG=v8:2078
TEST=

Review URL: https://chromiumcodereview.appspot.com/9969198

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

12 years agoProcess weak references between optimized JSFunctions on scavenges.
vegorov@chromium.org [Tue, 17 Apr 2012 10:37:41 +0000 (10:37 +0000)]
Process weak references between optimized JSFunctions on scavenges.

R=mstarzinger@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10091027

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

12 years agoRemove extra whitespace added in r11339
yurys@chromium.org [Tue, 17 Apr 2012 08:59:43 +0000 (08:59 +0000)]
Remove extra whitespace added in r11339

TBR=mnaganov
Review URL: https://chromiumcodereview.appspot.com/9956167

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

12 years agoRegexp: Unify the lookahead code for the BoyerMoore-like skipping
erik.corry@gmail.com [Tue, 17 Apr 2012 08:06:53 +0000 (08:06 +0000)]
Regexp: Unify the lookahead code for the BoyerMoore-like skipping
and the lookahead code for simplifying \b.  Also cache lookahead
results on the nodes, fix a memory leak and remove some character
class code we are no longer using.
Review URL: https://chromiumcodereview.appspot.com/9961009

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

12 years agoTry aligning unboxed double array backing store in allocation or scavenge promotion.
vegorov@chromium.org [Tue, 17 Apr 2012 07:52:39 +0000 (07:52 +0000)]
Try aligning unboxed double array backing store in allocation or scavenge promotion.

This CL does not align them during compaction or mark-sweep promotion because we are not using specialized evacuation visitors.

R=erik.corry@gmail.com

Review URL: https://chromiumcodereview.appspot.com/10001012

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

12 years agoTiny DescriptorArray cleanup.
svenpanne@chromium.org [Tue, 17 Apr 2012 07:16:19 +0000 (07:16 +0000)]
Tiny DescriptorArray cleanup.

Removed 2 useless functions, nuked a simple helper function with a single caller, and simplified things by changing a signature.

Review URL: https://chromiumcodereview.appspot.com/10066046

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

12 years agoFix malformed test262 status file in r11341.
mstarzinger@chromium.org [Mon, 16 Apr 2012 16:33:58 +0000 (16:33 +0000)]
Fix malformed test262 status file in r11341.

TBR=rossberg@chromium.org
TEST=test262

Review URL: https://chromiumcodereview.appspot.com/10096014

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

12 years agoMark test262 failure for known issue.
mstarzinger@chromium.org [Mon, 16 Apr 2012 15:55:12 +0000 (15:55 +0000)]
Mark test262 failure for known issue.

R=rossberg@chromium.org
BUG=v8:1982
TEST=test262/15.10.4.1-5

Review URL: https://chromiumcodereview.appspot.com/10096011

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

12 years agoFix illegal escape-sequences to throw syntax errors.
mstarzinger@chromium.org [Mon, 16 Apr 2012 15:54:02 +0000 (15:54 +0000)]
Fix illegal escape-sequences to throw syntax errors.

R=erik.corry@gmail.com
TEST=test262/S7.8.4_A6.*,test262/S7.8.4_A7.*

Review URL: https://chromiumcodereview.appspot.com/9490006

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

12 years agoAdd method for resolving SnapshotObjectId by given object
yurys@chromium.org [Mon, 16 Apr 2012 15:36:19 +0000 (15:36 +0000)]
Add method for resolving SnapshotObjectId by given object
Review URL: https://chromiumcodereview.appspot.com/10094011

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

12 years agoImplement rudimentary module linking.
rossberg@chromium.org [Mon, 16 Apr 2012 14:43:27 +0000 (14:43 +0000)]
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.

Baseline: http://codereview.chromium.org/9722043/

R=svenpanne@chromium.org,mstarzinger@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9844002

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

12 years agoExternal references should not affect dominance relation.
alexeif@chromium.org [Mon, 16 Apr 2012 14:31:13 +0000 (14:31 +0000)]
External references should not affect dominance relation.

Separate objects into two groups: reachable from a window (user),
and unreachable (system). Then do not take into account links
that come from system group to the user group when calculating
dominance relation.

Review URL: https://chromiumcodereview.appspot.com/10086006

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

12 years agofix unused variables in test-heap-profiler.cc to fix compilation with GCC-4.6
jkummerow@chromium.org [Mon, 16 Apr 2012 13:27:38 +0000 (13:27 +0000)]
fix unused variables in test-heap-profiler.cc to fix compilation with GCC-4.6

TEST=GCC-4.6's face gleaming with happiness

Review URL: https://chromiumcodereview.appspot.com/10001009

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

12 years agoImplement ES5 erratum: global declarations shadow inherited properties.
rossberg@chromium.org [Mon, 16 Apr 2012 13:20:50 +0000 (13:20 +0000)]
Implement ES5 erratum: global declarations shadow inherited properties.

I also discovered that our treatment of const declarations is inconsistent
when inside a global eval under 'with' (i.e., when created by
DeclareContextSlots). That is,

  var x;
  eval("const x = 9")

and

  var x;
  eval("with({}) const x = 9")

differ (the former assigns 9, the latter throws). This appears to be an
oversight from earlier changes to our const semantics (the latter shouldn't
throw either). Fixing this is a separate issue, though (and one that doesn't
seem quite worthwhile).

R=mstarzinger@chromium.org
BUG=v8:1991,80591
TEST=

Review URL: https://chromiumcodereview.appspot.com/10067010

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

12 years agoRefactor code generation for global declarations.
rossberg@chromium.org [Mon, 16 Apr 2012 12:26:16 +0000 (12:26 +0000)]
Refactor code generation for global declarations.

(Baseline is http://codereview.chromium.org/9704054/)

R=fschneider@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9722043

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

12 years agoRefactoring of code generation for declarations, in preparation for modules.
rossberg@chromium.org [Mon, 16 Apr 2012 11:48:20 +0000 (11:48 +0000)]
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.

In separate steps, I'd like to (1) clean up the logic for DeclareGlobal,
and (2) try to reduce the special handling of the name function var if
possible.

R=fschneider@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9704054

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

12 years agoImproved printing of HBitwise instructions.
svenpanne@chromium.org [Mon, 16 Apr 2012 11:38:01 +0000 (11:38 +0000)]
Improved printing of HBitwise instructions.

Review URL: https://chromiumcodereview.appspot.com/9972007

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

12 years agoAdd PushAddress(ExternalReference) for X64.
mstarzinger@chromium.org [Mon, 16 Apr 2012 10:53:26 +0000 (10:53 +0000)]
Add PushAddress(ExternalReference) for X64.

R=erik.corry@gmail.com

Review URL: https://chromiumcodereview.appspot.com/10081009

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

12 years agoProvide structures from <ucontext.h> for Android.
ulan@chromium.org [Mon, 16 Apr 2012 10:42:39 +0000 (10:42 +0000)]
Provide structures from <ucontext.h> for Android.

Patch from Ben Murdoch <benm@chromium.org>.

Review URL: https://chromiumcodereview.appspot.com/10001005

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

12 years agoAdd size metric into Heap Stats.
loislo@chromium.org [Mon, 16 Apr 2012 09:44:42 +0000 (09:44 +0000)]
Add size metric into Heap Stats.
The stats data have only count field at the moment.
A constantly growing array of integers also can be a reason of a leak.
Ans we have to have a way to detect such kind of leaks.

Drive by fix:
FindObject and AddEntry were replaced with FindEntry/FindOrAddEntry pair.

BUG=none
TEST=HeapSnapshotObjectsStats

Review URL: https://chromiumcodereview.appspot.com/10086004

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

12 years agoFix lineprocessor sample and include it in the gyp build.
yangguo@chromium.org [Mon, 16 Apr 2012 09:23:56 +0000 (09:23 +0000)]
Fix lineprocessor sample and include it in the gyp build.

Based on a patch by Peter Rybin <peter.rybin@gmail.com> https://chromiumcodereview.appspot.com/10081030/

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9972006

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

12 years agoFix fast API call for MinGW-w64
ulan@chromium.org [Mon, 16 Apr 2012 09:22:12 +0000 (09:22 +0000)]
Fix fast API call for MinGW-w64

MinGW-w64 uses the rcx register for the first argument. Unlike MSVC, it does not require preparing a slot for the result handle on the stack and putting a pointer to it in the rcx register.

BUGS=v8:2026
TEST=cctest/test-api

Review URL: https://chromiumcodereview.appspot.com/9959050
Patch from Jonathan Liu <net147@gmail.com>.

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

12 years agoFix test262 harness to purge old data directory.
mstarzinger@chromium.org [Mon, 16 Apr 2012 09:05:32 +0000 (09:05 +0000)]
Fix test262 harness to purge old data directory.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10097006

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

12 years agoFix handling of this in Array.prototype.concat method.
mstarzinger@chromium.org [Mon, 16 Apr 2012 08:12:12 +0000 (08:12 +0000)]
Fix handling of this in Array.prototype.concat method.

R=jkummerow@chromium.org
BUG=v8:2080
TEST=test262/15.4.4.4-5-c-i-1

Review URL: https://chromiumcodereview.appspot.com/10095006

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

12 years agoUpdate to most recent test262 version.
mstarzinger@chromium.org [Fri, 13 Apr 2012 16:09:15 +0000 (16:09 +0000)]
Update to most recent test262 version.

This also deletes downloaded test data files if their hashes are
incorrect to automatically retry the download on the next run.

R=jkummerow@chromium.org
TEST=test262

Review URL: https://chromiumcodereview.appspot.com/10080007

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

12 years agoSmall improvements to push-to-trunk.sh and merge-to-branch.sh.
jkummerow@chromium.org [Fri, 13 Apr 2012 16:00:31 +0000 (16:00 +0000)]
Small improvements to push-to-trunk.sh and merge-to-branch.sh.

1.) When a back-merged patch applied at an offset, ignore the "Hunk #1 succeeded at ..." lines instead of printing a scary warning.
2.) When push-to-trunk was not called with "-c /path/to/chrome/src", explicitly ask for the path to help discoverability of the feature.
3.) Correctly convert "BUG=chromium:123" to "(Chromium issue 123)" in the pre-made ChangeLog entry.

Review URL: https://chromiumcodereview.appspot.com/10073010

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

12 years agoValgrind cleanliness, part 6: Introduce OS::TearDown, cleaning up 2 mutexes.
svenpanne@chromium.org [Fri, 13 Apr 2012 14:08:31 +0000 (14:08 +0000)]
Valgrind cleanliness, part 6: Introduce OS::TearDown, cleaning up 2 mutexes.

Review URL: https://chromiumcodereview.appspot.com/10084003

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

12 years agoMIPS: Add isolate accessor to AccessorInfo and Arguments.
mstarzinger@chromium.org [Fri, 13 Apr 2012 13:43:19 +0000 (13:43 +0000)]
MIPS: Add isolate accessor to AccessorInfo and Arguments.

Port r11306 (36b58f7).

Original commit message:

This passes the isolate through to API callback functions so that it is
available through AccessorInfo and Arguments. This allows bindings to
avoid unnecessary TLS lookups to retrieve the current isolate.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10083001
Patch from Daniel Kalmar <kalmard@homejinni.com>.

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

12 years agoMIPS: Improve performance of keyed loads/stores which have a HeapNumber index.
fschneider@chromium.org [Fri, 13 Apr 2012 13:04:51 +0000 (13:04 +0000)]
MIPS: Improve performance of keyed loads/stores which have a HeapNumber index.

Port r11282 (bd2ab07).

Patch by Daniel Kalmar.

Original commit message:

Some GWT compiled code results in array access that has a heap number (e.g. -0)
as an index. Until now this would result in a generic IC.

For example:

a[-0] === a[0] or

a[0.25 * 4] === a[1]

This change detects heap numbers that are representable as a smi
and converts them. As a result we can still use the fast keyed monomorphic
ICs. Optimized code already handles keyed access with a double-key efficiently.

As a result the frame rate on the reported benchmark improves by roughly 2x.

BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10068012

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

12 years agoSplit nodes and edges into separate arrays in heap snapshot serialization.
alexeif@chromium.org [Fri, 13 Apr 2012 12:50:48 +0000 (12:50 +0000)]
Split nodes and edges into separate arrays in heap snapshot serialization.

Review URL: https://chromiumcodereview.appspot.com/10037004

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

12 years agoMIPS: Implement CheckNotCharacterAfterMinusAnd. This is a commit of http://coderevie...
erik.corry@gmail.com [Fri, 13 Apr 2012 11:47:31 +0000 (11:47 +0000)]
MIPS: Implement CheckNotCharacterAfterMinusAnd.  This is a commit of codereview.chromium.org/9721011/ for Daniel Kalmar

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

12 years agoFix r11306 to use external references on X64.
mstarzinger@chromium.org [Fri, 13 Apr 2012 11:25:13 +0000 (11:25 +0000)]
Fix r11306 to use external references on X64.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10079004

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

12 years agoRegexp.rightContext was still not quite right. Fixed and
erik.corry@gmail.com [Fri, 13 Apr 2012 11:03:22 +0000 (11:03 +0000)]
Regexp.rightContext was still not quite right.  Fixed and
added more tests.
Review URL: https://chromiumcodereview.appspot.com/10008104

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

12 years agoProvide empty default implementation of OutputStream::WriteUint32Chunk to make Webkit...
jkummerow@chromium.org [Fri, 13 Apr 2012 10:57:17 +0000 (10:57 +0000)]
Provide empty default implementation of OutputStream::WriteUint32Chunk to make Webkit V8 bindings compile

Review URL: https://chromiumcodereview.appspot.com/10084001

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

12 years agoFix several ancient presubmit failures.
mstarzinger@chromium.org [Fri, 13 Apr 2012 09:58:29 +0000 (09:58 +0000)]
Fix several ancient presubmit failures.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10038046

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

12 years agoPrepare push to trunk. Now working on version 3.10.3.
jkummerow@chromium.org [Fri, 13 Apr 2012 09:44:33 +0000 (09:44 +0000)]
Prepare push to trunk.  Now working on version 3.10.3.

R=danno@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10071039

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

12 years agoAdd isolate accessor to AccessorInfo and Arguments.
mstarzinger@chromium.org [Fri, 13 Apr 2012 09:38:00 +0000 (09:38 +0000)]
Add isolate accessor to AccessorInfo and Arguments.

This passes the isolate through to API callback functions so that it is
available through AccessorInfo and Arguments. This allows bindings to
avoid unnecessary TLS lookups to retrieve the current isolate.

R=danno@chromium.org
TEST=cctest/test-api,cctest/test-accessors

Review URL: https://chromiumcodereview.appspot.com/10069050

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

12 years agoPrepare DefinePropertyAccessor for callback transitions.
svenpanne@chromium.org [Fri, 13 Apr 2012 09:35:18 +0000 (09:35 +0000)]
Prepare DefinePropertyAccessor for callback transitions.

Although things are currently OK here, in the future it won't be enough to check
for the existence of a CALLBACKS result, we must additionally check that it
actually contains an accessor. In a nutshell: 'sed s/IsFound/IsProperty/' once
again...

Additionally, the control flow in DefinePropertyAccessor has been simplified by
using a helper function.

Review URL: https://chromiumcodereview.appspot.com/10071009

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

12 years agoBuild fix for Mac.
loislo@chromium.org [Fri, 13 Apr 2012 09:19:01 +0000 (09:19 +0000)]
Build fix for Mac.
warning: base class 'class v8::OutputStream' should be explicitly initialized in the copy constructor

BUG=none
TEST=none
TBR=mnaganov

Review URL: https://chromiumcodereview.appspot.com/10038044

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

12 years agoMIPS: Increase external array allocation header size to 8 bytes.
jkummerow@chromium.org [Fri, 13 Apr 2012 09:00:02 +0000 (09:00 +0000)]
MIPS: Increase external array allocation header size to 8 bytes.

This fixes alignment issues on MIPS HW, found for example in mjsunit external-array.
The issue originates from r11144 (86563c3e21) which adds a 4-byte header to these arrays.
This causes problems on MIPS, where certain pointers need to be 8-byte aligned.

BUG=
TEST=mjsunit/external-array

Review URL: https://chromiumcodereview.appspot.com/9956049

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

12 years agoThis patch is introducing a way to grab heap stats.
loislo@chromium.org [Fri, 13 Apr 2012 08:52:25 +0000 (08:52 +0000)]
This patch is introducing a way to grab heap stats.
The idea is to monitor the heap regulary and track each object in the heap.
With this data we will be able do draw heap usage diagram.
Where X is time and Y is the number of objects.

BUG=none
TEST=HeapSnapshotObjectsStats

Review URL: https://chromiumcodereview.appspot.com/10049002

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

12 years agoRemove line breaks that GYP didn't like
jkummerow@chromium.org [Fri, 13 Apr 2012 08:47:45 +0000 (08:47 +0000)]
Remove line breaks that GYP didn't like

Review URL: https://chromiumcodereview.appspot.com/10067032

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

12 years agoFix native ARM build
jkummerow@chromium.org [Fri, 13 Apr 2012 07:59:09 +0000 (07:59 +0000)]
Fix native ARM build

BUG=v8:1744, v8:539

Review URL: https://chromiumcodereview.appspot.com/10008082

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

12 years agoUntabify test/mjsunit/regress/regress-119609.js.
vegorov@chromium.org [Thu, 12 Apr 2012 20:29:48 +0000 (20:29 +0000)]
Untabify test/mjsunit/regress/regress-119609.js.

TBR=kmillikin@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10067017

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

12 years agoReturn LOOKUP variable instead of CONTEXT for non-context allocated outer scope param...
vegorov@chromium.org [Thu, 12 Apr 2012 19:32:29 +0000 (19:32 +0000)]
Return LOOKUP variable instead of CONTEXT for non-context allocated outer scope parameters.

R=kmillikin@chromium.org
BUG=chromium:119609
TEST=test/mjsunit/regress/regress-119609.js

Review URL: https://chromiumcodereview.appspot.com/10010046

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

12 years agoFix regular and ElementsKind transitions interfering with each other
jkummerow@chromium.org [Thu, 12 Apr 2012 12:30:32 +0000 (12:30 +0000)]
Fix regular and ElementsKind transitions interfering with each other

R=danno@chromium.org
BUG=122271
TEST=mjsunit/regress/regress-crbug-122271

Review URL: https://chromiumcodereview.appspot.com/10038010

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

12 years agoRegexp: Fix rightContext in the lastMatchInfoOverride
erikcorry [Thu, 12 Apr 2012 12:13:18 +0000 (12:13 +0000)]
Regexp: Fix rightContext in the lastMatchInfoOverride
case.
Review URL: http://codereview.chromium.org/10068010

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

12 years agoCleanup test-alloc unit test case.
mstarzinger@chromium.org [Thu, 12 Apr 2012 10:06:32 +0000 (10:06 +0000)]
Cleanup test-alloc unit test case.

This makes the test-alloc test case more robust against changes to the
initial heap size. It correctly simulates a full space now instead of
trying to fill the space up by allocating filler objects.

R=svenpanne@chromium.org
TEST=cctest/test-alloc

Review URL: https://chromiumcodereview.appspot.com/10071003

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

12 years agoMIPS: NaNs in the snapshot should be quiet according
erik.corry@gmail.com [Thu, 12 Apr 2012 09:23:26 +0000 (09:23 +0000)]
MIPS: NaNs in the snapshot should be quiet according
to the MIPS FPU even when cross-building the snapshot.
This is based on code from Daniel Kalmar from
http://codereview.chromium.org/9910029/
Review URL: https://chromiumcodereview.appspot.com/10068006

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

12 years agoImprove performance of keyed loads/stores which have a HeapNumber index.
fschneider@chromium.org [Thu, 12 Apr 2012 08:35:30 +0000 (08:35 +0000)]
Improve performance of keyed loads/stores which have a HeapNumber index.

Some GWT compiled code results in array access that has a heap number (e.g. -0)
as an index. Until now this would result in a generic IC.

For example:

a[-0] === a[0] or

a[0.25 * 4] === a[1]

This change detects heap numbers that are representable as a smi
and converts them. As a result we can still use the fast keyed monomorphic
ICs. Optimized code already handles keyed access with a double-key efficiently.

As a result the frame rate on the reported benchmark improves by roughly 2x.

BUG=v8:1388,v8:1295
Review URL: https://chromiumcodereview.appspot.com/9837109

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

12 years agoPort regexp microoptimizations to MIPS. Also fix some formatting. This includes...
erik.corry@gmail.com [Thu, 12 Apr 2012 07:45:25 +0000 (07:45 +0000)]
Port regexp microoptimizations to MIPS.  Also fix some formatting.  This includes codereview.chromium.org/9965107/ from Daniel Kalmar

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

12 years agoFix compile error in r11279.
mstarzinger@chromium.org [Wed, 11 Apr 2012 15:47:46 +0000 (15:47 +0000)]
Fix compile error in r11279.

TBR=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9969156

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

12 years agoFix WeakMap processing for evacuation candidates (2).
mstarzinger@chromium.org [Wed, 11 Apr 2012 15:32:31 +0000 (15:32 +0000)]
Fix WeakMap processing for evacuation candidates (2).

This fixes processing of WeakMaps so that keys on evacuation candidates
which are also reachable by other strong paths are correctly recorded in
the slots buffer.

Also backing stores that reside in the large-object-space now use the
correct anchor slot.

R=vegorov@chromium.org
BUG=v8:2060
TEST=cctest/test-weakmaps/Regress2060b

Review URL: https://chromiumcodereview.appspot.com/10034018

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

12 years agoSkip canonicalization check in LStoreKeyedFastDoubleElement when it is not needed:
vegorov@chromium.org [Wed, 11 Apr 2012 14:08:11 +0000 (14:08 +0000)]
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).

R=danno@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10054009

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

12 years agoA version of test-api.cc that compiles both on Mac and on Linux.
erikcorry [Wed, 11 Apr 2012 13:41:48 +0000 (13:41 +0000)]
A version of test-api.cc that compiles both on Mac and on Linux.
Review URL: http://codereview.chromium.org/10050013

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

12 years agoReland arguments access support for inlined functions (r11109,r11118).
vegorov@chromium.org [Wed, 11 Apr 2012 13:40:55 +0000 (13:40 +0000)]
Reland arguments access support for inlined functions (r11109,r11118).

When pushing arguments use correct initial values instead of fetching them from the environment which can be modified.

R=fschneider@chromium.org
TEST=test/mjsunit/compiler/inline-arguments.js

Review URL: https://chromiumcodereview.appspot.com/10033028

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

12 years agoFix presubmit error in r11270.
mstarzinger@chromium.org [Wed, 11 Apr 2012 11:45:14 +0000 (11:45 +0000)]
Fix presubmit error in r11270.

R=danno@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10053011

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

12 years agoRemove write-barriers for stores to new-space objects.
mstarzinger@chromium.org [Wed, 11 Apr 2012 10:56:16 +0000 (10:56 +0000)]
Remove write-barriers for stores to new-space objects.

This change allows hydrogen instructions to keep track of instructions
that dominate certain side-effects (GVN flags) in the hydrogen graph. We
use the GVN pass to keep track of side-effects because accurate flags
are already in place.

It also adds a new side-effect (kChangesNewSpacePromotion) indicating
whether an instruction can cause a GC and have objects be promoted to
old-space. An object allocated in new-space is sure to stay on paths not
having said side-effect.

R=erik.corry@gmail.com
TEST=mjsunit/compiler/inline-construct

Review URL: https://chromiumcodereview.appspot.com/10031031

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

12 years agoFix Windows 64 bit compile.
erik.corry@gmail.com [Wed, 11 Apr 2012 10:18:42 +0000 (10:18 +0000)]
Fix Windows 64 bit compile.
Review URL: https://chromiumcodereview.appspot.com/10034014

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