Commit Graph

66 Commits

Author SHA1 Message Date
Luke Wagner
e159dd7c22 Bug 713311 - give the remaining scope objects typed interfaces (r=waldo)
--HG--
rename : js/src/vm/CallObject-inl.h => js/src/vm/ScopeObject-inl.h
rename : js/src/vm/CallObject.cpp => js/src/vm/ScopeObject.cpp
rename : js/src/vm/CallObject.h => js/src/vm/ScopeObject.h
extra : rebase_source : 0efa6c9ac4ceb10f48fe7ee7b199333da2b54cd9
2012-01-02 15:02:05 -08:00
Brian Hackett
d1ee0713dc Add interface for accessing PC counter information from chrome code, bug 687134. r=sfink,waldo 2011-12-16 13:11:08 -08:00
Jeff Walden
735580ff0e Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin 2011-12-08 22:54:10 -05:00
Terrence Cole
26d8af5ae8 Bug 710950 - JSScript::function_ should be barriered; r=billm
The field is immutable, so we can return an unwrapped pointer and don't have to
worry about it for incremental barriers.  We do need post barriers on it during
init for detecting cross-generation pointers, however.  Just make it a normal
HeapPtr.

--HG--
extra : rebase_source : a52d3d74ab5bf3ae926b9da5212825ce1c0ae93d
2011-12-15 15:27:58 -08:00
Luke Wagner
cee38cd4c7 Bug 624621 - Allow embeddings to attach an extra 'origin' principal to scripts (r=mrbkap)
--HG--
extra : rebase_source : 85ed15c9f230bc342e7810e62abace18a7177c4b
2011-06-27 17:42:53 -07:00
Brian Hackett
16bb64e5ea Remove JSOP_TRAP, bug 707454. r=jorendorff 2011-12-07 13:15:48 -08:00
Brian Hackett
93ebf40a26 Address bug 694561 review comments, r=luke. 2011-11-18 16:22:52 -08:00
Brian Hackett
62170c3cdf Start fixing merge trainwreck, no bug. 2011-11-14 13:03:50 -08:00
Brian Hackett
3b10c64bdc Merge MC -> JM 2011-11-14 09:13:33 -08:00
Brian Hackett
ebc5397236 Get new object empty shapes with a common hash table, bug 701509. 2011-11-10 17:50:05 -08:00
Brian Hackett
3d2972e8bb Merge MC -> JM 2011-10-27 14:16:02 -07:00
Brian Hackett
fe910ee8ec Add JSScript::function, bug 693754. 2011-10-21 14:31:01 -07:00
Brian Hackett
4eb699754e Merge MC -> JM
--HG--
rename : js/src/jsparse.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/jsparse.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/jsemit.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/BytecodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/jsparse.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/jsparse.h => js/src/frontend/ParseNode.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
rename : js/src/xpconnect/src/xpcjsruntime.cpp => js/xpconnect/src/XPCJSRuntime.cpp
rename : js/src/xpconnect/src/xpcquickstubs.cpp => js/xpconnect/src/XPCQuickStubs.cpp
rename : js/src/xpconnect/src/nsXPConnect.cpp => js/xpconnect/src/nsXPConnect.cpp
2011-10-19 14:26:08 -07:00
Brian Hackett
dd1be81b31 Move rarely set object flags to BaseShape, bug 694561. 2011-10-14 13:51:21 -07:00
Brian Hackett
52d3c3bbb6 Move fixed slot count from JSObject to Shape, bug 594561. 2011-10-14 11:06:15 -07:00
Brian Hackett
c948505ab2 Move JSObject::parent to BaseShape, bug 638316. 2011-10-13 20:21:36 -07:00
Brian Hackett
6a000c54e1 Remove JSObject::getFunctionPrivate, add call scope to JSFunction, bug 693754. 2011-10-11 15:28:54 -07:00
Brian Hackett
227285ac43 Merge MC -> JM 2011-10-04 14:49:42 -07:00
Brian Hackett
c632b70b2b Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
Brian Hackett
87eb5c096f Remove shape numbers and Shape::slotSpan, factor Shape getter/setter into BaseShape, bug 684505. 2011-09-28 15:04:55 -07:00
Igor Bukanov
328fbe7fcc bug 684529 - remove script object. r=jorendorff 2011-09-22 12:08:55 +02:00
Jason Orendorff
4937f46f9a Bug 695097 - Split up frontend/Parser.{h,cpp}. r=luke.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/frontend/Parser.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/ParseNode.h
2011-10-17 16:54:30 -05:00
Bill McCloskey
213017df51 Bug 641027 - Add snapshot-at-the-beginning write barriers for incremental GC (r=luke,bhackett) 2011-10-25 16:07:42 -07:00
Brian Hackett
cf2f6530a2 Merge MC->JM 2011-09-06 00:45:22 -07:00
Luke Wagner
293c7bcf13 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Ed Morley
5ad1e0be99 Backout bug 684110 (08b6eaf6aad0, cf8b35fa1010, 25ee45edabe1, 659f5c7d2cc9, 870f6dd82586 & e1ad65d6a7fd) and bug 684344 (cd1957f6628d) on a CLOSED TREE; a=bustage-fairies 2011-09-03 03:21:25 +01:00
Luke Wagner
bddd0c80c3 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Brian Hackett
880d2637f7 [INFER] Improve performance for non-reentrant closures, bug 663138. 2011-09-01 12:20:30 -07:00
Brian Hackett
9ba7e372e9 Merge MC -> JM 2011-08-21 16:00:26 -07:00
Brian Hackett
cf0e434189 Merge MC -> JM 2011-08-14 19:51:16 -07:00
Jason Orendorff
d440dd51a3 Bug 679879 - Change JSFunction macros to methods. Part 2, js/src changes. r=Waldo. 2011-08-18 12:39:44 -05:00
Brian Hackett
1a7b57e2bd [INFER] Reduce inference-related script overhead, bug 674609. 2011-07-28 09:16:53 -07:00
Brian Hackett
ea9ca9aadf Restore per-compartment empty call shape, bug 670152. r=jorendorff 2011-07-08 11:16:25 -07:00
Jason Orendorff
531b6d3dfd Fix bug in Debugger.Script.prototype.getChildScripts. It didn't know about JSScript::savedCallerFun. 2011-07-07 17:52:39 -05:00
Brian Hackett
6e7cf2e6f0 [INFER] Don't expand frames in contexts without a compartment, fix warnings, add type barrier comment. 2011-06-07 09:14:52 -07:00
Brian Hackett
e5a29f8079 [INFER] Apply arguments and script review comments, bug 657412. 2011-06-06 08:32:41 -07:00
Brian Hackett
1942853df0 Merge TM -> JM 2011-05-27 15:08:04 -07:00
Luke Wagner
e591524e90 Bug 656490 - Fix direct-eval assert (r=dmandelin) 2011-05-26 17:23:21 -07:00
Brian Hackett
ae1bb92435 Merge TM -> JM 2011-04-28 13:02:47 -07:00
Brian Hackett
70113c5b18 Merge TM -> JM 2011-04-19 08:23:41 -07:00
Brian Hackett
4c0de7be7e Merge TM -> JM 2011-03-22 18:07:31 -07:00
Luke Wagner
6c9d3889b6 Bug 602994 - Clean up eval, remove unneeded security checks, assert equivalence of principal lookup (r=waldo,mrbkap) 2011-04-08 10:52:51 -07:00
Luke Wagner
5c163adc54 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Brian Hackett
8c3f2f0bf3 [INFER] Use PICs on monitored SETNAME and SETPROP, bug 621937. 2011-03-11 16:29:38 -08:00
Andreas Gal
86f1ae4f91 Make empty shape initialization lazy (bug 639254, r=billm). 2011-03-07 18:42:04 -08:00
Jim Blandy
dac293078a Bug 554955: Give blocks and call objects unique shapes when they have parents that may be extended with new bindings. r=jorendorff
The comments for js::Bindings::extensibleParents explain why this is necessary.

AssertValidPropertyCacheHit should have been catching this bug, but for
reasons I don't understand, it is restricted from checking this case. This
patch extends it to assert when the bug is detected.

I've gathered the infallible parts of the initialization for Call objects
and cloned block objects into their own functions.
2011-03-15 12:18:36 -07:00
Jim Blandy
615c9163b1 Bug 554955: Make JSObject::setMap not pretend to take a const shape. r=jorendorff 2011-03-15 12:18:36 -07:00
Chris Leary
0602bff26b Bug 691695: Refactor RegExp components as prep for lazifying. (r=luke)
--HG--
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
2011-10-04 23:48:32 -07:00
Bill McCloskey
a7feed17ff Bug 609104 - Move the property tree to the compartment (r=brendan) 2011-02-04 10:59:07 -08:00
Bill McCloskey
3f455cce32 Backed out bug 609104 (csets ac3ba38f20c0 and 7717cabaf20c) (orange) 2011-02-02 14:20:06 -08:00