Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Issue 10546166: ES5.2 var semantics: take hidden prototypes into account. (Closed)

Created:
8 years, 6 months ago by rossberg
Modified:
8 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

ES5.2 var semantics: take hidden prototypes into account. R=mstarzinger@chromium.org BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=11818

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M src/runtime.cc View 1 chunk +10 lines, -4 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
8 years, 6 months ago (2012-06-14 11:29:40 UTC) #1
Michael Starzinger
LGTM (with one nit). Also do we have test coverage for that, once es52_globals is ...
8 years, 6 months ago (2012-06-14 13:16:28 UTC) #2
arv (Not doing code reviews)
8 years, 6 months ago (2012-06-20 19:34:14 UTC) #3
FYI

https://chromiumcodereview.appspot.com/10546166/diff/1/src/runtime.cc
File src/runtime.cc (right):

https://chromiumcodereview.appspot.com/10546166/diff/1/src/runtime.cc#newcode...
src/runtime.cc:1319: } while (!lookup.IsFound() && obj->IsJSObject() &&
On 2012/06/14 13:16:28, Michael Starzinger wrote:
> Can we move the "lookup.IsFound()" condition into the loop before getting the
> prototype? That would be cleaner IMHO ...
> 
> if (lookup.isFound()) break;

Also, there is no reason to get the prototype if lookup.IsFound() is true.

Maybe the compiler is smart enough to realize that but why take that risk?

Powered by Google App Engine
This is Rietveld 408576698