platform/upstream/v8.git
15 years agoRefactored the evn override handling to a single method and fixed the handling
sgjesse@gmail.com [Fri, 5 Sep 2008 10:00:50 +0000 (10:00 +0000)]
Refactored the evn override handling to a single method and fixed the handling
of the case where ENV is not a dictionary which could happen when the
environment variable ENV was set when invoking SCons.

Fixed building dynamic library on Windows in the case where env overrides was
specified as before these was not passed to the linking of the DLL.

There is still a SCons issue when the environment variable ENV is set when
invoking SCons, however this looks like a SCons issue.

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

15 years agoRemoved spaces to fix lint.
sgjesse [Fri, 5 Sep 2008 09:41:30 +0000 (09:41 +0000)]
Removed spaces to fix lint.

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

15 years agoChanged the check for debug event messages in the debug tests
sgjesse [Fri, 5 Sep 2008 09:01:12 +0000 (09:01 +0000)]
Changed the check for debug event messages in the debug tests
to be independent of the order of the properties in the JSON
string.

Reenabled the disabled debug tests.

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

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

15 years agoApplied Rafal Krypa's patch to fix gcc 4.3.2 build problems.
ager@chromium.org [Fri, 5 Sep 2008 07:46:32 +0000 (07:46 +0000)]
Applied Rafal Krypa's patch to fix gcc 4.3.2 build problems.

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

15 years agoDisable three debug tests that failed because they rely on wrong for-in order.
feng@chromium.org [Fri, 5 Sep 2008 00:04:37 +0000 (00:04 +0000)]
Disable three debug tests that failed because they rely on wrong for-in order.

Added a DISABLED_TEST macro to cctest.h, and cleanup cctest.cc a bit.

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

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

15 years agogit-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@147 ce2b1a6d-e550...
feng@chromium.org [Thu, 4 Sep 2008 20:49:18 +0000 (20:49 +0000)]
git-svn-id: v8.googlecode.com/svn/branches/bleeding_edge@147 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

15 years agoIf CCFLAGS contains '-m32', LINKFLAGS needs also needs '-m32'.
ager@chromium.org [Thu, 4 Sep 2008 20:40:40 +0000 (20:40 +0000)]
If CCFLAGS contains '-m32', LINKFLAGS needs also needs '-m32'.
Otherwise, ld complains and refuses to work.

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

15 years agoUpdate version tag in bleeding_edge branch. Now working on 0.3.1.
ager@chromium.org [Thu, 4 Sep 2008 13:58:16 +0000 (13:58 +0000)]
Update version tag in bleeding_edge branch.  Now working on 0.3.1.

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

15 years agoMinor cleanup: the smartpointer class should use DeleteArray to
ager@chromium.org [Thu, 4 Sep 2008 13:09:12 +0000 (13:09 +0000)]
Minor cleanup: the smartpointer class should use DeleteArray to
deallocate.

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

15 years agoUpdate the test expectation for a flaky test.
ager@chromium.org [Thu, 4 Sep 2008 12:53:41 +0000 (12:53 +0000)]
Update the test expectation for a flaky test.

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

15 years agoRenamed the include file debug.h to v8-debug.h to avoid possible
sgjesse [Thu, 4 Sep 2008 10:03:17 +0000 (10:03 +0000)]
Renamed the include file debug.h to v8-debug.h to avoid possible
name conflicts.

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

15 years agoMake Date.prototype.toTimeString and Date.prototype.toLocaleTimeString
ager@chromium.org [Thu, 4 Sep 2008 07:13:21 +0000 (07:13 +0000)]
Make Date.prototype.toTimeString and Date.prototype.toLocaleTimeString
only return the time portion of the date.

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

15 years agoUpdate mozilla test results.
erik.corry@gmail.com [Wed, 3 Sep 2008 20:05:12 +0000 (20:05 +0000)]
Update mozilla test results.

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

15 years agoAdd the profiler tick processors to the tools directory.
ager@chromium.org [Wed, 3 Sep 2008 19:15:48 +0000 (19:15 +0000)]
Add the profiler tick processors to the tools directory.

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

15 years agoApplied Rene Rebe's patch to fix compilation with gcc-4.3 (identical
christian.plesner.hansen@gmail.com [Wed, 3 Sep 2008 08:19:44 +0000 (08:19 +0000)]
Applied Rene Rebe's patch to fix compilation with gcc-4.3 (identical
to Seo Sanghyeon and Koda's).  Yay, our first patch!

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

