platform/upstream/v8.git
12 years agoFix missing write-barrier for prototype transitions.
mstarzinger@chromium.org [Thu, 19 Jan 2012 18:50:01 +0000 (18:50 +0000)]
Fix missing write-barrier for prototype transitions.

R=vegorov@chromium.org

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

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

12 years agoFix shared library build.
yangguo@chromium.org [Thu, 19 Jan 2012 17:04:34 +0000 (17:04 +0000)]
Fix shared library build.

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

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

12 years agoFix remote debugger crash.
yangguo@chromium.org [Thu, 19 Jan 2012 16:52:16 +0000 (16:52 +0000)]
Fix remote debugger crash.

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

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

12 years agoPrepare push to trunk. Now working on version 3.8.8.
ulan@chromium.org [Thu, 19 Jan 2012 15:28:48 +0000 (15:28 +0000)]
Prepare push to trunk.  Now working on version 3.8.8.

R=jkummerow@chromium.org

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

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

12 years agoRevert "Immediately use the generic stub when storing into COW arrays"
jkummerow@chromium.org [Thu, 19 Jan 2012 14:58:54 +0000 (14:58 +0000)]
Revert "Immediately use the generic stub when storing into COW arrays"

Due to unexpected performance implications.

This reverts r10429.

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

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

12 years agoAdd missing SmiUntag for string hash calculation in
erik.corry@gmail.com [Thu, 19 Jan 2012 14:43:25 +0000 (14:43 +0000)]
Add missing SmiUntag for string hash calculation in
in-snapshot code on IA32.
Review URL: https://chromiumcodereview.appspot.com/9254027

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

12 years agoMIPS: Use shift and add instead of mul on ARM for integer hash. This is a commit...
erik.corry@gmail.com [Thu, 19 Jan 2012 14:08:48 +0000 (14:08 +0000)]
MIPS: Use shift and add instead of mul on ARM for integer hash.  This is a commit of codereview.chromium.org/9192011/ for Daniel Kalmar

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

12 years agoAdd an assert to the serializer.
erik.corry@gmail.com [Thu, 19 Jan 2012 13:51:45 +0000 (13:51 +0000)]
Add an assert to the serializer.
Review URL: https://chromiumcodereview.appspot.com/9159010

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

12 years agoMIPS: Fix for an ARM register allocation bug.
kmillikin@chromium.org [Thu, 19 Jan 2012 13:41:11 +0000 (13:41 +0000)]
MIPS: Fix for an ARM register allocation bug.

Port r10374 (03bbe39).

Note: the MIPS version was not affected by the bug. This is merely a style cleanup.

Original commit message:
An off-by-one in the register allocator could lead to allocating (and
clobbering) the reserved 0.0 double register.  This required a function with
14 or more live double values.

BUG=
TEST=

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

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

12 years agoFix prototype transition clearing during full GC.
mstarzinger@chromium.org [Thu, 19 Jan 2012 13:38:37 +0000 (13:38 +0000)]
Fix prototype transition clearing during full GC.

R=vegorov@chromium.org

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

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

12 years agoRobustify the clearing of the cache of map-related ICs on the map.
erik.corry@gmail.com [Thu, 19 Jan 2012 13:22:16 +0000 (13:22 +0000)]
Robustify the clearing of the cache of map-related ICs on the map.
Review URL: https://chromiumcodereview.appspot.com/9159009

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

12 years agoMIPS: Tiny improvement of register constraints in LClassOfTest instructions.
fschneider@chromium.org [Thu, 19 Jan 2012 13:07:46 +0000 (13:07 +0000)]
MIPS: Tiny improvement of register constraints in LClassOfTest instructions.

Port r10379 (3399d6).

Original commit message:
The input register does not need to be made writable. We already
allocate enough temp registers and the input register will always
be preserved.

BUG=
TEST=
Review URL: http://codereview.chromium.org/9254025

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

12 years agoMIPS: Inlining Math.min and Math.max in crankshaft.
yangguo@chromium.org [Thu, 19 Jan 2012 12:42:20 +0000 (12:42 +0000)]
MIPS: Inlining Math.min and Math.max in crankshaft.

Port r10391 (7900f3c).

BUG=
TEST=

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

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

