Closed
Bug 886322
Opened 11 years ago
Closed 11 years ago
Remove keepAtoms member in TokenStream
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: wingo, Assigned: wingo)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee: general → wingo
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 766710 [details] [diff] [review]
Remove TokenStream::positionAfterLastFunctionKeyword in favor of TokenStream::tell
It seems that positionAfterLastFunctionKeyword is useless since the introduction of lazy parsing. Does this change make sense? Seen while working on function*.
Attachment #766710 -
Flags: review?(jorendorff)
Assignee | ||
Comment 3•11 years ago
|
||
Adding people from bug 819509.
Comment 4•11 years ago
|
||
Coincidentally, I just r+d one of bhackett's patches (lost the link to it now) that fixed a fuzz bug by doing exactly this.
Comment 5•11 years ago
|
||
Yeah, bug 884920 does this to fix a crash, should land today.
Assignee | ||
Comment 6•11 years ago
|
||
Bizarre synchrony! Note that this patch also removes the keepAtoms argument to TokenStream, as AFAICT it's no longer needed. Not sure about that, though!
Comment 7•11 years ago
|
||
Comment on attachment 766710 [details] [diff] [review]
Remove TokenStream::positionAfterLastFunctionKeyword in favor of TokenStream::tell
Review of attachment 766710 [details] [diff] [review]:
-----------------------------------------------------------------
r=me to remove the keepAtoms argument, if that's what remains to be done here.
Attachment #766710 -
Flags: review?(jorendorff) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #766710 -
Attachment is obsolete: true
Assignee | ||
Comment 9•11 years ago
|
||
Updated patch removes keepAtoms argument, setting checkin-needed. Thanks for the review.
Keywords: checkin-needed
Assignee | ||
Updated•11 years ago
|
Summary: Remove TokenStream::positionAfterLastFunctionKeyword in favor of TokenStream::tell → Remove keepAtoms member in TokenStream
Comment 10•11 years ago
|
||
Keywords: checkin-needed
Comment 11•11 years ago
|
||
Comment on attachment 783781 [details] [diff] [review]
Remove keepAtoms member in TokenStream
Review of attachment 783781 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/frontend/TokenStream.cpp
@@ +1168,5 @@
> }
> tt = TOK_NAME;
> if (!checkForKeyword(chars, length, &tt))
> goto error;
> + if (tt != TOK_NAME) goto out;
This looks like a typo. Please change it back!
Comment 12•11 years ago
|
||
Comment on attachment 783781 [details] [diff] [review]
Remove keepAtoms member in TokenStream
Also, if you post an updated version of an r+'d patch for check-in, it's customary to mark it r+ yourself. That way, the non-obsoleted patches all have r+ on them, which saves people thinking "why was that non-r+'d patch checked in?"
Attachment #783781 -
Flags: review+
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #11)
> Comment on attachment 783781 [details] [diff] [review]
> Remove keepAtoms member in TokenStream
>
> Review of attachment 783781 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: js/src/frontend/TokenStream.cpp
> @@ +1168,5 @@
> > }
> > tt = TOK_NAME;
> > if (!checkForKeyword(chars, length, &tt))
> > goto error;
> > + if (tt != TOK_NAME) goto out;
>
> This looks like a typo. Please change it back!
Sorry about that. Good catch! Will fold into bug 885695, I guess.
Comment 14•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•