Commit Graph

385 Commits

Author SHA1 Message Date
David Mandelin
9376a78c81 [JAEGER] Merge from Tracemonkey. This picks up Yarr. 2010-08-12 11:42:16 -07:00
Paul Biggar
abc945b545 Bug 584355: Don't use parent as a proto for a new function. r=brendan 2010-08-12 13:07:20 +01:00
Jeff Walden
78b50ef7f3 Bug 516255 - Fix attributes on arguments[i]: index properties on arguments should be enumerable, configurable, and writable. r=dmandelin 2010-08-11 23:27:40 -07:00
Jeff Walden
24f0559035 Bug 516255 - Eagerly copy initial parameter values into the arguments object when a function's parameters might be mutated, and rely on normal resolution behavior in the remaining cases when parameters are never modified. r=dmandelin 2010-08-11 23:27:33 -07:00
Jeff Walden
88db90ddd5 Bug 516255 - Use different classes for arguments objects created inside and outside strict mode code, with slightly different ops, in preparation for implementing strict mode arguments objects' less magical functionality. r=dmandelin 2010-08-11 23:26:59 -07:00
Brian Hackett
16873a1fb8 Bug 579471 - fast constructors (r=dmandelin,lw) 2010-08-10 16:38:08 -07:00
David Mandelin
17a258c673 [JAEGER] Merge from tracemonkey. 2010-08-11 11:23:29 -07:00
David Mandelin
df3e6a9e74 [JAEGER] Merge from tracemonkey. 2010-08-09 11:36:39 -07:00
Paul Biggar
6634b70997 Split object/function allocation paths to avoid branch (578158, r=brendan). 2010-08-09 09:11:22 -07:00
Luke Wagner
8d67384340 Bug 585231 - Remove ArgsPrivateNative (r=dmandelin) 2010-08-06 17:19:22 -07:00
Jeff Walden
47551e8efe Bug 514563 - ES5 strict mode: arguments.caller and arguments.callee poison pills. r=dmandelin
--HG--
extra : rebase_source : 2f0b258624ec065cb019f61f017115998a8835b2
2010-08-04 14:39:45 -07:00
Jeff Walden
df688c0946 Rename JSObject::getArgsLength to JSObject::getArgsInitialLength, to make clearer precisely what value it returns. r=dmandelin
--HG--
extra : rebase_source : c642dd15d4d1cf5f8ac2211dc2ee33845d11bef1
2010-08-04 13:50:01 -07:00
Brian Hackett
5ab7972159 Fast native constructors, bug 579471. 2010-08-03 12:20:48 -07:00
Jeff Walden
443f3f510a Bug 514581 - ES5: fun.caller and fun.arguments must throw when fun is strict-mode code. r=jimb
--HG--
extra : rebase_source : 10f930852e39b0b1ef917b18b6a1332a9a815d5d
2010-08-02 23:52:12 -07:00
Luke Wagner
b23d605527 Bug 579183 - loosen-up StackSegment invariants - part 5 - CallArgs (r=waldo)
--HG--
extra : rebase_source : 4031cc1def70bef58bfa759a4cc90af06adfc9cd
2010-07-30 10:41:03 -07:00
David Mandelin
4c5a188923 [JAEGER] Merge from Tracemonkey. 2010-07-29 13:23:33 -07:00
David Mandelin
a73ecdeee1 Merge from Tracemonkey. 2010-07-28 11:16:36 -07:00
Igor Bukanov
181c2cdf3a Backed out changeset 7b2b90efe57d -- the patch was landed against a tree with a lot of orange. This will hinder the orange resolution. 2010-07-28 14:36:06 +02:00
Luke Wagner
c9c381b11c Bug 579183 - loosen-up StackSegment invariants - part 1 - decompiler (r=brendan)
--HG--
extra : rebase_source : 77f1977e20773431266c7794b6cf8a2595b1c8f2
2010-07-30 14:49:29 -07:00
David Mandelin
904ccc994c Merge from Tracemonkey. 2010-07-27 11:48:08 -07:00
Brendan Eich
794e678554 Arguments.callee.caller does not work in FF 4 under certain circumstances (577648, r=jwalden). 2010-07-23 14:41:56 -07:00
David Mandelin
cf0c3c24a7 Merge from tracemonkey. 2010-07-22 18:31:01 -07:00
Luke Wagner
3a499b8646 Bug 579183 - CallStack was a confusing name, CallStackSegment is more accurate (r=dvander) 2010-07-22 13:46:43 -07:00
Robert Sayre
250c59eece Reland: Bug 577648 - arguments.callee.caller does not work in FF 4 under certain circumstances. 2010-08-01 09:58:03 -07:00
Robert Sayre
9bae5e1079 Backout changeset 80382d88b92c. (Bug 577648 - arguments.callee.caller does not work in FF 4 under certain circumstances). The patch is righteous, but MSVC's behavior with a mere 3GB of addressable memory is not. Will reland soon. 2010-07-31 14:01:26 -07:00
David Anderson
cf5a8cf505 [JAEGER] Merge from tracemonkey. 2010-07-19 20:49:26 -07:00
Tom Austin
2ad03dfa62 Remove special constructs no longer needed for Narcissus (bug 579137, r=gal) 2010-07-16 18:16:07 -07:00
Jeff Walden
0e03a3a79b Bug 588251 - fun.caller should throw if that value corresponds to a strict mode function. r=sayrer 2010-08-21 18:24:56 -04:00
Chris Leary
1834523ed5 Bug 577708: Remove Algol-like display optimization. (r=dvander) 2010-07-11 00:57:13 -07:00
David Anderson
64fd3377e9 [JAEGER] Merge from fatval & TM. 2010-07-05 18:07:39 -07:00
Luke Wagner
97d36215fd Change asX to toX, asXRef to getXRef, XTag to XValue 2010-07-05 13:44:59 -07:00
Luke Wagner
d119486317 Merge from TM
--HG--
rename : js/src/xpconnect/src/wrappers/AccessCheck.cpp => js/src/xpconnect/wrappers/AccessCheck.cpp
2010-07-04 14:49:39 -07:00
Luke Wagner
d52a11e637 Get merge building js shell and passing trace/ref tests. Still need to fix up browser 2010-07-04 00:12:06 -07:00
Sean Stangl
bcde0f1fc6 [JAEGER] Merge with fatval. 2010-07-02 21:52:25 -07:00
Luke Wagner
15a253d499 Merge 2010-07-01 23:10:37 -07:00
Luke Wagner
68403a872a Get narcissus compiling 2010-06-30 16:32:44 -07:00
David Anderson
9c55bbcdbc [JAEGER] Merge from fatval. 2010-06-30 11:46:07 -07:00
Luke Wagner
f82e2f8002 Take the "Raw" out of MarkRaw and MarkGCThingRaw. It offends Andreas, and it might be a bad name 2010-06-29 23:02:23 -07:00
Luke Wagner
19f7cefc18 Drop the distinction in js::Value of funobj vs. nonfunobj. Instead, values can just have JSVAL_TYPE_OBJECT. The trace-jit still uses funobj/nonfunobj and translates as necessary. 2010-06-29 22:33:52 -07:00
David Anderson
b9fd0759f7 [JAEGER] Merge from fatval. 2010-06-28 18:16:12 -07:00
Luke Wagner
ab3a0d3ffa Add 64-bit tracing support 2010-06-28 18:08:28 -07:00
Luke Wagner
fdd5b33385 Bug 579140 - Address review comments in xdr and xpconnect (r=igor,mrbkap) 2010-07-15 18:19:50 -07:00
Luke Wagner
99411cc93d Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Jeff Walden
8dd21fe50e Bug 562448 - Function.prototype.apply should accept any arraylike arguments. r=brendan
--HG--
extra : rebase_source : 1c6fc72b2b6a30d18e15c30ff84fa529e70709b0
2010-07-16 14:53:37 -05:00
Chris Leary
4c5fd024ab Bug 578272: Remove Algol-like display optimization. (r=brendan) 2010-07-26 06:35:38 -07:00
Nicholas Nethercote
be11c2f1c9 Backout TM-specific patches for bug 552812 due to assertion failures on Win2003. 2010-07-26 00:03:02 -07:00
Nicholas Nethercote
03a540e016 Bug 552812 - nanojit: factor out AccSet differences into TM and TR (TM-specific part). r=gal. 2010-07-25 21:23:02 -07:00
Brendan Eich
1813531fe8 Back out patch for bug 577648, need to fix a leak. 2010-07-23 14:21:50 -07:00
Brendan Eich
72e638d9ef arguments.callee.caller does not work in FF 4 under certain circumstances (577648, r=jwalden). 2010-07-10 11:48:00 -07:00
Jeff Walden
b13001e602 Bug 509733 - ES5: arguments.toString() === "[object Arguments]". r=brendan 2010-07-13 16:39:03 -05:00
David Anderson
a3709f170d [JAEGER] Merge from fatval branch. 2010-06-24 11:18:01 -07:00
Luke Wagner
f536e360bf Take advantage of value representation in the tracer when mapping values to and from trace types 2010-06-22 09:43:21 -07:00
Luke Wagner
ab09c2952d Switch jsids back to pointer-sized and fix a bunch of broken assumptions 2010-06-16 18:21:34 -07:00
Jason Orendorff
4119c39520 Bug 568886 - Instead of severing the stack in SJOW, function.caller should refuse to return an object from a different compartment. r=gal, r=mrbkap.
--HG--
extra : rebase_source : 83ee4482377769b8f59c72171acc62edc481fe7a
2010-06-30 18:09:38 -05:00
David Anderson
b4060da2c5 Bug 567577 - new Math.sin is NaN, not an object, in interpreter only. r=Waldo. 2010-06-28 14:49:12 -05:00
Chris Leary
908f8ec587 Back out f8c6a272f2dc. It was working on Try a few minutes ago, I swear! (r=red) 2010-06-26 18:09:07 -07:00
Chris Leary
52608d352b Bug 559408: Turn arena pool macros into methods. (r=gal) 2010-06-26 17:55:00 -07:00
Andreas Gal
7c91c2898c Fix warnings (no bug, r=mrbkap). 2010-06-25 17:57:53 -05:00
Andreas Gal
47613b6fab Function.prototype.toString shouldn't crash on function proxies (574294, r=brendan). 2010-06-24 13:25:09 -05:00
Igor Bukanov
2019c722fb bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Igor Bukanov
a69fd0a49f bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Nicholas Nethercote
9dfbe8877d Bug 552812 - nanojit: factor out AccSet differences into TM and TR (take 3, TM-specific part). r=gal. 2010-07-27 22:33:42 -07:00
David Anderson
a2bfe74bbb [JAEGER] Merge from fatval branch. 2010-06-10 21:58:13 -07:00
David Mandelin
f242431382 Bug 569766: Make tracing work with fat values 2010-06-10 17:20:26 -07:00
Jason Orendorff
c1a1fb9be1 Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
David Anderson
858278d975 [JAEGER] Merge from fatval branch. 2010-06-10 14:01:11 -07:00
Luke Wagner
e6f9490099 Simplify code now that Value is copyable 2010-06-10 10:09:05 -07:00
Luke Wagner
1bb5128ab0 Merge with TraceMonkey 2010-06-09 21:59:18 -07:00
David Anderson
87d142550e [JAEGER] Merge from fatval branch. 2010-06-04 22:11:53 -07:00
Luke Wagner
7b81a5dc24 Make JSHasInstanceOp and JSEqualityOp take jsval. Get a lot of xpconnect compiling 2010-06-04 16:55:08 -07:00
David Anderson
8e4fe7b3e9 [JAEGER] Merge from fatval branch. 2010-06-03 23:04:57 -07:00
Luke Wagner
8f6c06b148 Remove jsboxedword, change jsid to be a jsval 2010-06-02 19:09:04 -07:00
Blake Kaplan
a2ac6b938e Remove incorrect return. rs=lumpy 2010-06-18 17:45:33 -07:00
Brendan Eich
734c3a1ba9 Back out a81f2aed9c9b due to orange. 2010-06-18 17:39:22 -07:00
Brendan Eich
157c408713 Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal). 2010-06-15 10:06:40 -07:00
Jeff Walden
2a8187e20b Bug 548671 - Stop using shared-permanent properties "inherited" from the prototype to represent (function(){}).length and [].length. r=jorendorff
--HG--
extra : rebase_source : c5d48e4fe489f9e350798b49bed70f763e3abf37
2010-06-02 23:44:24 -07:00
Brendan Eich
9c5f58d3ca Call instances uniquely shaped at birth due to lack of runtime-shared empty scope (569391, r=jorendorff). 2010-06-01 15:01:11 -07:00
Andreas Gal
3026562007 Improve error reporting for proxy handlers and __iterator__ (568966, r=brendan). 2010-05-29 19:04:01 -07:00
David Anderson
7427ea1c19 Backed out changeset 752bab2cb85b. 2010-05-23 20:27:13 -07:00
David Anderson
51f21f92ba Statically bind global variable references where possible (bug 561923, r=brendan). 2010-05-23 17:15:16 -07:00
David Anderson
285a986008 Statically bind global variables where possible (bug 561923, r=brendan). 2010-05-22 15:38:04 -07:00
Luke Wagner
6836687a5e jsapi-tests pass 2010-05-19 18:40:27 -07:00
Luke Wagner
d3a3926b34 Fix bugs 2010-05-18 17:25:12 -07:00
Luke Wagner
19c9bbad15 Turns out function objects can be on parent chains 2010-05-18 14:23:23 -07:00
Luke Wagner
e374a37e1c Remove explicit copy, ObjPtr 2010-05-17 22:15:51 -07:00
Luke Wagner
b3c6d771b1 Fixing shell/js 2010-05-17 18:49:58 -07:00
Luke Wagner
6d87e93eef 30% through jsstr 2010-05-13 18:55:25 -07:00
Luke Wagner
db5b99989b convert jsnum, touch up jsobj 2010-05-13 02:03:08 -07:00
Luke Wagner
4e6c52c52b New Tag scheme, no SetObject silliness 2010-05-12 16:36:10 -07:00
Chris Leary
94f23c0a06 Arena pool macros don't want to die. 2010-07-11 00:09:34 -07:00
Chris Leary
48398c7423 Bug 559408: Arena macros to methods. (r=galish) 2010-07-10 23:19:14 -07:00
Luke Wagner
bd3571c1b5 Still recovering from rebase 2010-05-11 19:00:59 -07:00
Luke Wagner
6c0883c94f Merge from tracemonkey 2010-05-11 00:41:08 -07:00
Luke Wagner
4e71f5312b (unrebased) fat value patch 2010-05-10 22:01:31 -07:00
Luke Wagner
fb7ceb4c78 Bug 547851 - remove JSStackFrame::regs, JSStackFrame::callerFrame.sp (r=dvander) 2010-03-03 18:10:13 -08:00
Luke Wagner
bddd202c18 (unrebased) remove regs 2010-03-03 18:10:13 -08:00
Luke Wagner
24a4486456 (fake) remove-regs patch 2010-03-03 18:10:13 -08:00
Luke Wagner
9b49d62378 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Luke Wagner
6a6afd60ce Backed out changeset 23efaeb8652b 2010-05-13 02:21:27 -07:00
Luke Wagner
c82711e2b5 (unrebased) contiguous patch 2010-03-03 17:52:26 -08:00
Brendan Eich
9c357658b7 Back out patch for 557969 due to orange. 2010-04-08 11:31:03 -07:00
Brendan Eich
edcf471ddb Named native functions lacking JSFUN_BOUND_METHOD entrain the global of the object in which they are bound, not the binding object itself, via parent (557969, r=mrbkap). 2010-04-08 10:55:22 -07:00
Luke Wagner
b9f8c249e6 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Nicholas Nethercote
26d8277a75 Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal. 2010-04-07 16:09:49 -07:00
Luke Wagner
0e23d73f7a (fake) contiguous patch 2010-03-03 17:52:26 -08:00
Luke Wagner
500101d1a4 Bug 563845 - skip jsval-to-jsid conversion when jsval is a jsid (r=igor) 2010-05-04 18:24:13 -07:00
Nicholas Nethercote
1cd832e8d3 Bug 562872 - encapsulate Arguments-related dslots accesses. r=brendan. 2010-05-02 21:42:09 -07:00
Andreas Gal
4f28c42447 Remove lingering defaultValue calls with hint JSTYPE_OBJECT or JSTYPE_FUNCTION (554550, r=brendan). 2010-04-11 20:55:22 -07:00
Nicholas Nethercote
6bcbe2ea63 Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan. 2010-04-11 16:45:20 -07:00
Dave Herman
ed6c552bb7 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Brendan Eich
1a7721a4d3 Don't bother optimizing apply on arguments objects whose length property has been overridden (558609, r=dvander). 2010-04-10 20:53:11 -07:00
Andreas Gal
a887d81302 Inline the object allocation path (558003, r=sayrer). 2010-04-10 16:16:35 -07:00
Luke Wagner
98a7dc9ea6 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Robert Sayre
a354ba1cfc Backed out changeset 919950c7f0f0 2010-05-11 11:52:17 -04:00
Chris Leary
299dd52ca1 Bug 559408: Arena pool macros to methods. (r=gal) 2010-05-10 21:46:52 -07:00
Luke Wagner
876f5eac9f Bug 586335 - remove dead value-to-function code (r=waldo) 2010-08-17 09:44:41 -07:00
Robert Sayre
596f6ceff5 Bug 554850: silence JSBool -> bool conversion warnings in msvc. r=waldo 2010-04-01 16:54:57 -04:00
Nicholas Nethercote
795d4b8ad2 Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan. 2010-03-31 22:13:51 -07:00
Nicholas Nethercote
684396fb91 Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal. 2010-03-30 14:42:48 -07:00
Brendan Eich
34b1a91d97 Fix arguments objects to share a runtime-wide empty scope, instead of each getting a differently shaped own scope at birth (554626, r=igor). 2010-03-30 00:44:28 -07:00
Jeff Walden
09969174d8 Readd bug 548702's changes to jsapi.cpp, jsexn.cpp, jsfun.cpp, jsnum.cpp, and jsstr.cpp. 2010-03-28 22:05:50 -07:00
Jeff Walden
0973dfd6ab Merge. 2010-03-26 21:53:40 -07:00
Jeff Walden
95422c65a3 Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\ 2010-03-26 18:01:54 -07:00
Jim Blandy
e82e0c1ee6 Bug 554102: Cleanup: switch from global TokenStream functions to methods. a=cdleary, r=jimb 2010-03-23 17:30:36 -07:00
Chris Leary
8e0decc494 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-21 16:07:48 -07:00
Luke Wagner
1e33f57b39 Backed out changeset 6403442ffa1d (failure on windows, winnt.h defines TokenType!) 2010-03-18 22:26:47 -07:00
Chris Leary
2400e09e63 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-18 22:15:51 -07:00
Luke Wagner
116a193009 Bug 552248 - fix crash when JS_EvaluateInStackFrame is called for frame in saved callstack (r=Waldo) 2010-03-15 19:24:08 -07:00
Chris Leary
431c00210e Bug 549658: clean up JS scanner and inline more things, r=brendan,jimb 2010-03-15 16:42:06 -07:00
Robert Sayre
84b14d6f30 Merge mozilla-central to tracemonkey. 2010-03-13 11:51:12 -05:00
Luke Wagner
a1a73dd94d Bug 551276 - a more type-safe way to zero memory (r=Waldo)
--HG--
extra : rebase_source : fc5564c34cde6490a1d3b48a16a451f7e50c052a
2010-03-10 15:34:12 -08:00
Jeff Walden
106fbd8085 Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Igor Bukanov
9d1cbd468c bug 549010 - folowup to replace PROTO access macros with the inlne function 2010-03-04 23:52:52 -08:00
Mike Moening
0373a2437d bug 549010 - fixing and silencing MSVC warnings. r=brendan,igor 2010-03-04 20:44:09 -08:00
Brendan Eich
9af18d4767 Fix CallPropertyOp to cope with non-int arguments id (549951, r=mrbkap). 2010-03-03 14:44:03 -08:00
Brendan Eich
9c8234d49b Bug 549617 - JS_EvaluateUCInStackFrame doesn't see variables in flat closure (r=mrbkap). 2010-03-02 17:30:54 -08:00
Nicholas Nethercote
c8a754a27d Bug 545274 - nanojit: start adding alias info to loads/stores/calls (TM-specific part). r=jseward. 2010-03-02 13:47:17 +11:00
Andreas Gal
18afa9f743 Setters/getters can be callable objects (547912, r=brendan). 2010-02-22 22:25:09 -08:00
Andreas Gal
bd338bc100 Test whether obj IsCallable instead of VALUE_IS_FUNCTION for call and apply (547046, r=mrbkap). 2010-02-22 14:07:50 -08:00
Igor Bukanov
debaa592f7 bug 545529 - caching Class.prototype lookups. r=brendan 2010-02-19 20:44:23 +03:00
Gregor Wagner
dc4711d401 BUG 545303: TM: non API function for JS_CallTracer r=igor 2010-02-18 13:16:02 -08:00
Brendan Eich
b83b1b23c3 Fix two subtle bugs to-do with partial flat closures (545573, r=jorendorff). 2010-02-11 14:56:59 -08:00
Jason Orendorff
095bd890ef Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Jeff Walden
7e68c64269 Bug 543097 - Precompute the prototype when evaluating function expressions and regular expression literals on trace, rather than (slowly) looking it up every time. r=jorendorff
--HG--
extra : rebase_source : d023ded17937248bdfb23705e7477918b111746f
2010-02-01 17:20:37 -08:00
Luke Wagner
7714144859 Bug 535656 - remove JSStackFrame::dormantNext and varobj (r=waldo) 2010-01-29 18:25:16 -08:00
Luke Wagner
2645ecd2da Bug 541452 - put jstracer.cpp in namespace js (r=jorendorff) 2010-01-22 14:49:18 -08:00
David Mandelin
9600769682 Bug 495331: trace JSOP_LAMBDA for non-heavyweight, non-null closures, r=jorendorff,dvander 2010-01-15 11:32:14 -08:00
Brendan Eich
85a5badeef ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=igor/jwalden). 2010-01-06 15:12:54 -08:00
Jason Orendorff
e5ac8476fd Backed out changeset 3862a7e48e79 due to tinderbox failures on js1_5/GC/regress-324278.js. 2010-01-05 12:48:09 -06:00