15 years agoFix the 'in' operator so it works correctly for negative indices.
ager@chromium.org [Wed, 3 Sep 2008 07:34:21 +0000 (07:34 +0000)]
Fix the 'in' operator so it works correctly for negative indices.

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

15 years ago- Added some "special" tests that were left out before.
christian.plesner.hansen@gmail.com [Wed, 3 Sep 2008 07:31:19 +0000 (07:31 +0000)]
- Added some "special" tests that were left out before.
- Added option to test runner that allows us to run the tests under
  valgrind.
- Added test status for the failing arm simulator tests.

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

15 years agoMove JS_VALUE_TYPE ahead of JS_OBJECT_TYPE to save one comparison in
feng.qian.v8 [Tue, 2 Sep 2008 23:52:50 +0000 (23:52 +0000)]
Move JS_VALUE_TYPE ahead of JS_OBJECT_TYPE to save one comparison in
KeyedLoadIC::GenerateGeneric (on IA32), and the same on ARM.
Re-assignmed FIRST_JS_OBJECT_TYPE to JS_VALUE_TYPE.

Also changed JS_OBJECT_TYPE to FIRST_JS_OBJECT_TYPE in several places where
FIRST_JS_OBJECT_TYPE is intended.

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

15 years agoChange __ mov(eax, TOS) to
feng.qian.v8 [Tue, 2 Sep 2008 21:47:45 +0000 (21:47 +0000)]
Change __ mov(eax, TOS) to
__ pop(eax);
...
__ push(eax);
to enable push/pop eliminations.

__ push(eax) must happen before RecordWrite because RecordWrite may destroy
eax value. To be safe, also moved __ push(r0) on ARM to above RecordWrite.

This only affects the case where a context variable is used in a inner scope.

Create a tests for it. It fails if __ push(eax) is after RecordWrite.

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

15 years ago- Added test status spec to cctests to make arm simulator tests run.
christian.plesner.hansen@gmail.com [Tue, 2 Sep 2008 15:20:38 +0000 (15:20 +0000)]
- Added test status spec to cctests to make arm simulator tests run.
- Added test script option to override platform guess (again, to be
  able to run arm sim tests on intel).

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

15 years agoUpdate version tag in bleeding_edge branch. We're now working
v8.team.kasperl@gmail.com [Tue, 2 Sep 2008 15:02:43 +0000 (15:02 +0000)]
Update version tag in bleeding_edge branch. We're now working
towards version 0.3.0.

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

15 years agoHandle spaces in the working directory when running tests on Windows.
sgjesse@gmail.com [Tue, 2 Sep 2008 14:47:10 +0000 (14:47 +0000)]
Handle spaces in the working directory when running tests on Windows.

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

15 years agoAllow a test that relies on non-standard timer resolution on Windows
mads.s.ager@gmail.com [Tue, 2 Sep 2008 12:42:10 +0000 (12:42 +0000)]
Allow a test that relies on non-standard timer resolution on Windows
to fail on Windows.

Updated mozilla.status to use correct syntax for tests that are
allowed to fail in debug mode.

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

15 years agoAdd the SCons environment override to the building of the samples and
sgjesse@gmail.com [Tue, 2 Sep 2008 12:20:15 +0000 (12:20 +0000)]
Add the SCons environment override to the building of the samples and
the tests.

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

15 years agoIgnore missing copyright notices for EarleyBoyer and RayTrace
v8.team.kasperl@gmail.com [Tue, 2 Sep 2008 11:40:18 +0000 (11:40 +0000)]
Ignore missing copyright notices for EarleyBoyer and RayTrace
benchmarks.

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

15 years agoAdded version 1 of the V8 benchmark suite to the repository.
v8.team.kasperl@gmail.com [Tue, 2 Sep 2008 11:06:49 +0000 (11:06 +0000)]
Added version 1 of the V8 benchmark suite to the repository.

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

15 years agoAdd option 'env' to the SCons build scripts to support overriding the
sgjesse@gmail.com [Tue, 2 Sep 2008 09:05:53 +0000 (09:05 +0000)]
Add option 'env' to the SCons build scripts to support overriding the
ENV part of the build environment. This is mostly to support Windows
builds in cases where SCons cannot find the correct paths to the
Windows SDK, as these paths cannot be passed through shell envrionment
variables.

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

15 years agoMore updates to the API documentation.
mads.s.ager@gmail.com [Mon, 1 Sep 2008 20:37:06 +0000 (20:37 +0000)]
More updates to the API documentation.

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

