/[jscoverage]/trunk/js/jsemit.cpp
ViewVC logotype

Diff of /trunk/js/jsemit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 584 by siliconforks, Sun Jan 10 07:23:34 2010 UTC revision 585 by siliconforks, Sun Sep 12 15:13:23 2010 UTC
# Line 2050  Line 2050 
2050              if (op != JSOP_NAME)              if (op != JSOP_NAME)
2051                  return JS_TRUE;                  return JS_TRUE;
2052    
2053                /*
2054                 * Generator functions may be resumed from any call stack, which
2055                 * defeats the display optimization to static link searching used
2056                 * by JSOP_{GET,CALL}UPVAR.
2057                 */
2058                if (cg->flags & TCF_FUN_IS_GENERATOR)
2059                    return JS_TRUE;
2060    
2061              return MakeUpvarForEval(pn, cg);              return MakeUpvarForEval(pn, cg);
2062          }          }
2063          return JS_TRUE;          return JS_TRUE;
# Line 6178  Line 6186 
6186        case TOK_FILTER:        case TOK_FILTER:
6187          if (!js_EmitTree(cx, cg, pn->pn_left))          if (!js_EmitTree(cx, cg, pn->pn_left))
6188              return JS_FALSE;              return JS_FALSE;
6189          jmp = js_Emit3(cx, cg, JSOP_FILTER, 0, 0);          jmp = EmitJump(cx, cg, JSOP_FILTER, 0);
6190          if (jmp < 0)          if (jmp < 0)
6191              return JS_FALSE;              return JS_FALSE;
6192          top = js_Emit1(cx, cg, JSOP_TRACE);          top = js_Emit1(cx, cg, JSOP_TRACE);

Legend:
Removed from v.584  
changed lines
  Added in v.585

  ViewVC Help
Powered by ViewVC 1.1.24