12 years agoGenerate faster compares for === and !== with boolean constants.
fschneider@chromium.org [Thu, 19 Jan 2012 12:14:11 +0000 (12:14 +0000)]
Generate faster compares for ===  and !== with boolean constants.
Review URL: http://codereview.chromium.org/9195005

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

12 years agoEnsure that LRandom restores rsi after call to the C function on x64.
vegorov@chromium.org [Thu, 19 Jan 2012 08:43:34 +0000 (08:43 +0000)]
Ensure that LRandom restores rsi after call to the C function on x64.

R=ulan@chromium.org
BUG=http://crbug.com/110509
TEST=test/mjsunit/regress/regress-110509.js

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

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

12 years agoFixing include issues on *bsd when building with scons. Based on a patch by Ben Noord...
yangguo@chromium.org [Thu, 19 Jan 2012 08:43:11 +0000 (08:43 +0000)]
Fixing include issues on *bsd when building with scons. Based on a patch by Ben Noordhuis.

BUG=v8:1897
TEST=

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

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

12 years agoFix typos in JSObject::GetHeaderSize, which just worked by accident.
rossberg@chromium.org [Wed, 18 Jan 2012 17:01:57 +0000 (17:01 +0000)]
Fix typos in JSObject::GetHeaderSize, which just worked by accident.

R=kmillikin@chromium.org
BUG=
TEST=

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

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

12 years agoOnly clear monomorphic ICs on GC after Context exit
jkummerow@chromium.org [Wed, 18 Jan 2012 16:16:11 +0000 (16:16 +0000)]
Only clear monomorphic ICs on GC after Context exit

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

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

12 years agoEliminate a superfluous map check when building generic array element access.
fschneider@chromium.org [Wed, 18 Jan 2012 14:05:11 +0000 (14:05 +0000)]
Eliminate a superfluous map check when building generic array element access.

In the case where we generate a generic load or store, we don't need to emit a non-smi-check and a map-check before it.
Review URL: http://codereview.chromium.org/9252008

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

12 years agoImmediately use the generic stub when storing into COW arrays
jkummerow@chromium.org [Wed, 18 Jan 2012 13:15:22 +0000 (13:15 +0000)]
Immediately use the generic stub when storing into COW arrays

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

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

12 years agoProvide a switch to specify -fno-strict-aliasing
jkummerow@chromium.org [Wed, 18 Jan 2012 10:17:03 +0000 (10:17 +0000)]
Provide a switch to specify -fno-strict-aliasing

BUG=v8:1887

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

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

12 years agoWhen adjusting page's live bytes counter from the mutator adjust owners unswept free...
vegorov@chromium.org [Wed, 18 Jan 2012 09:21:07 +0000 (09:21 +0000)]
When adjusting page's live bytes counter from the mutator adjust owners unswept free bytes counter.

R=mstarzinger@chromium.org
BUG=
TEST=

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

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

12 years agoFix handling of named interceptors in optimized code.
fschneider@chromium.org [Tue, 17 Jan 2012 16:06:03 +0000 (16:06 +0000)]
Fix handling of named interceptors in optimized code.

When calling a constant function property from optimized code,
we need to check that there is no interceptor on the receiver map.

TEST=cctest/InterceptorCallICConstantFunctionNotNeededWrapped
Review URL: http://codereview.chromium.org/9240006

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

12 years agoAllow call-known-global and call-constant-function to be used for call-sites with...
vegorov@chromium.org [Tue, 17 Jan 2012 15:53:58 +0000 (15:53 +0000)]
Allow call-known-global and call-constant-function to be used for call-sites with mismatched number of arguments.

Adjust InvokeFunction to avoid generating dead code when number when arity mismatch is detected in compile time.

R=fschneider@google.com

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

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

12 years agoMove WIN32 define from standalone.gypi to common.gypi
jkummerow@chromium.org [Tue, 17 Jan 2012 14:35:38 +0000 (14:35 +0000)]
Move WIN32 define from standalone.gypi to common.gypi

BUG=v8:1760

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

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

12 years agoRecursion limit for one-char string replace and retire String::kMinNonFlatLength.
yangguo@chromium.org [Tue, 17 Jan 2012 14:29:17 +0000 (14:29 +0000)]
Recursion limit for one-char string replace and retire String::kMinNonFlatLength.

