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

Issue 376233002: Introduce a PrototypeIterator class and use it for prototype access (Closed)

Created:
6 years, 5 months ago by jochen (gone - plz use gerrit)
Modified:
6 years, 5 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Introduce a PrototypeIterator class and use it for prototype access The new pattern is that we first get the map of the root of the prototype chain using Object::GetMapRoot() and then walk up the prototype chain using Map::prototype(). BUG=??? R=verwaest@chromium.org LOG=n Committed: https://code.google.com/p/v8/source/detail?r=22365

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 8

Patch Set 3 : updates #

Patch Set 4 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -135 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M src/accessors.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M src/api.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M src/ic.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/ic-inl.h View 2 chunks +6 lines, -3 lines 0 comments Download
M src/isolate.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M src/objects.cc View 1 2 12 chunks +64 lines, -74 lines 0 comments Download
A src/prototype.h View 1 2 1 chunk +130 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 7 chunks +43 lines, -35 lines 0 comments Download
M src/string-stream.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jochen (gone - plz use gerrit)
6 years, 5 months ago (2014-07-09 15:35:46 UTC) #1
Toon Verwaest
LGTM
6 years, 5 months ago (2014-07-10 20:30:03 UTC) #2
Toon Verwaest
Oh wait. If START_AT_RECEIVER, Advance will fail if receiver is non-JSReceiver, right? What about having ...
6 years, 5 months ago (2014-07-10 20:37:49 UTC) #3
jochen (gone - plz use gerrit)
On 2014/07/10 at 20:37:49, verwaest wrote: > Oh wait. > > If START_AT_RECEIVER, Advance will ...
6 years, 5 months ago (2014-07-11 09:06:01 UTC) #4
Toon Verwaest
Some more comments. https://codereview.chromium.org/376233002/diff/20001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/376233002/diff/20001/src/builtins.cc#newcode1098 src/builtins.cc:1098: ASSERT(!iter.GetCurrent()->IsJSProxy()); What about returning heap->null_value() if ...
6 years, 5 months ago (2014-07-11 09:41:28 UTC) #5
Toon Verwaest
lgtm
6 years, 5 months ago (2014-07-11 14:07:35 UTC) #6
jochen (gone - plz use gerrit)
6 years, 5 months ago (2014-07-14 07:20:03 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r22365 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698