15 years agoComment formatting change.
mads.s.ager [Mon, 1 Sep 2008 18:48:24 +0000 (18:48 +0000)]
Comment formatting change.

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

15 years agoUpdated V8 API documentation.
mads.s.ager@gmail.com [Mon, 1 Sep 2008 18:22:49 +0000 (18:22 +0000)]
Updated V8 API documentation.

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

15 years agoCorrected a few typos, other minor edits to comments
lesleyb555 [Mon, 1 Sep 2008 17:31:57 +0000 (17:31 +0000)]
Corrected a few typos, other minor edits to comments

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

15 years agoRevert unsafe change to code generator which is causing regressions.
mads.s.ager@gmail.com [Mon, 1 Sep 2008 15:10:20 +0000 (15:10 +0000)]
Revert unsafe change to code generator which is causing regressions.

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

15 years agoHack to avoid bug in scons 0.ninety-something which doesn't allow
christian.plesner.hansen@gmail.com [Mon, 1 Sep 2008 12:00:32 +0000 (12:00 +0000)]
Hack to avoid bug in scons 0.ninety-something which doesn't allow
warning options to be set.  I'm loving scons right now.

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

15 years agoRenamed the top level directory 'public' to 'include'.
sgjesse@gmail.com [Mon, 1 Sep 2008 11:48:50 +0000 (11:48 +0000)]
Renamed the top level directory 'public' to 'include'.

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

15 years agoSwitched back on the "Buffer Security Check" on Windows SCons build.
sgjesse@gmail.com [Mon, 1 Sep 2008 10:16:00 +0000 (10:16 +0000)]
Switched back on the "Buffer Security Check" on Windows SCons build.

Added the Windows linker option /OPT:ICF in the SCons build file.

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

15 years agoCreated a factory method for allocating the debug info object. The new
sgjesse@gmail.com [Mon, 1 Sep 2008 10:15:45 +0000 (10:15 +0000)]
Created a factory method for allocating the debug info object. The new
method ensures that there are no allocations during the setup.

This fixes test breakage on Linux in debug mode where allocation
happened while the debug info object was not fully set up making
verify heap unhappy.

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

15 years agoShut up env.Copy warning. This breaks the build with scons 0.97
christian.plesner.hansen@gmail.com [Mon, 1 Sep 2008 09:34:14 +0000 (09:34 +0000)]
Shut up env.Copy warning.  This breaks the build with scons 0.97
because of a bug in that version but it's easy to solve by upgrading
to 1.0.

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

15 years agoTest that I can submit to new repository and fix lots of typos in comments.
kodandersson@gmail.com [Mon, 1 Sep 2008 09:16:49 +0000 (09:16 +0000)]
Test that I can submit to new repository and fix lots of typos in comments.

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

15 years agoUpdate version number. Now working on 0.2.5.
mads.s.ager@gmail.com [Mon, 1 Sep 2008 09:02:51 +0000 (09:02 +0000)]
Update version number.  Now working on 0.2.5.

Fixed typo in v8.h.

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

15 years agoFix typo in test.py.
mads.s.ager@gmail.com [Mon, 1 Sep 2008 07:01:02 +0000 (07:01 +0000)]
Fix typo in test.py.

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

15 years agoChanged two IA-32 assembler tests to use the stack below the return address as
sgjesse@gmail.com [Mon, 1 Sep 2008 06:41:12 +0000 (06:41 +0000)]
Changed two IA-32 assembler tests to use the stack below the return address as
temporary storage for moving data from register xmm0 to st(0) instead of overwriting
the parameters. This fixes a test that crashed on Windows in release build due to
stack corruption.

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

15 years agoIntroduce ZoneScope class to keep track of zone deletion. Remove
mads.s.ager@gmail.com [Mon, 1 Sep 2008 06:06:52 +0000 (06:06 +0000)]
Introduce ZoneScope class to keep track of zone deletion.  Remove
unsafe calls to Zone::DeleteAll() from parser and use ZoneScopes
instead.

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

15 years agoupdated front page
lesleyb555 [Sat, 30 Aug 2008 10:36:54 +0000 (10:36 +0000)]
updated front page

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

15 years agoChecking I can edit
lesleyb555 [Fri, 29 Aug 2008 17:09:30 +0000 (17:09 +0000)]
Checking I can edit

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