TEST=mjsunit/string-replace-one-char.js

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

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

12 years agoFix corner-case in heap size estimation.
mstarzinger@chromium.org [Tue, 17 Jan 2012 14:09:12 +0000 (14:09 +0000)]
Fix corner-case in heap size estimation.

Empty but unswept pages could cause the unswept_free_bytes counter to
to be off in case heap gets shrunk and page gets released before it was
swept properly.

R=vegorov@chromium.org
BUG=v8:1893

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

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

12 years agoRemove limit for d8 shell input length.
yangguo@chromium.org [Tue, 17 Jan 2012 13:37:09 +0000 (13:37 +0000)]
Remove limit for d8 shell input length.

BUG=
TEST=

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

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

12 years agoRevert 10413-10416 initial memory use reduction due to
erik.corry@gmail.com [Tue, 17 Jan 2012 13:13:55 +0000 (13:13 +0000)]
Revert 10413-10416 initial memory use reduction due to
test failures.
Review URL: http://codereview.chromium.org/9178014

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

12 years agoMake fussy Windows compiler happy.
erik.corry@gmail.com [Tue, 17 Jan 2012 12:49:15 +0000 (12:49 +0000)]
Make fussy Windows compiler happy.
Review URL: http://codereview.chromium.org/9178012

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

12 years agoMake from-space initially uncommitted for another 1Mbyte
erik.corry@gmail.com [Tue, 17 Jan 2012 12:09:11 +0000 (12:09 +0000)]
Make from-space initially uncommitted for another 1Mbyte
improvement in boot time memory usage.
Review URL: http://codereview.chromium.org/9242008

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

12 years agoUnbreak the 64 bit build.
erik.corry@gmail.com [Tue, 17 Jan 2012 11:49:01 +0000 (11:49 +0000)]
Unbreak the 64 bit build.
Review URL: http://codereview.chromium.org/9178011

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

12 years agoReduce boot-up memory use of V8.
erik.corry@gmail.com [Tue, 17 Jan 2012 11:38:25 +0000 (11:38 +0000)]
Reduce boot-up memory use of V8.
Reduce signal sender thread stack size to 32k.
Commit partial old-space pages to reduce minimum memory use.
This is a rebase of http://codereview.chromium.org/9017009/
Review URL: http://codereview.chromium.org/9179012

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

12 years agoFast path for string.replace that replaces a single character by a string.
yangguo@chromium.org [Mon, 16 Jan 2012 15:21:38 +0000 (15:21 +0000)]
Fast path for string.replace that replaces a single character by a string.

BUG=
TEST=

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

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

12 years agoFix and enable NEW_NON_STRICT_FAST ArgumentsAccess stub on x64.
vegorov@chromium.org [Mon, 16 Jan 2012 15:11:56 +0000 (15:11 +0000)]
Fix and enable NEW_NON_STRICT_FAST ArgumentsAccess stub on x64.

R=fschneider@chromium.org
BUG=v8:1903

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

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

12 years agoAdd Android cross-compilation support to top-level Makefile
jkummerow@chromium.org [Mon, 16 Jan 2012 13:29:12 +0000 (13:29 +0000)]
Add Android cross-compilation support to top-level Makefile

TEST=make android

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

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

12 years agoMore spelling changes.
erik.corry@gmail.com [Mon, 16 Jan 2012 12:38:59 +0000 (12:38 +0000)]
More spelling changes.
Review URL: http://codereview.chromium.org/9231009

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

12 years agoFix GCC4.7 compilation warning introduced in r10400
danno@chromium.org [Mon, 16 Jan 2012 11:04:58 +0000 (11:04 +0000)]
Fix GCC4.7 compilation warning introduced in r10400

Add some usages for string1 and string2 to avoid "assigned
but not used" warning.

Review URL: http://codereview.chromium.org/9163003
Patch from Yury Semikhatsky <yurys@chromium.org>.

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

12 years agoPrepare push to trunk. Now working on version 3.8.7.
erik.corry@gmail.com [Mon, 16 Jan 2012 10:28:34 +0000 (10:28 +0000)]
Prepare push to trunk.  Now working on version 3.8.7.
Review URL: http://codereview.chromium.org/9233001

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

