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

Issue 10444091: Avoid reading RawObject::class_ directly in the runtime. (Closed)

Created:
8 years, 6 months ago by Vyacheslav Egorov (Google)
Modified:
8 years, 6 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Avoid reading RawObject::class_ directly in the runtime. Instead rely on tags_ and perform lookups through isolate's class table where appropriately. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=8244

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -31 lines) Patch
M runtime/vm/gc_marker.cc View 4 chunks +9 lines, -4 lines 0 comments Download
M runtime/vm/heap.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/raw_object.h View 2 chunks +2 lines, -0 lines 1 comment Download
M runtime/vm/raw_object.cc View 5 chunks +28 lines, -17 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Vyacheslav Egorov (Google)
8 years, 6 months ago (2012-05-30 16:15:08 UTC) #1
Vyacheslav Egorov (Google)
Please take a look. This is expected to be the last CL before class_ can ...
8 years, 6 months ago (2012-05-30 16:17:02 UTC) #2
Vyacheslav Egorov (Google)
ping
8 years, 6 months ago (2012-05-31 08:50:33 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object.cc File runtime/vm/raw_object.cc (left): https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object.cc#oldcode281 runtime/vm/raw_object.cc:281: case kFreeListElement: { You do not handle kFreeListElements here, ...
8 years, 6 months ago (2012-05-31 13:06:24 UTC) #4
Vyacheslav Egorov (Google)
https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object.cc File runtime/vm/raw_object.cc (left): https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object.cc#oldcode281 runtime/vm/raw_object.cc:281: case kFreeListElement: { On 2012/05/31 13:06:24, Ivan Posva wrote: ...
8 years, 6 months ago (2012-05-31 13:21:48 UTC) #5
Ivan Posva
8 years, 6 months ago (2012-06-01 16:31:06 UTC) #6
LGTM with comment.

-Ivan

https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object.h
File runtime/vm/raw_object.h (right):

https://chromiumcodereview.appspot.com/10444091/diff/1/runtime/vm/raw_object....
runtime/vm/raw_object.h:338: ASSERT(!FreeBit::decode(tags));
Please mark this with a TODO that we need to revisit this once we give the free
list elements a different layout.

Powered by Google App Engine
This is Rietveld 408576698