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

Issue 9417044: Moved access checks out of Dictionary class. (Closed)

Created:
8 years, 10 months ago by Sven Panne
Modified:
8 years, 10 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Moved access checks out of Dictionary class. The checks were at the wrong abstraction level, JSObject is the right place for this check. Note that other uses of ValueAtPut either don't need a check at all (like the one used for copying boilerplate) or do the check for themselves. Committed: https://code.google.com/p/v8/source/detail?r=10741

Patch Set 1 #

Patch Set 2 : Improved comment a bit. #

Total comments: 2

Patch Set 3 : Added whitespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -14 lines) Patch
M src/objects.h View 1 2 1 chunk +2 lines, -12 lines 0 comments Download
M src/objects.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 10 months ago (2012-02-17 13:40:32 UTC) #1
Michael Starzinger
LGTM (with a nit). https://chromiumcodereview.appspot.com/9417044/diff/2001/src/objects.h File src/objects.h (right): https://chromiumcodereview.appspot.com/9417044/diff/2001/src/objects.h#newcode2913 src/objects.h:2913: return this->get(HashTable<Shape, Key>::EntryToIndex(entry)+1); I know ...
8 years, 10 months ago (2012-02-17 13:44:26 UTC) #2
Sven Panne
8 years, 10 months ago (2012-02-17 13:46:58 UTC) #3
https://chromiumcodereview.appspot.com/9417044/diff/2001/src/objects.h
File src/objects.h (right):

https://chromiumcodereview.appspot.com/9417044/diff/2001/src/objects.h#newcod...
src/objects.h:2913: return this->get(HashTable<Shape,
Key>::EntryToIndex(entry)+1);
On 2012/02/17 13:44:26, Michael Starzinger wrote:
> I know you didn't touch this line, but could you add a space before and after
> the plus operator here?

Done.

Powered by Google App Engine
This is Rietveld 408576698