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

Issue 9121033: Break a circular include dependency. (Closed)

Created:
8 years, 11 months ago by Kevin Millikin (Chromium)
Modified:
8 years, 11 months ago
CC:
v8-dev
Visibility:
Public.

Description

Break a circular include dependency. 1. heap-inl.h has a function Heap::_inline_get_heap_ that calls Isolate::Current() defined in isolate.h, so heap-inl.h requires isolate.h. 2. Isolate has an embedded Heap member, so isolate.h requires heap.h. 3. heap.h has inline functions functions defined that call Heap::_inline_get_heap_, so heap.h requires heap-inl.h (!). The upshot is that all three need to be included wherever one is. A simpler way is to break the cycle by moving the inlined functions in heap.h to heap-inl.h. R=vegorov@chromium.org BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=10539

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporated reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -90 lines) Patch
M src/heap.h View 6 chunks +27 lines, -87 lines 0 comments Download
M src/heap-inl.h View 1 2 chunks +86 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
8 years, 11 months ago (2012-01-27 02:34:50 UTC) #1
Vyacheslav Egorov (Chromium)
lgtm https://chromiumcodereview.appspot.com/9121033/diff/1/src/heap-inl.h File src/heap-inl.h (right): https://chromiumcodereview.appspot.com/9121033/diff/1/src/heap-inl.h#newcode730 src/heap-inl.h:730: void VerifyPointersVisitor::VisitPointers(Object** start, Object** end) { I think ...
8 years, 11 months ago (2012-01-27 08:41:04 UTC) #2
Kevin Millikin (Chromium)
8 years, 11 months ago (2012-01-27 15:48:10 UTC) #3
Thanks and thanks.

Powered by Google App Engine
This is Rietveld 408576698