15 years agoAdded presubmit step that runs cpplint and checks for missing
christian.plesner.hansen@gmail.com [Fri, 29 Aug 2008 12:52:21 +0000 (12:52 +0000)]
Added presubmit step that runs cpplint and checks for missing
copyrights.  Fixed some lint issues in the samples.  Added better
error handling for crashing tests on windows.

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

15 years agoRemoved the implicit call to DebugBreak when receiving debugger commands
sgjesse@gmail.com [Fri, 29 Aug 2008 12:04:25 +0000 (12:04 +0000)]
Removed the implicit call to DebugBreak when receiving debugger commands
while V8 is running.

A debugger using the V8 message based interface now needs to control the
call to DebugBreak in order for the messages send to be processed. Commands can
still be send when V8 is not in a break, but they will not be processed until
there is a break. The response "request queued" when queuing up messages have
been removed. This gets rid of a non JSON message being used.

Modified the threaded debugger tests to call DebugBreak instead of relying
on it occouring automatically.

This change will not be committed until the outstanding Chrome change
http://chrome-reviews.prom.corp.google.com/2072 (which updates Chrome to control
the DebugBreak call) have been reviewed and committed.

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

15 years agoNormalize the test suite path before passing it to basename. basename
mads.s.ager@gmail.com [Fri, 29 Aug 2008 11:01:05 +0000 (11:01 +0000)]
Normalize the test suite path before passing it to basename.  basename
returns '' if the path ends in a path separator.

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

15 years agoChange the mozilla test support. The mozilla tests are now expected
mads.s.ager@gmail.com [Fri, 29 Aug 2008 09:39:51 +0000 (09:39 +0000)]
Change the mozilla test support.  The mozilla tests are now expected
to be located at tests/mozilla/data.

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

15 years agoAdd Visual Studio solution and Visual Studio project for building the
sgjesse@gmail.com [Fri, 29 Aug 2008 09:32:03 +0000 (09:32 +0000)]
Add Visual Studio solution and Visual Studio project for building the
cctest.

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

15 years agoRemoved the library=default option.
christian.plesner.hansen [Fri, 29 Aug 2008 09:31:07 +0000 (09:31 +0000)]
Removed the library=default option.

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

15 years agoAdd executable bit.
erik.corry@gmail.com [Fri, 29 Aug 2008 09:29:21 +0000 (09:29 +0000)]
Add executable bit.

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

15 years agoClean up a couple of runtime functions that mixed handles and raw
mads.s.ager@gmail.com [Fri, 29 Aug 2008 08:48:06 +0000 (08:48 +0000)]
Clean up a couple of runtime functions that mixed handles and raw
pointers.

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

15 years agoDeal with timeouts when running test cases.
v8.team.kasperl@gmail.com [Fri, 29 Aug 2008 08:06:17 +0000 (08:06 +0000)]
Deal with timeouts when running test cases.

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

15 years agoAdd a test that access a property name in its unicode escaped form.
feng.qian.v8 [Thu, 28 Aug 2008 18:32:52 +0000 (18:32 +0000)]
Add a test that access a property name in its unicode escaped form.

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

15 years agoChanged status file support for the tests. The testcfg.py script is
mads.s.ager@gmail.com [Thu, 28 Aug 2008 13:17:47 +0000 (13:17 +0000)]
Changed status file support for the tests.  The testcfg.py script is
now responsible for adding the status information for the tests in the
corresponding test suite.

Added status file from mjsunit tests.

Added tests for known bugs.

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

15 years agoMake test.py executable.
mads.s.ager@gmail.com [Thu, 28 Aug 2008 10:50:31 +0000 (10:50 +0000)]
Make test.py executable.

Changed eol-style on debug-sourceinfo.js since the test expects CRLF
endings.

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

15 years agoAlways check the prototype chain for a setter, when setting a property
whessev8 [Thu, 28 Aug 2008 10:23:27 +0000 (10:23 +0000)]
Always check the prototype chain for a setter, when setting a property
that does not exist locally.  Previously, map transitions broke this
check.

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

15 years agoImproved test support.
mads.s.ager@gmail.com [Thu, 28 Aug 2008 09:55:41 +0000 (09:55 +0000)]
Improved test support.

Fixed issue with building samples and cctests on 64-bit machines.

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

15 years ago- Fixed issue when building samples and cctests on 64-bit machines.
christian.plesner.hansen [Wed, 27 Aug 2008 13:47:52 +0000 (13:47 +0000)]
- Fixed issue when building samples and cctests on 64-bit machines.
- Fixed mozilla test breakage caused by python's obscure module
  loading rules.
