Received: by 10.224.78.209 with SMTP id m17mr7296859qak.3.1349441226195; Fri, 05 Oct 2012 05:47:06 -0700 (PDT) X-BeenThere: v8-dev@googlegroups.com Received: by 10.229.135.3 with SMTP id l3ls4785468qct.6.gmail; Fri, 05 Oct 2012 05:47:04 -0700 (PDT) Received: by 10.224.189.75 with SMTP id dd11mr7291899qab.6.1349441224728; Fri, 05 Oct 2012 05:47:04 -0700 (PDT) Received: by 10.224.189.75 with SMTP id dd11mr7291898qab.6.1349441224717; Fri, 05 Oct 2012 05:47:04 -0700 (PDT) Return-Path: <3yNZuUBUJALkbgqnlhtlbncdqduhdv-gqflZhk....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com> Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by gmr-mx.google.com with ESMTPS id ek33si2083757qcb.0.2012.10.05.05.47.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 05:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of 3yNZuUBUJALkbgqnlhtlbncdqduhdv-gqflZhk....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com designates 209.85.216.199 as permitted sender) client-ip=209.85.216.199; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3yNZuUBUJALkbgqnlhtlbncdqduhdv-gqflZhk....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com designates 209.85.216.199 as permitted sender) smtp.mail=3yNZuUBUJALkbgqnlhtlbncdqduhdv-gqflZhk....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com; dkim=pass header...@chromium.org Received: by mail-qc0-f199.google.com with SMTP id b40so2284551qcq.2 for ; Fri, 05 Oct 2012 05:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:reply-to:x-google-appengine-app-id:message-id:date :subject:from:to:cc:content-type; bh=yRUEGKrh2v6+dcrMYqDZMKjov+sWa7dQiJbdKeWNAXA=; b=FYvBZ5msVdN05Eh4qA+su+JUyK8E++dI4DMuxjJLFyMbLKbmBy6wy48dhSMVmGWcWy Zafn1qHkzMB8vVAQP9Dcy6BKsjUxStLbJ496NXtVMXFTPjr45y6kh/sivBeE1f4Atmwl cwHDYQMMvK8ACyRAwIFl0Woccu/R92A8TzjtY= d=google.com; s=20120113; h=mime-version:reply-to:x-google-appengine-app-id:message-id:date :subject:from:to:cc:content-type:x-gm-message-state; bh=yRUEGKrh2v6+dcrMYqDZMKjov+sWa7dQiJbdKeWNAXA=; b=QIW2fEYzpt6qa2CJOWsoYJVEec/1JI16V/W6amjNTnjWhypZUm5V8Ddzl0SvsF8DbM 0x2ahozctvcYOvvqe8Ly1wfOoyrhBpp/tmYNUfFza6v4oNfaiHOeVn6eVv1b6TG38lfR hb4ddxwCkcBavizkk77PtHNKNMOtNC/fP7O4uLgUUj4eAP6CJPR3UM8aXuckvF1mLVat Gk6dx9ar4J4nOcPVLkiFOI6MzZaFeCyyzXwwpHH7poFnQxozKvksv37eEUkcCN4NAiEr srmA6xqi+k63yaciXpPUS5aXoBax+uGedlejeEheKGGkiNZr0GbgY5xmob3pZAiSTLn7 lK/Q== MIME-Version: 1.0 Received: by 10.58.186.165 with SMTP id fl5mr234777vec.38.1349441224510; Fri, 05 Oct 2012 05:47:04 -0700 (PDT) Reply-To: rossb...@chromium.org, mstarzin...@chromium.org, v8-dev@googlegroups.com Message-ID: <047d7b6d7fced50d8d04cb4f4...@google.com> Date: Fri, 05 Oct 2012 12:47:04 +0000 Subject: Re: Make sure that names of temporaries do not clash with real variables. (issue 11035054) From: rossb...@chromium.org To: mstarzin...@chromium.org Cc: v8-dev@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes X-Gm-Message-State: ALoCoQnaJd4PU6XTAjackLzpmqJOLKjkoCA8smqlitCpRFbmdBmcRSOKavFNrqxO/3cp4yKaZdLW https://codereview.chromium.org/11035054/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/11035054/diff/1/src/parser.cc#newcode2847 src/parser.cc:2847: heap_factory->NewStringFromAscii(CStrVector(".for.")); On 2012/10/05 12:31:38, Michael Starzinger wrote: > You could move this symbol into the root-set by adding it to SYMBOL_LIST, call > it e.g. dot_for_symbol and then access it through factory->dot_for_symbol(). Done. > Also does the name really need to be different for every temporary, or could we > use the one symbol for all temporaries? There can be several loop variables in the same scope, so they should be distinguishable. https://codereview.chromium.org/11035054/