Commit Graph

56 Commits

Author SHA1 Message Date
agirbal
8d13203c40 SERVER-2976: added M/R pure jsMode with collection output 2011-05-10 15:30:01 -07:00
agirbal
04d364a44d SERVER-2579: optimize append() method to use same BSONObj builder throughout process 2011-05-02 16:08:41 -07:00
agirbal
1725803c20 SERVER-2579: all v8 object creation is now lazy.
Correct allocation and freeing of underlying C++ object.
Correct ordering of object properties even when new ones are added within JS.
Supports deletion of properties with lazzy wrapper.

Also removed scope->setThis in favor of passing it in the invoke() command.
2011-05-02 16:08:41 -07:00
Eliot Horowitz
7efbe7b799 move list of files outside of .h 2011-04-14 20:00:18 -04:00
Mathias Stearn
244b162111 Use intrusive_ptr rather than shared_ptr for BSONObj
Advantages:
* Owned BSONObj now uses 1 heap allocation rather than 3
* sizeof(BSONObj) is now 16 rather than 24 (on 64 bit)
* perftest bson shows it to be much faster

Change in BSONObj constructor API for owned case to make sure old code gets
updated to allocate room for the ref count. Anyone using BSONObjBuilder doesn't
need to worry about this change.
2011-04-03 20:50:45 -04:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
c022b54c08 init( BSONObj* ) can be const * 2010-12-15 09:50:35 -05:00
Eliot Horowitz
4e51d779c6 fix comment parsing in v8 2010-11-29 01:50:57 -05:00
Aaron
d2249cdf68 SERVER-387 enable interrupts for v8 2010-09-23 15:42:24 -07:00
Aaron
8c82a9c5c6 SERVER-387 support killop with db.eval 2010-09-14 17:01:01 -07:00
Eliot Horowitz
b416e09061 Scope::rename and ability to block db access prep for SERVER-1715 2010-09-01 01:32:35 -04:00
Mathias Stearn
e8e772181a Use one string per JS file.
mongo_vstudio.cpp in next push
2010-08-10 14:44:10 -04:00
Mathias Stearn
06cb7f821f use StringData for hardcoded JS files 2010-08-10 14:44:10 -04:00
Dwight
bd28578ab8 stdafx->pch 2010-04-27 15:27:52 -04:00
Eliot Horowitz
48d2acc0de fix where on v8 SERVER-864 2010-04-08 15:26:12 -04:00
Aaron
cd1dfe32b0 Revert "Revert "SERVER-305 record uri on connect""
This reverts commit 149248b4eb.
2010-02-22 12:08:54 -08:00
Aaron
149248b4eb Revert "SERVER-305 record uri on connect"
This reverts commit ae80a66ff8.
2010-02-22 11:40:47 -08:00
Aaron
ae80a66ff8 SERVER-305 record uri on connect 2010-02-22 10:32:55 -08:00
Eliot Horowitz
1342db6674 clean up scope from things removed from system.js SERVER-602 2010-02-07 01:10:12 -05:00
Eliot Horowitz
6df2f6c7e6 make hex_md5 work server side 2010-01-28 12:21:56 -05:00
Aaron
8573d53da7 SERVER-470 MINOR abstract shell init functionality so v8_utils need not link with shell 2009-12-29 18:27:49 -08:00
Eliot Horowitz
fa8961c3e8 Exception classess need codes too SERVER-112 2009-12-28 17:06:07 -05:00
Aaron
81cf93cf8a SERVER-470 fix some v8 locking issues 2009-12-22 17:56:57 -08:00
Aaron
d70db47d96 SERVER-470 unlock v8 appropriately so can do work in parallel 2009-12-22 15:08:17 -08:00
Aaron
bbcc6c1d0c SERVER-446 extract object id string validation to general engine layer 2009-12-21 17:03:12 -08:00
Eliot Horowitz
045a22df7a better m/r error handling and reporting 2009-11-13 11:08:42 -05:00
Eliot Horowitz
ef6bc68882 handle numeric types better 2009-10-27 16:23:07 -04:00
Mathias Stearn
d27c8505ea all client files now marked as Apache 2.0. SERVER-329. 2009-10-27 15:59:37 -04:00
Eliot Horowitz
feabc14657 v8: some cleaning 2009-10-13 11:11:55 -04:00
Eliot Horowitz
445c662ffc cache functions 2009-10-09 11:32:41 -04:00
Eliot Horowitz
b302244b0a don't use assert b/c of windows 2009-09-30 10:08:58 -04:00
Eliot Horowitz
ae3d49d718 allow you to store js functions in the server SERVER-157 2009-09-29 16:54:31 -04:00
Eliot Horowitz
dcbe8fbd95 handle js -> bson in 1 place 2009-09-21 15:54:41 -04:00
Eliot Horowitz
e0496df06d use mmap instead of read 2009-09-21 15:22:15 -04:00
Eliot Horowitz
9ce02334be couple of small optimizations 2009-08-19 11:49:21 -04:00
Eliot Horowitz
b5bb4b2af9 better sm locking 2009-08-12 10:51:31 -04:00
Eliot Horowitz
c9ad39db79 caching js context, also THREADSAFE mangling 2009-08-05 13:14:06 -04:00
Aaron
6eef769974 simple sm utf8 check 2009-05-27 15:20:09 -04:00
Eliot Horowitz
b05f9dc659 gc() helper method and better sm gc protection 2009-05-26 15:36:41 -04:00
Eliot Horowitz
833991e131 tests and asserts MINOR 2009-05-23 21:10:37 -04:00
Aaron
f9c896224b Add paramaterizable timeout for engine's invoke and exec, set timeout of 10 minutes for db.eval 2009-05-19 16:13:24 -04:00
Aaron
d1b49ff9bd get rid of fork() 2009-05-15 16:32:31 -04:00
Aaron
cb97e39f0f cleanup externalSetup modes MINOR 2009-05-15 10:48:14 -04:00
Aaron
df9fe97f79 don't exec jsconcatcode for forked contexts, not sure why this is a problem 2009-05-14 17:32:07 -04:00
Eliot Horowitz
67d9c8bbde smshell: more utils working, some other fixes 2009-05-13 23:15:59 -04:00
Eliot Horowitz
4bf96beb17 Spider Monkey Shell: another checkpoint 2009-05-13 17:27:45 -04:00
Eliot Horowitz
18c01987a2 checkpoint for smshell - working except for db 2009-05-13 17:00:02 -04:00
Eliot Horowitz
f175443ac4 Spider Monkey: bson object cleaning 2009-05-09 22:07:36 -04:00
Eliot Horowitz
d0470d437c Spider Monkey: ObjectId 2009-05-08 11:02:12 -04:00
Eliot Horowitz
7c16a1476d Spider Monkey: lots of work on property mangling 2009-05-05 10:43:54 -04:00