- Made sure test.py propagates test failures out as the exit code of
  the script.
- Remove runtime calls to get number constants. Remove Heap roots for
  some special numbers.
- Fix typo in accessors.h.
- Changes CopyMap to not copy descriptors.  Adds
  CopyMapRemoveTransitions that copies non-transition descriptors.
  Changes interface of DescriptorArray::Copy operations to simplify
  them.

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

15 years agoChanged shell sample to take flags directly from the command-line. Added api call...
christian.plesner.hansen [Wed, 27 Aug 2008 10:11:39 +0000 (10:11 +0000)]
Changed shell sample to take flags directly from the command-line.  Added api call that implements this.

Added better test support.

Added load, quit and version functions to the shell sample so it's easier to run benchmarks and tests.

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

15 years agoIncluded mjsunit JavaScript test suite and C++ unit tests.
christian.plesner.hansen [Fri, 22 Aug 2008 13:33:59 +0000 (13:33 +0000)]
Included mjsunit JavaScript test suite and C++ unit tests.

In the shell sample don't print the result of executing a script, only
evaluating expressions.

Fixed issue when building samples on Windows using a shared V8
library.  Added visibility option on Linux build which makes the
generated library 18% smaller.

Changed build system to accept multiple build modes in one build and
generate seperate objects, libraries and executables for each mode.

Removed deferred negation optimization (a * -b => -(a * b)) since this
visibly changes operand conversion order.

Improved parsing performance by introducing stack guard in preparsing.
Without a stack guard preparsing always bails out with stack overflow.

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

15 years agoCopied version 0.2.3 (trunk@14) to branches/bleeding_edge which will be used for...
kasper.lund [Fri, 22 Aug 2008 09:36:03 +0000 (09:36 +0000)]
Copied version 0.2.3 (trunk@14) to branches/bleeding_edge which will be used for day-to-day development.

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

15 years agoImproved performance of garbage collection by moving the function that updates pointe...
mads.s.ager [Thu, 14 Aug 2008 13:41:48 +0000 (13:41 +0000)]
Improved performance of garbage collection by moving the function that updates pointers during compacting collection into the updating visitor.  This gives the compiler a better chance to inline and avoid a function call per (potential) pointer.

Extended the shell sample with a --runtime-flags option.

Added Visual Studio project files for the shell.cc and process.cc samples.

git-svn-id: http://v8.googlecode.com/svn/trunk@14 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

15 years agoImproved performance of garbage collection by changing the way we use the marking...
mads.s.ager [Wed, 13 Aug 2008 09:32:07 +0000 (09:32 +0000)]
Improved performance of garbage collection by changing the way we use the marking stack in the event of stack overflow during full garbage collection and by changing the way we mark roots.

Cleaned up ARM version by removing top of stack caching and by introducing push/pop elimination.

Cleaned up the way runtime functions are called to allow runtime calls with no arguments.

Changed Windows build options to make sure that exceptions are disabled and that optimization flags are enabled.

Added first version of Visual Studio project files.

git-svn-id: http://v8.googlecode.com/svn/trunk@13 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoAccidentally removed svn:eol-style native from all files. Adding it back.
mads.s.ager [Mon, 11 Aug 2008 06:58:13 +0000 (06:58 +0000)]
Accidentally removed svn:eol-style native from all files.  Adding it back.

git-svn-id: http://v8.googlecode.com/svn/trunk@10 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoImproved performance of unary addition by avoiding runtime calls.
mads.s.ager@gmail.com [Wed, 6 Aug 2008 10:02:49 +0000 (10:02 +0000)]
Improved performance of unary addition by avoiding runtime calls.

Fixed the handling of '>' and '<=' to use right-to-left conversion and left-to-right evaluation as specified by ECMA-262.

Fixed a branch elimination bug on the ARM platform where incorrect code was generated because of overly aggressive branch elimination.

Improved performance of code that repeatedly assigns the same function to the same property of different objects with the same map.

Untangled DEBUG and ENABLE_DISASSEMBLER defines.  The disassembler no longer expects DEBUG to be defined.

Added platform-nullos.cc to serve as the basis for new platform implementations.

git-svn-id: http://v8.googlecode.com/svn/trunk@9 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoChanged all text files to have native svn:eol-style.
kasper.lund [Wed, 30 Jul 2008 08:49:36 +0000 (08:49 +0000)]
Changed all text files to have native svn:eol-style.

