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

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (Closed)

Created:
6 years, 9 months ago by Toon Verwaest
Modified:
6 years, 5 months ago
Reviewers:
Igor Sheludko
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

Replace HeapNumber as doublebox with an explicit MutableHeapNumber. BUG=

Patch Set 1 : #

Total comments: 15

Patch Set 2 : Use flag #

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -69 lines) Patch
M include/v8.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 chunks +50 lines, -0 lines 0 comments Download
M src/arm64/lithium-arm64.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/arm64/lithium-codegen-arm64.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 2 chunks +48 lines, -0 lines 0 comments Download
M src/deoptimizer.cc View 3 chunks +7 lines, -1 line 0 comments Download
M src/factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/handles.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M src/heap.cc View 1 6 chunks +14 lines, -7 lines 0 comments Download
M src/heap-inl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 2 chunks +12 lines, -8 lines 0 comments Download
M src/hydrogen-instructions.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 chunks +46 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ic.cc View 1 1 chunk +4 lines, -7 lines 0 comments Download
M src/json-parser.h View 1 1 chunk +2 lines, -3 lines 1 comment Download
M src/json-stringifier.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/mark-compact.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 7 chunks +14 lines, -1 line 0 comments Download
M src/objects.cc View 1 13 chunks +34 lines, -4 lines 0 comments Download
M src/objects-debug.cc View 1 3 chunks +3 lines, -2 lines 1 comment Download
M src/objects-inl.h View 1 5 chunks +26 lines, -4 lines 0 comments Download
M src/objects-printer.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects-visiting.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 chunks +45 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M test/cctest/test-heap-profiler.cc View 2 chunks +4 lines, -5 lines 1 comment Download
M test/mjsunit/fuzz-natives-part1.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
A + test/mjsunit/regress/regress-load-field-by-index.js View 1 1 chunk +11 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Toon Verwaest
PTAL
6 years, 9 months ago (2014-03-26 10:21:39 UTC) #1
Igor Sheludko
First round of comments. BTW, what if GVN decide to merge two equal mutable heap ...
6 years, 9 months ago (2014-03-27 11:30:15 UTC) #2
Toon Verwaest
Addressed comments, PTAL again.
6 years, 8 months ago (2014-03-31 09:36:01 UTC) #3
Igor Sheludko
6 years, 8 months ago (2014-03-31 11:19:04 UTC) #4
lgtm with nits:

https://codereview.chromium.org/211333002/diff/80001/src/json-parser.h
File src/json-parser.h (right):

https://codereview.chromium.org/211333002/diff/80001/src/json-parser.h#newcod...
src/json-parser.h:416: // double, use the existing box.
Please update comment to match the code.

https://codereview.chromium.org/211333002/diff/80001/src/objects-debug.cc
File src/objects-debug.cc (right):

https://codereview.chromium.org/211333002/diff/80001/src/objects-debug.cc#new...
src/objects-debug.cc:294: if (r.IsDouble())
ASSERT(value->IsMutableHeapNumber());
ASSERT(r.IsDouble() == value->IsMutableHeapNumber()); instead of if(...) ?

https://codereview.chromium.org/211333002/diff/80001/test/cctest/test-heap-pr...
File test/cctest/test-heap-profiler.cc (right):

https://codereview.chromium.org/211333002/diff/80001/test/cctest/test-heap-pr...
test/cctest/test-heap-profiler.cc:1628: CHECK(js_n_prop ==
heap_profiler->FindObjectById(n_prop->GetId()));
Probably it would be less confusing to check that number properties are not
visible to the heap profiler:
CHECK(n_prop == NULL) or something like that. 
Or just remove the n_prop because currently the test performs the same checks
for both s_prop and n_prop.

Powered by Google App Engine
This is Rietveld 408576698