12 years agoSpellling mistakes.
erik.corry@gmail.com [Mon, 16 Jan 2012 09:46:21 +0000 (09:46 +0000)]
Spellling mistakes.
Review URL: http://codereview.chromium.org/9123031

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

12 years agoSplit NumberDictionary into a randomly seeded and an unseeded
erik.corry@gmail.com [Mon, 16 Jan 2012 09:44:35 +0000 (09:44 +0000)]
Split NumberDictionary into a randomly seeded and an unseeded
version. We don't want to randomize the stub cache.
Review URL: http://codereview.chromium.org/9174023

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

12 years agoFix flaky idle notification test.
ulan@chromium.org [Mon, 16 Jan 2012 09:40:04 +0000 (09:40 +0000)]
Fix flaky idle notification test.

Idle notification handler might not free more memory if there was a global GC before or incremental marking is not activated (and it's not worth activating).

BUG=
TEST=cctest/test-api/IdleNotificationWithHint

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

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

12 years agoProvide a way for iterating through all external strings referenced from the JS heap
yurys@chromium.org [Fri, 13 Jan 2012 15:14:45 +0000 (15:14 +0000)]
Provide a way for iterating through all external strings referenced from the JS heap
Review URL: http://codereview.chromium.org/9139018

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

12 years agoCosmetic changes ("set up" is a verb, "setup" is a noun).
erik.corry@gmail.com [Fri, 13 Jan 2012 13:09:52 +0000 (13:09 +0000)]
Cosmetic changes ("set up" is a verb, "setup" is a noun).
Review URL: http://codereview.chromium.org/9139051

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

12 years agoSkip disassembling ld.so.cache in ll_prof.py.
yangguo@chromium.org [Fri, 13 Jan 2012 10:23:19 +0000 (10:23 +0000)]
Skip disassembling ld.so.cache in ll_prof.py.

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

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

12 years agoSmall fixes to hash seeding code, discovered during
erik.corry@gmail.com [Fri, 13 Jan 2012 09:38:20 +0000 (09:38 +0000)]
Small fixes to hash seeding code, discovered during
review of back port.
Review URL: http://codereview.chromium.org/9187006

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

12 years agoFixing issue 1898 (using HChange outside the insert-representation-changes phase).
yangguo@chromium.org [Fri, 13 Jan 2012 07:48:44 +0000 (07:48 +0000)]
Fixing issue 1898 (using HChange outside the insert-representation-changes phase).

BUG=v8:1898
TEST=mjsunit/regress/regress-1898.js

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

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

12 years agoImproved output for bailouts on huge functions
svenpanne@chromium.org [Thu, 12 Jan 2012 07:17:46 +0000 (07:17 +0000)]
Improved output for bailouts on huge functions

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

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

12 years agoFix cctest/test-heap/InstanceOfStubWriteBarrier when Crankshaft is disabled.
vegorov@chromium.org [Wed, 11 Jan 2012 17:28:23 +0000 (17:28 +0000)]
Fix cctest/test-heap/InstanceOfStubWriteBarrier when Crankshaft is disabled.

R=fschneider@chromium.org

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

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

12 years agoInlining Math.min and Math.max in crankshaft.
yangguo@chromium.org [Wed, 11 Jan 2012 15:43:33 +0000 (15:43 +0000)]
Inlining Math.min and Math.max in crankshaft.

BUG=v8:1325
TEST=

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

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

12 years agoCorrect nits in d8 ArrayBuffer() implementation
danno@chromium.org [Wed, 11 Jan 2012 15:10:56 +0000 (15:10 +0000)]
Correct nits in d8 ArrayBuffer() implementation

TBR=jkummerow@chromium.org
BUG=none
TEST=external-array.js

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

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

12 years agoAdd primitive WebGL ArrayBuffer() support to d8
danno@chromium.org [Wed, 11 Jan 2012 14:42:58 +0000 (14:42 +0000)]
Add primitive WebGL ArrayBuffer() support to d8

R=jkummerow@chromium.org
BUG=
TEST=

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

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

12 years agoPort Math.random change to MIPS.
ager@chromium.org [Wed, 11 Jan 2012 12:19:11 +0000 (12:19 +0000)]
Port Math.random change to MIPS.

BUG=
TEST=

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

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

12 years agoFix Mac build boken in r10383.
mstarzinger@chromium.org [Wed, 11 Jan 2012 10:59:21 +0000 (10:59 +0000)]
Fix Mac build boken in r10383.

R=vegorov@chromium.org
TEST=cctest/test-heap/TestSizeOfObjects

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

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

12 years agoSupport inlining and crankshaft optimization of Math.random.
ager@chromium.org [Wed, 11 Jan 2012 10:35:37 +0000 (10:35 +0000)]
Support inlining and crankshaft optimization of Math.random.

R=jkummerow@chromium.org
BUG=
TEST=

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

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

12 years agoMake heap size estimation more accurate.
mstarzinger@chromium.org [Wed, 11 Jan 2012 10:33:34 +0000 (10:33 +0000)]
Make heap size estimation more accurate.

This improves the heap size estimation by not counting lazy swept pages
as completely allocated but use their live bytes counter instead.

R=vegorov@chromium.org
BUG=v8:1893
TEST=cctest/test-heap/TestSizeOfObjects

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

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

12 years agoOptimize simple constant cases for bitwise &, | and ^.
fschneider@chromium.org [Wed, 11 Jan 2012 10:01:59 +0000 (10:01 +0000)]
Optimize simple constant cases for bitwise &, | and ^.

For integer bitwise operations we can replace
x & -1 with x,  x | 0 with x and x ^ 0 with x.
Review URL: http://codereview.chromium.org/9177001

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

12 years agoFix build failure introduced by r10380
vegorov@chromium.org [Wed, 11 Jan 2012 09:49:47 +0000 (09:49 +0000)]
Fix build failure introduced by r10380

TBR=mstarzinger@chromium.org

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

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

12 years agoChange inlined cache of intanceof stub to use indirection through cell.
vegorov@chromium.org [Wed, 11 Jan 2012 09:39:37 +0000 (09:39 +0000)]
Change inlined cache of intanceof stub to use indirection through cell.

The stub was directly patching caller's code without issuing write barrier which violated incremental marking invariants.

R=mstarzinger@chromium.org
BUG=http://crbug.com/109448
TEST=cctest/test-heap/InstanceOfStubWriteBarrier

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

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

12 years agoTiny improvement of register constraints in LClassOfTest instructions.
fschneider@chromium.org [Wed, 11 Jan 2012 08:29:42 +0000 (08:29 +0000)]
Tiny improvement of register constraints in LClassOfTest instructions.

The input register does not need to be made writable. We already
allocate enough temp registers and the input register will always
be preserved.
Review URL: http://codereview.chromium.org/9166007

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

12 years agoFix for an ARM register allocation bug.
kmillikin@chromium.org [Tue, 10 Jan 2012 16:59:55 +0000 (16:59 +0000)]
Fix for an ARM register allocation bug.

An off-by-one in the register allocator could lead to allocating (and
clobbering) the reserved 0.0 double register.  This required a function with
14 or more live double values.

BUG=
TEST=

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

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

12 years agoChanges after code review#
svenpanne@chromium.org [Tue, 10 Jan 2012 16:12:24 +0000 (16:12 +0000)]
Changes after code review#

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

12 years agoFixed AccessorPair handling
svenpanne@chromium.org [Tue, 10 Jan 2012 16:12:16 +0000 (16:12 +0000)]
Fixed AccessorPair handling

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

12 years agoUse a separate new type AccessorPair for JavaScript callbacks instead of a FixedArray...
svenpanne@chromium.org [Tue, 10 Jan 2012 16:11:33 +0000 (16:11 +0000)]
Use a separate new type AccessorPair for JavaScript callbacks instead of a FixedArray of length 2

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

12 years agoAvoid recording unnecessary deoptimization environments in a couple of places.
fschneider@chromium.org [Tue, 10 Jan 2012 16:06:32 +0000 (16:06 +0000)]
Avoid recording unnecessary deoptimization environments in a couple of places.

This reduces the number of uses and potentially shortens live ranges.
Review URL: http://codereview.chromium.org/8983018

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

12 years agoInline fast case of CodeGenerationFromStringsAllowed
jkummerow@chromium.org [Tue, 10 Jan 2012 14:52:41 +0000 (14:52 +0000)]
Inline fast case of CodeGenerationFromStringsAllowed

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

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

12 years agoMIPS: Check that address given to __RecordWrite is correct.
erik.corry@gmail.com [Tue, 10 Jan 2012 13:43:44 +0000 (13:43 +0000)]
MIPS: Check that address given to __RecordWrite is correct.
ARM: Clean up equivalent functionality on ARM.
This subsumes http://codereview.chromium.org/8561001/
Review URL: http://codereview.chromium.org/9168006

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

12 years agoMinor cleanups of numeric seeded hashing patch.
erik.corry@gmail.com [Tue, 10 Jan 2012 13:24:18 +0000 (13:24 +0000)]
Minor cleanups of numeric seeded hashing patch.
Review URL: http://codereview.chromium.org/9155010

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

12 years agoAdd seed to hash of numeric keyed properties. This is a commit of http://codereview...
erik.corry@gmail.com [Tue, 10 Jan 2012 12:58:41 +0000 (12:58 +0000)]
Add seed to hash of numeric keyed properties.  This is a commit of codereview.chromium.org/9148006/ for Fedor Indutny.

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

12 years agoFix zero hash handling on ARM.
erik.corry@gmail.com [Tue, 10 Jan 2012 12:01:04 +0000 (12:01 +0000)]
Fix zero hash handling on ARM.
Some cleanup.
Review URL: http://codereview.chromium.org/9169010

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

12 years agoFix handling of -0.0 in IsInt32/IsUInt32
danno@chromium.org [Tue, 10 Jan 2012 10:05:45 +0000 (10:05 +0000)]
Fix handling of -0.0 in IsInt32/IsUInt32

R=ager@chromium.org
BUG=
TEST=

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

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

12 years agoFixing windows builds.
yangguo@chromium.org [Tue, 10 Jan 2012 08:37:45 +0000 (08:37 +0000)]
Fixing windows builds.

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

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

12 years agoFixing minGW build.
yangguo@chromium.org [Tue, 10 Jan 2012 08:17:08 +0000 (08:17 +0000)]
Fixing minGW build.

BUG=
TEST=

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

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

12 years agoMake sure transitioned arrays efficiently call builtin Array functions
danno@chromium.org [Mon, 9 Jan 2012 16:37:47 +0000 (16:37 +0000)]
Make sure transitioned arrays efficiently call builtin Array functions

Loosen the requirement for Map equivalency on several map checks, including checks up the prototype chain, that are not sensitive to ElementsKinds. These selected map checks should also match against FAST_DOUBLE_ELEMENT and FAST_ELEMENT transitions of the original map. This specifically helps all variants of transitioned JSArrays to still efficiently call builtins like push, pop and sort.

BUG=none
TEST=none

Committed: http://code.google.com/p/v8/source/detail?r=10331

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

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

12 years agoUse shift and add instead of mul on ARM for integer hash.
erik.corry@gmail.com [Mon, 9 Jan 2012 13:33:59 +0000 (13:33 +0000)]
Use shift and add instead of mul on ARM for integer hash.
Review URL: http://codereview.chromium.org/9153002

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

12 years agoFix test-hashing after recent changes to string hashing.
erik.corry@gmail.com [Fri, 6 Jan 2012 11:33:20 +0000 (11:33 +0000)]
Fix test-hashing after recent changes to string hashing.
Acriave test-hashing in SCons and buildbot runs.
Small cleanups in root register handling on ARM and MIPS.
Review URL: http://codereview.chromium.org/9110029

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

12 years agoAdjust position recorded for call expressions.
vegorov@chromium.org [Fri, 6 Jan 2012 10:26:17 +0000 (10:26 +0000)]
Adjust position recorded for call expressions.

For calls of the form ident(...) record position of the identifier as the position of the call. For other calls record positions of the opening parenthesis.

This guarantees that for expressions of the form function(){}() call position will not intersect with positions recorded for function literal which is used by the debugger for scope chain resolution.

R=kmillikin@chromium.org
BUG=http://crbug.com/109195
TEST=test/mjsunit/regress/regress-109195.js

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

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

12 years agoMove handlified functions from handles.cc to objects.cc
ulan@chromium.org [Thu, 5 Jan 2012 17:16:19 +0000 (17:16 +0000)]
Move handlified functions from handles.cc to objects.cc

BUG=
TEST=

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

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

12 years agoPrepare push to trunk. Now working on version 3.8.6.
rossberg@chromium.org [Thu, 5 Jan 2012 14:56:44 +0000 (14:56 +0000)]
Prepare push to trunk.  Now working on version 3.8.6.

R=yangguo@chromium.org
BUG=
TEST=

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

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

12 years agoFix several minor issues with grokdump.py tool.
mstarzinger@chromium.org [Thu, 5 Jan 2012 14:28:45 +0000 (14:28 +0000)]
Fix several minor issues with grokdump.py tool.

This includes the following changes:
* Bring instance type mapping up to date.
* Enable loading of maps without available meta-map.
* Add missing IntSize() method.
* Fix reference to Code.CODE_ALIGNMENT_MASK.
* Add alignment checks for objects and maps.

R=vegorov@chromium.org

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

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

12 years agoFix broken test that assumes that no GC can clear the regexp
erik.corry@gmail.com [Thu, 5 Jan 2012 13:16:15 +0000 (13:16 +0000)]
Fix broken test that assumes that no GC can clear the regexp
cache (GC can happen at any time due to Crankshaft).
Review URL: http://codereview.chromium.org/9113012

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

12 years agoFix handling of bogus receivers for Harmony collections.
mstarzinger@chromium.org [Thu, 5 Jan 2012 12:55:06 +0000 (12:55 +0000)]
Fix handling of bogus receivers for Harmony collections.

R=rossberg@chromium.org
BUG=v8:1884
TEST=mjsunit/harmony/collections

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

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

12 years agoAdd netbsd support to gyp build.
yangguo@chromium.org [Thu, 5 Jan 2012 12:17:08 +0000 (12:17 +0000)]
Add netbsd support to gyp build.

Review URL: http://codereview.chromium.org/9071004
Patch from Matthew Sporleder <msporleder@gmail.com>.

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

12 years agoFix the logic that should ensure that a string cannot have
erik.corry@gmail.com [Thu, 5 Jan 2012 10:18:28 +0000 (10:18 +0000)]
Fix the logic that should ensure that a string cannot have
a hash key of zero.
Review URL: http://codereview.chromium.org/9113006

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

12 years agoDetermine page size at runtime on posix platforms. Landing for kalmard. http:/...
erik.corry@gmail.com [Thu, 5 Jan 2012 10:07:33 +0000 (10:07 +0000)]
Determine page size at runtime on posix platforms.  Landing for kalmard.  codereview.chromium.org/9023007/

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

12 years agoAlter the second hash used in StoreBuffer::Compact.
vegorov@chromium.org [Thu, 5 Jan 2012 09:57:10 +0000 (09:57 +0000)]
Alter the second hash used in StoreBuffer::Compact.

hash2 >> (kHashMapLengthLog2 * 2) was always zero because hash2 was masked with (kHashMapLength - 1).

R=erik.corry@gmail.com

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

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

12 years agoMIPS: Avoid embedding new space objects into code objects in the lithium gap resolver.
vegorov@chromium.org [Thu, 5 Jan 2012 09:26:15 +0000 (09:26 +0000)]
MIPS: Avoid embedding new space objects into code objects in the lithium gap resolver.

Port r10301 (c91aeb4c).

BUG=
TEST=

Review URL: http://codereview.chromium.org/9032005
Patch from Daniel Kalmar <kalmard@homejinni.com>.

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

12 years agoEnsure that store buffer filtering hash sets are cleared after StoreBuffer::Filter.
vegorov@chromium.org [Thu, 5 Jan 2012 07:53:28 +0000 (07:53 +0000)]
Ensure that store buffer filtering hash sets are cleared after StoreBuffer::Filter.

R=erik.corry@gmail.com

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

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

12 years agoWhen shrinking semispace don't relink pages if semispace is not committed
vegorov@chromium.org [Wed, 4 Jan 2012 19:59:01 +0000 (19:59 +0000)]
When shrinking semispace don't relink pages if semispace is not committed

R=mstarzinger@chromium.org

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

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

12 years agoRollback 10331: Make sure transitioned arrays efficiently call builtin Array functions
danno@chromium.org [Wed, 4 Jan 2012 17:29:01 +0000 (17:29 +0000)]
Rollback 10331: Make sure transitioned arrays efficiently call builtin Array functions

Due to perf regressions

TBR=fschneider@chromium.org
BUG=none
TEST=none

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

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

12 years agoMake sure transitioned arrays efficiently call builtin Array functions
danno@chromium.org [Wed, 4 Jan 2012 17:16:04 +0000 (17:16 +0000)]
Make sure transitioned arrays efficiently call builtin Array functions

Loosen the requirement for Map equivalency on several map checks, including checks up the prototype chain, that are not sensitive to ElementsKinds. These selected map checks should also match against FAST_DOUBLE_ELEMENT and FAST_ELEMENT transitions of the original map. This specifically helps all variants of transitioned JSArrays to still efficiently call builtins like push, pop and sort.

BUG=none
TEST=none

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

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

12 years agoRandomize the seed used for string hashing. This helps guard against
erik.corry@gmail.com [Wed, 4 Jan 2012 15:12:15 +0000 (15:12 +0000)]
Randomize the seed used for string hashing.  This helps guard against
CPU-eating DOS attacks against node.js servers.  Based on code from
Bert Belder.  This version only solves the issue for those that compile
V8 themselves or those that do not use snapshots.  A snapshot-based
precompiled V8 will still have predictable string hash codes.
Review URL: http://codereview.chromium.org/9086006

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

12 years agoFix a few preprocessor macros that could capture an 'else'.
kmillikin@chromium.org [Wed, 4 Jan 2012 14:45:29 +0000 (14:45 +0000)]
Fix a few preprocessor macros that could capture an 'else'.

Namely they are SLOW_ASSERT, RETURN_IF_SCHEDULED_EXCEPTION, and
RETURN_IF_EMTPY_HANDLE_VALUE.

R=svenpanne@chromium.org
BUG=
TEST=

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

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

12 years agoFix windows build.
yangguo@chromium.org [Wed, 4 Jan 2012 09:58:21 +0000 (09:58 +0000)]
Fix windows build.

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

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

12 years agoMIPS: Undo allocation of half-formed array during elements transition
danno@chromium.org [Wed, 4 Jan 2012 09:40:47 +0000 (09:40 +0000)]
MIPS: Undo allocation of half-formed array during elements transition

Port r10320 (bb429e82)

BUG=
TEST=

Review URL: http://codereview.chromium.org/9082001
Patch from Gergely Kis <gergely@homejinni.com>.

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

12 years agoMIPS: Add InternalArrayCodeGeneric
danno@chromium.org [Wed, 4 Jan 2012 09:39:35 +0000 (09:39 +0000)]
MIPS: Add InternalArrayCodeGeneric

Port r10308 (4e74cc88)

BUG=
TEST=

Review URL: http://codereview.chromium.org/9078002
Patch from Gergely Kis <gergely@homejinni.com>.

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

12 years agoMIPS: Ensure that InternalArrays remain InternalArrays regardless of how they are...
danno@chromium.org [Wed, 4 Jan 2012 09:38:08 +0000 (09:38 +0000)]
MIPS: Ensure that InternalArrays remain InternalArrays regardless of how they are constructed.

Port r10306 (9141da8e)

BUG=
TEST=

Review URL: http://codereview.chromium.org/9080001
Patch from Gergely Kis <gergely@homejinni.com>.

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

12 years agoImplement callback when script finishes running in V8 API.
yangguo@chromium.org [Wed, 4 Jan 2012 08:48:35 +0000 (08:48 +0000)]
Implement callback when script finishes running in V8 API.

TEST=test-api/LeaveScriptCallback

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

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

12 years agoUpdate LICENSE file
danno@chromium.org [Tue, 3 Jan 2012 16:38:42 +0000 (16:38 +0000)]
Update LICENSE file

R=erik.corry@gmail.com
BUG=none
TEST=none

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

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

12 years agoImprove performance of Math.min and Math.max for the case of two arguments.
yangguo@chromium.org [Tue, 3 Jan 2012 10:45:28 +0000 (10:45 +0000)]
Improve performance of Math.min and Math.max for the case of two arguments.

BUG=v8:1325
TEST=

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

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