Added a few samples and support for building them. The samples include a simple shell that can be used to benchmark and test V8.

Changed V8::GetVersion to return the version as a string.

Added source for lazily loaded scripts to snapshots and made serialization non-destructive.

Improved ARM support by fixing the write barrier code to use aligned loads and stores and by removing premature locals optimization that relied on broken support for callee-saved registers (removed).

Refactored the code for marking live objects during garbage collection and the code for allocating objects in paged spaces. Introduced an abstraction for the map word of a heap-allocated object and changed the memory allocator to allocate executable memory only for spaces that may contain code objects.

Moved StringBuilder to utils.h and ScopedLock to platform.h, where they can be used by debugging and logging modules. Added thread-safe message queues for dealing with debugger events.

Fixed the source code reported by toString for certain builtin empty functions and made sure that the prototype property of a function is enumerable.

Improved performance of converting values to condition flags in generated code.

Merged disassembler-{arch} files.

git-svn-id: http://v8.googlecode.com/svn/trunk@8 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoAdded support for storing JavaScript stack traces in a stack allocated buffer to...
kasper.lund [Mon, 28 Jul 2008 12:50:18 +0000 (12:50 +0000)]
Added support for storing JavaScript stack traces in a stack allocated buffer to make it visible in shallow core dumps. Controlled by the --preallocate-message-memory flag which is disabled by default.

git-svn-id: http://v8.googlecode.com/svn/trunk@7 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoFixed bug in JSObject::GetPropertyAttributePostInterceptor where map transitions...
kasper.lund [Fri, 25 Jul 2008 07:37:58 +0000 (07:37 +0000)]
Fixed bug in JSObject::GetPropertyAttributePostInterceptor where map transitions would count as properties.

Allowed aliased eval invocations by treating them as evals in the global context. This may change in the future.

Added support for accessing the last entered context through the API and renamed Context::Current to Context::GetCurrent and Context::GetSecurityContext to Context::GetCurrentSecurityContext.

Fixed bug in the debugger that would cause the debugger scripts to be recursively loaded and changed all disabling of interrupts to be block-structured.

Made snapshot data read-only to allow it to be more easily shared across multiple users of V8 when linked as a shared library.

git-svn-id: http://v8.googlecode.com/svn/trunk@6 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoFixed building on Mac OS X by recognizing i386 and friends as IA-32 platforms.
kasper.lund [Wed, 16 Jul 2008 07:07:30 +0000 (07:07 +0000)]
Fixed building on Mac OS X by recognizing i386 and friends as IA-32 platforms.

Added propagation of stack overflow exceptions that occur while compiling nested functions.

Improved debugger with support for recursive break points and handling of exceptions that occur in the debugger JavaScript code.

Renamed GetInternal to GetInternalField and SetInternal to SetInternalField in the API and moved InternalFieldCount and SetInternalFieldCount from FunctionTemplate to ObjectTemplate.

git-svn-id: http://v8.googlecode.com/svn/trunk@5 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoFixed bug in stack overflow check code for IA-32 targets where a
kasper.lund [Wed, 9 Jul 2008 11:06:54 +0000 (11:06 +0000)]
Fixed bug in stack overflow check code for IA-32 targets where a
non-tagged value in register eax was pushed to the stack.

Fixed potential quadratic behavior when converting strings to numbers.

Fixed bug where the return value from Object::SetProperty could end up
being the property holder instead of the written value.

Improved debugger support by allowing nested break points and by
dealing with stack-overflows when compiling functions before setting
break points in them.

git-svn-id: http://v8.googlecode.com/svn/trunk@4 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoAdded dtoa license file which had been left out of the initial commit.
christian.plesner.hansen [Thu, 3 Jul 2008 15:30:14 +0000 (15:30 +0000)]
Added dtoa license file which had been left out of the initial commit.

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

16 years agoInitial export.
christian.plesner.hansen [Thu, 3 Jul 2008 15:10:15 +0000 (15:10 +0000)]
Initial export.

git-svn-id: http://v8.googlecode.com/svn/trunk@2 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

16 years agoInitial directory structure.
(no author) [Mon, 30 Jun 2008 17:16:55 +0000 (17:16 +0000)]
Initial directory structure.

git-svn-id: http://v8.googlecode.com/svn/trunk@1 ce2b1a6d-e550-0410-aec6-3dcde31c8c00