Commit Graph

697 Commits

Author SHA1 Message Date
Brian Hackett
95d4e2f5d9 Backed out changeset 4282a285d381 (bug 707049 backout). 2011-12-31 07:32:04 -07:00
Ms2ger
a0619211ee Backout 0d642e4e08cf (bug 707049); requested by evilpie. 2011-12-31 15:13:01 +01:00
Brian Hackett
157daeeaa6 Add dynamic analysis for identifying moving GC hazards, autorooter classes, some VM rooters, bug 707049. r=billm 2011-12-30 20:12:45 -07:00
Terrence Cole
44161208ba Bug 711626 - More missing barriers around object properties; r=billm
This adds post barriers in several locations where they are needed inside of
object manipulation.

--HG--
extra : rebase_source : ce956417a74d70551c1f9258ef7587d0563c0157
2011-12-28 14:06:21 -08:00
Brian Hackett
889b33bcd1 Ensure consistency between an owned base shape and its unowned version, bug 712428. r=luke 2011-12-24 06:32:27 -08:00
Luke Wagner
647673362a Bug 692274, part 3 - Remove JSOP_BLOCKCHAIN and JSOP_NULLBLOCKCHAIN, which produces incorrect let scoping until the next patch (r=jorendorff) 2011-10-07 12:02:50 -07:00
Terrence Cole
7c0f033cb6 Bug 712488 - Add missing barrier in jsfunction clone; r=billm
When we clone a JSFunction, we need a post barrier after copying the contained
JSScript and JSObject pointers.
2011-12-21 17:17:03 -08:00
Jeff Walden
476c7d19c5 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
Brian Hackett
3df3c83b7c Correctly compute fun.caller for cloned functions, bug 710780. r=luke 2011-12-15 14:09:49 -08:00
Luke Wagner
a5fc0b3da5 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
Bill McCloskey
c1d005dc3f Bug 708805 - Add write barrier to JSFunction::env (r=bhackett) 2011-12-15 09:41:04 -08:00
Brian Hackett
b9a0fd7215 Watch for native functions when cloning methods accessed by fun.caller, bug 709634. r=luke 2011-12-15 09:17:11 -08:00
Igor Bukanov
1a10f86b5f bug 708548 - removal unused declarations and definitions of *OnTrace functions. r=dvander a=khuey-on-irc
--HG--
extra : rebase_source : ea767043f6af276c5cdfeb0301491fc89b49c931
2011-12-08 10:29:21 +01:00
David Mandelin
d5033addd5 Bug 707341: remove VOUCH_DOES_NOT_REQUIRE_STACK, r=jorendorff 2011-12-07 17:49:10 -08:00
Jeff Walden
e51511685a Bug 707383 - Rename ValueTo{ECMA,}{Ui,I}nt32 so that To{Ui,I}nt32 is the ECMA spec method and NonstandardTo{Ui,I}nt32 is the non-standard JSAPI method functionality. r=luke 2011-12-05 17:10:02 -05:00
Jeff Walden
894d37708d Bug 707061 - Rename js_ValueToString to ToString. Also, consistent with ToObject, make ToString include an inline already-string fast path, and make ToStringSlow be an out-of-line slow path for the case where the value is not a string (asserting that this is the case). r=luke 2011-12-01 19:35:44 -08:00
Brian Hackett
c3b9744976 Merge MC -> JM 2011-11-26 15:03:20 -08:00
Brian Hackett
91cff8878e Address bug 694561 review comments, r=luke. 2011-11-18 16:22:52 -08:00
Brian Hackett
7075aa95ba Address bug 697537 review comments, r=luke. 2011-11-18 15:20:21 -08:00
Brian Hackett
4124a56c30 Address bug 684507 review comments, r=luke. 2011-11-18 14:59:31 -08:00
Brian Hackett
330d1a2efa Move arguments object private data to a reserved slot, bug 703721. 2011-11-18 12:54:40 -08:00
Brian Hackett
cc15146e95 Merge MC -> JM 2011-11-14 09:13:33 -08:00
Brian Hackett
ee317367e6 Get new object empty shapes with a common hash table, bug 701509. 2011-11-10 17:50:05 -08:00
Brian Hackett
831cd84d89 Address bug 638316 and bug 694247 review comments, r=luke. 2011-11-09 09:52:59 -08:00
Brian Hackett
d2fe69d826 Set DELEGATE for parents of other objects, bug 700300. 2011-11-08 16:56:00 -08:00
Brian Hackett
08c7936173 Address bug 693754 review comments, r=luke. 2011-11-08 13:42:27 -08:00
Brian Hackett
7c9c7bd9bb Remove JSObject::isNewborn, refactor object creation code, bug 684507. 2011-11-02 13:34:19 -07:00
Brian Hackett
6697a98273 Merge MC -> JM
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
2011-11-02 09:23:25 -07:00
Brian Hackett
83ca66c7ef Fix GC hazard when constructing functions, bug 698156. 2011-10-30 08:27:19 -07:00
Brian Hackett
a94b1b5173 Set initial value of native reserved slots to undefined, bug 697537. 2011-10-28 08:43:04 -07:00
Brian Hackett
d740a1c97c Merge MC -> JM 2011-10-27 14:16:02 -07:00
Brian Hackett
a9c68ac54d Remove JSFunction fixed slots and unused fields, bug 697537. 2011-10-26 13:02:57 -07:00
Brian Hackett
a960b32d4b Remove ARGCNT, ARGSUB opcodes, bug 698015. r=dvander 2011-11-01 09:01:04 -07:00
Brian Hackett
41e18127a7 Add JSScript::function, bug 693754. 2011-10-21 14:31:01 -07:00
Brian Hackett
8c63ed57af Fix failing test, bug 693754. 2011-10-20 14:56:24 -07:00
Brian Hackett
d64dce75db 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
4deff4dab5 Fix test failures. 2011-10-19 08:12:44 -07:00
Brian Hackett
ed28c77902 Fix GC hazard in fun_trace, bug 693754. 2011-10-14 15:31:53 -07:00
Brian Hackett
e66c1a2dc0 Move rarely set object flags to BaseShape, bug 694561. 2011-10-14 13:51:21 -07:00
Brian Hackett
7dd33f659d Move fixed slot count from JSObject to Shape, bug 594561. 2011-10-14 11:06:15 -07:00
Brian Hackett
47aca3f8c2 Move JSObject::parent to BaseShape, bug 638316. 2011-10-13 20:21:36 -07:00
Brian Hackett
6422769ff8 Add call scope to JSFunction, bug 693754. 2011-10-13 12:10:52 -07:00
Brian Hackett
35a50f4afb Move scope chains of scope objects to reserved slots, bug 694247. 2011-10-12 22:29:43 -07:00
Brian Hackett
9c64bfccd6 Remove JSObject::getFunctionPrivate, add call scope to JSFunction, bug 693754. 2011-10-11 15:28:54 -07:00
Brian Hackett
e9b876258d Remove JSObject::privateData, bug 693479. 2011-10-10 17:14:38 -07:00
Brian Hackett
99df9202c3 Remove JSObject::capacity and JSObject::initializedLength, split JSObject::slots into slots and elements, bug 693221. 2011-10-10 11:41:03 -07:00
Brian Hackett
a61bdb81a1 Move JSObject::newType to a hashtable, bug 684410. 2011-10-07 20:09:09 -07:00
Jason Orendorff
2c0fe461ba Bug 695450 - Rename js/src/frontend/CodeGenerator.h to BytecodeGenerator.h to avoid conflict with IonMonkey. r=dvander.
--HG--
rename : js/src/frontend/CodeGenerator.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/frontend/CodeGenerator.h => js/src/frontend/BytecodeGenerator.h
2011-10-18 14:45:33 -05:00
Brian Hackett
b80ef4cb95 Address shape number removal review comments, bug 684505. 2011-10-05 11:54:28 -07:00
Brian Hackett
040f61cf85 Merge MC -> JM 2011-10-04 14:49:42 -07:00