Chris Leary
a850080a2f
Bug 559408: Arena macros to methods. (r=galish)
2010-07-10 23:19:14 -07:00
David Mandelin
216c6b7dd0
No bug, fix MSVC warnings, no_r=me
2010-07-26 12:04:53 -07:00
Sean Stangl
855e8c863d
[JAEGER] Hack: manually increase depth for JSOP_PROPINC,DEC; r=dvander.
2010-06-25 01:21:52 -07:00
David Anderson
9f184a721f
[JAEGER] Don't optimize escaping variables (bug 566022).
2010-06-18 11:07:15 -07:00
Chris Leary
aa003f9bd3
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
ccb1c919b6
Bug 559408: Turn arena pool macros into methods. (r=gal)
2010-06-26 17:55:00 -07:00
David Anderson
6eef11e5c5
[JAEGER] Predict unbound names as being on the global object (bug 564949).
2010-06-12 19:00:27 -07:00
David Anderson
c04af88999
[JAEGER] Statically bind some global functions (bug 562729, r=brendan).
2010-06-10 23:43:14 -07:00
Brendan Eich
b73234dea0
Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal).
2010-06-18 17:43:02 -07:00
David Anderson
ae0fc07253
[JAEGER] Merge from fatval branch.
2010-06-10 14:01:11 -07:00
Luke Wagner
e8549ac325
Merge with TraceMonkey
2010-06-09 21:59:18 -07:00
David Anderson
e416a616f1
[JAEGER] Merge from fatval branch.
2010-06-03 23:04:57 -07:00
Luke Wagner
b61c63b939
Remove jsboxedword, change jsid to be a jsval
2010-06-02 19:09:04 -07:00
Brendan Eich
fa509bbb91
Back out a81f2aed9c9b due to orange.
2010-06-18 17:39:22 -07:00
Brendan Eich
dcc73e0592
Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal).
2010-06-15 10:06:40 -07:00
Jim Blandy
5613624c45
Bug 568375: Delete the JSOP_XMLOBJECT bytecode. r=waldo
2010-06-11 10:48:08 -07:00
David Anderson
acfa8b5001
[JAEGER] Merge from fatval.
2010-05-25 14:17:37 -07:00
David Mandelin
0798ea94b0
Build fixes for MSVC. It should now build on Windows, albeit with warnings.
2010-05-24 12:55:11 -07:00
David Anderson
5ac3626f16
Backed out changeset 752bab2cb85b.
2010-05-23 20:27:13 -07:00
David Anderson
66fbdf5b73
Statically bind global variable references where possible (bug 561923, r=brendan).
2010-05-23 17:15:16 -07:00
David Anderson
70afdd3532
Avoid resolving while looking up constants during parsing (bug 561923 part 2, r=brendan).
2010-05-23 17:14:59 -07:00
David Anderson
26458364a5
Statically bind global variables where possible (bug 561923, r=brendan).
2010-05-22 15:38:04 -07:00
David Anderson
fb63a81979
Don't call resolve hooks when looking up compile-time constants (bug 561923 part 2, r=brendan).
2010-05-22 14:52:37 -07:00
Luke Wagner
ce6b5d2413
Turns out function objects can be on parent chains
2010-05-18 14:23:23 -07:00
Luke Wagner
a94b729b2d
Merge from tracemonkey
2010-05-11 00:41:08 -07:00
Luke Wagner
55e7f5e2d3
(unrebased) fat value patch
2010-05-10 22:01:31 -07:00
Luke Wagner
515c38eb66
Bug 558144 - un-macroize OBJ_SCOPE, OBJ_SHAPE, LOCKED_OBJ_SET_SLOT, LOCKED_OBJ_GET_SLOT (r=Waldo)
2010-04-08 11:22:04 -07:00
Andreas Gal
811ac4cf75
fast object iteration (558754, r=brendan, CLOSED TREE).
2010-05-07 17:52:52 -07:00
Nicholas Nethercote
4e1453ef5b
Bug 563575 - encapsulate jsobj.cpp dslots accesses. r=brendan.
2010-05-04 20:28:38 -07:00
Jeff Walden
23aeebc511
Bug 552560 - Remove support for __parent__. r=mrbkap
2010-04-11 13:51:00 -07:00
David Anderson
e02e45f8c5
Pretty-up some tcflag use in the parser and emitter (bug 563568, r=cdleary).
2010-05-03 20:53:55 -07:00
Luke Wagner
46de2b3cf8
Bug 563123 - use js::HashMap for JSCodeGenerator::constList (r=igor)
2010-05-01 12:53:14 -07:00
Luke Wagner
d1ebb1632d
Bug 558446 - Emit concatn properly (r=waldo)
2010-04-09 16:32:02 -07:00
Brendan Eich
11c13e6c36
Resolve sharpSlots vs. var-in-with grudge match (561011, r=mrbkap).
2010-04-27 21:35:28 -07:00
Brendan Eich
0011558f08
Use same source note offset bias/origin for both of SRC_IF_ELSE's offsets, but note second offset is optional (0 if absent; 562028, r=mrbkap).
2010-04-27 21:00:38 -07:00
Brendan Eich
bdfc8c830c
Back out my last commit due to orange.
2010-04-27 20:22:57 -07:00
Brendan Eich
2220af9ccd
Use same source note offset bias/origin for both of SRC_IF_ELSE's offsets (562028, r=mrbkap).
2010-04-27 19:41:20 -07:00
Jason Orendorff
7d598d3898
Bug 561031 - Treat JSOP_FILTER as a jump. r=brendan.
...
--HG--
extra : rebase_source : 9b8430b57cbe41407709dc6ffa244a81a112878d
2010-04-22 14:53:26 -05:00
Jason Orendorff
e727aab13c
Backed out changeset ff77002e8a30 (bug 558720).
2010-04-14 07:00:36 -05:00
Brendan Eich
934c30742a
Fix non-escaping closure optimization to cope with 'with' and eval (558720, r=jorendorff).
2010-04-13 19:05:26 -07:00
Dave Herman
cfc5514d85
Bug 558437 - rename JSCompiler to js::Parser (r=brendan).
2010-04-10 21:15:35 -07:00
Robert Sayre
37cd68aba5
Backed out changeset 919950c7f0f0
2010-05-11 11:52:17 -04:00
Chris Leary
f7037b6fc1
Bug 559408: Arena pool macros to methods. (r=gal)
2010-05-10 21:46:52 -07:00
Nicholas Nethercote
a1a894fc1c
Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal.
2010-03-30 14:42:48 -07:00
Chris Leary
a52e773d77
Bug 553423 - JS scanner namespacing cleanup (r=lw)
2010-03-21 16:07:48 -07:00
Luke Wagner
8619abe400
Backed out changeset 6403442ffa1d (failure on windows, winnt.h defines TokenType!)
2010-03-18 22:26:47 -07:00
Chris Leary
7b07e705a2
Bug 553423 - JS scanner namespacing cleanup (r=lw)
2010-03-18 22:15:51 -07:00
Luke Wagner
07a82dbbd3
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
bd851154fd
Bug 549658: clean up JS scanner and inline more things, r=brendan,jimb
2010-03-15 16:42:06 -07:00
Jeff Walden
23f72aa6c3
Bug 551529 - Remove __count__. r=shaver
2010-03-12 17:09:49 -08:00
Igor Bukanov
382035ba66
bug 549010 - folowup to replace PROTO access macros with the inlne function
2010-03-04 23:52:52 -08:00
Luke Wagner
a6f580ef72
Bug 545165 - fix/simplify JSOP_CONCATN (r=jorendorff)
2010-02-19 19:22:37 -08:00
Brendan Eich
97788ec0a9
Don't mutate a used name node that has been deoptimized before bailing from BindNameToSlot (546069, r=jorendorff).
2010-02-19 11:27:35 -08:00
Jason Orendorff
99f75d684d
Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
...
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Brendan Eich
8e1d6facb8
Bug 542002 - Optimize to flat closures even if some upvars can't be copied (r=jorendorff).
2010-02-10 15:17:52 -08:00
Luke Wagner
742f31ca8a
Bug 535656 - remove JSStackFrame::dormantNext and varobj (r=waldo)
2010-01-29 18:25:16 -08:00
David Mandelin
eac866de48
Bug 541239: don't use upvar for variables in eval if they cross a generator, r=mrbkap
2010-01-21 17:06:11 -08:00
David Mandelin
aeac2f7254
Bug 540243: don't use JSOP_GETUPVAR if def-use chain crosses a generator lexical scope, r=mrbkap
2010-01-21 13:27:36 -08:00
Brendan Eich
93805966dd
Analyze module pattern and private-statics pattern in order to despecialize from methods to slots/sprops (536564, r=jorendorff).
2010-01-14 09:33:14 -08:00
Jeff Walden
6751e20229
Bug 538482 - |case null| deoptimizes switch statements to use condswitch. r=jorendorff
2010-01-07 17:22:22 -06:00
Blake Kaplan
3973a05c6d
Bustage fix -- We can't assert that constant folding worked.
2010-01-11 18:52:44 -08:00
Brendan Eich
d81374a08d
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
David Mandelin
43a35e57bc
Bug 528644: do not generate JSOP_GETUPVAR in a generator called from eval, r=mrbkap
2010-01-06 14:33:52 -08:00
Jason Orendorff
8ed2d1a4d3
Backed out changeset 3862a7e48e79 due to tinderbox failures on js1_5/GC/regress-324278.js.
2010-01-05 12:48:09 -06:00
Brendan Eich
80f9a14d73
ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=jwalden).
2010-01-04 12:25:44 -08:00
Jeff Walden
2991bc2ab5
Bug 517580 - Unconditionally build with support for getters and setters, remove support for the deprecated { x getter: function() {}} and x getter= function() {} getter syntaxes (mutatis mutandis for setter) now that ES5 provides Object.getOwnPropertyDescriptor and Object.defineProperty and { get x() { } } syntax, and provide __{define,lookup}{G,S}etter__ only if a preprocessor variable is defined (unconditionally provided for the moment). r=luke
2009-10-06 12:35:33 -07:00
Gregor Wagner
a66778e5f9
fix JS_SCOPE_DEPTH_METER and enable in DEBUG mode
...
bug #528674 , r=gal
2009-12-14 18:36:58 -08:00
Brendan Eich
425fa48074
Beware CALLEE_UPVAR_SLOT when adjusting upvar cookie to skip over args to reach vars in the upar's home frame -- the callee is a special case with a magic slot that must not be changed (528082, r=mrbkap).
2009-11-19 12:14:52 -08:00
Blake Kaplan
d561cdff98
Bug 461170 - Detect when typeof is applied to an expression before constant folding so we correctly throw unbound name exceptions from the folded expression. r=brendan
2009-11-06 18:27:17 +01:00
Brendan Eich
0df3feeb42
Fix js_Emit1 return value tests (522920, r=dvander).
2009-10-17 18:42:58 -07:00
Jim Blandy
744e7161ea
Bug 515233: Widen JSTreeContext::flags to 32 bits. r=igor
...
All the bits in this uint16 field are currently in use. Adding bits
for projects like strict mode entails relocating existing flags, which
is additional work. Furthermore, it seems that this has already
inspired people to put flags in places they don't belong:
TSF_DESTRUCTURING is a JSTokenStream flag, but is only used by the
parser.
This patch widens the field to 32 bits, and adjusts JSFunctionBox and
a few other places to match.
We should really replace these all with bitfields.
2009-10-08 10:29:03 -07:00
Brendan Eich
a288fd21a1
#ifdef DEBUG to avoid warning (520513 followup).
2009-10-05 23:58:48 -07:00
Brendan Eich
4f33d707bc
Deoptimize upvar-for-eval if in for-in loop LHS position (520513, r=mrbkap).
2009-10-05 23:50:42 -07:00
Brendan Eich
64b1c01b47
Fix constructor method (foo.bar/foo[baz] initialized from a lambda) invocation to go through the method read barrier (518103, r=jorendorff).
2009-10-05 16:55:21 -07:00
David Anderson
193bcf7ccb
Trace recursive function calls (bug 459301, r=gal).
2009-09-30 15:28:00 -07:00
David Mandelin
1008018047
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
David Anderson
76526cf35e
Renamed JSOP_LOOP to JSOP_TRACE, which now also gets emitted at the start of scripts (bug 515806, r=brendan).
2009-09-14 17:26:16 -07:00
Brendan Eich
28c984514e
Don't assume a script with sharps whose caller has no sharps has no other fixed slots (516262, r=igor).
2009-09-14 10:29:56 -04:00
Brendan Eich
ebdbdeae8d
Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor).
2009-09-09 20:21:15 -07:00
Jason Orendorff
714d4280ea
Bug 513119 - Change JSScript macros to methods. r=Waldo.
2009-09-09 18:52:55 -05:00
Brendan Eich
dad15e97d4
Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).
2009-09-03 14:41:19 -07:00
Igor Bukanov
2868bafa02
bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan
2009-08-28 09:53:26 +04:00
Luke Wagner
c9682bcde9
Bug 419743 - Add JSOP_CONCATN (r=waldo)
2009-08-18 15:43:17 -07:00
Brendan Eich
a61da73724
Back out changeset aff171a8c4f0 (bug 471214).
2009-08-26 09:34:41 -07:00
Brendan Eich
971d338725
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07:00
Jason Orendorff
d276cc632c
Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan.
2009-08-13 16:18:33 -05:00
Jason Orendorff
b3f80130de
Bug 509636 - Assertion failure: pn->pn_type != TOK_COMMA, at ../jsemit.cpp. r=Waldo.
...
--HG--
extra : rebase_source : 1d413958d72dc3fda3ade90cf199965fb1d6de61
2009-08-11 15:57:23 -05:00
Jason Orendorff
b9ad5fce20
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -05:00
Jason Orendorff
5aee8abf28
Bug 461269 - Remove TOK_RP nodes from the parse tree. r=brendan.
2009-08-10 14:00:46 -05:00
Robert Sayre
d366588e38
Backed out changeset e09130fcb013
2009-07-28 18:51:35 -04:00
Brendan Eich
19c9082e33
Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor).
2009-07-28 13:20:14 -07:00
Andreas Gal
d1254f2c2c
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00
Andreas Gal
3d82e3202b
Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor).
2009-07-16 18:42:54 -07:00
Brendan Eich
b26c3a2062
Bug 503343 - Change JSScope macros to methods. r=jorendorff
2009-07-09 15:27:21 -05:00
Jason Orendorff
d748abbc44
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Blake Kaplan
8880976941
Bug 496870 - Emit JSOP_STARTXMLEXPR before potentially emitting any LC nodes in a list. r=Waldo
2009-06-08 16:48:30 -07:00
Brendan Eich
7bc62fc773
Fix delete upvar (and local var, too) analysis (496422, r=igor).
2009-06-07 13:07:16 -07:00
Brendan Eich
3442a335eb
Bug 494235: wrap escaping optimized closures for the debugger API (r=igor/mrbkap).
2009-06-04 18:58:47 -07:00
Brendan Eich
02eff52791
Bug 462704 - [jsd] incorrect lineExtent when a while loop ends a method (r=mrbkap).
2009-05-20 23:35:42 -07:00
Brendan Eich
7ca87f34c5
Bug 493177 - Browser crashes in loading of certain page.[@ js_Interpret] (r=mrbkap; take 2).
2009-05-15 17:38:38 -07:00