Jeff Walden
2ca39644c4
Remove internal #includes of jsstdint.h, the functionality of which is now part of the JSAPI and need not be explicitly #included. No bug, r=evilpies, r=jorendorff, r=terrence, all over IRC
...
--HG--
extra : rebase_source : 073e357a4f7bcfe1af4de5e7370d10dae9a3a07d
2012-01-22 21:22:10 -08:00
Terrence Cole
9f235d9fdf
Bug 720840 - Call MarkStringUnbarriered directly; r=billm
...
We have a special marker function for handling the Atom list because we need to
call JS_SET_TRACING_INDEX externally to avoid clobbering the index. However,
nobody cares about the index here and if they do, they can add custom debug
code. It is better at this point to have a consistent and correct interface,
thus we remove the specialized atomized string marking in favor of the existing
markers. Additionally, this is only used during root marking so we can switch
to using MarkRoot for the extra assertions.
--HG--
extra : rebase_source : b4448f7fde8990a727bf2893e53688690e170535
2012-01-24 15:21:44 -08:00
Brian Hackett
0149f21a7d
Compile large scripts in chunks, bug 706914. r=dvander
2012-01-18 16:40:18 -08:00
Chris Leary
3c72dbeee9
Bug 717762: Proliferate js_memcpy and PodCopy, take 2. (r=luke)
...
--HG--
extra : rebase_source : 73083063f32036d037b34f0ec96d06192f2ae649
2012-01-17 14:32:36 -08:00
Luke Wagner
52f5f3e08b
Bug 718022 - further nerf f.arguments (r=waldo,sr=dmandelin)
...
--HG--
extra : rebase_source : a93cf7e665753afc38d26a9e3cd2d328eef53b42
2012-01-17 16:34:24 -08:00
Jeff Walden
84ad2e6e48
Bug 713965 - Replace deleteGeneric (taking a jsid) with deleteByValue (taking a Value), and use the property-type-specific methods exclusively. r=bhackett
...
--HG--
extra : rebase_source : c9273f81996c755f6b3814895a4ce64f390f7c50
2011-12-28 16:33:20 -06:00
Luke Wagner
395fb00310
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
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