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

Issue 849093002: Tweak CanLoadFromObjectPool to return true even if obj.InVMHeap(). (Closed)

Created:
5 years, 11 months ago by Vyacheslav Egorov (Google)
Modified:
5 years, 11 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Tweak CanLoadFromObjectPool to return true even if obj.InVMHeap(). Previously it made sense to return false from this predicate because we would then load it directly as immediate. However after r28067 we switched from movq to LoadImmediate. Now we end up putting obj.raw() into a constant pool with lowest bit masked off (to make it look like a smi) and then restoring this bit after load: movq r10, [r15 + offs] orq r10, 1 This orq is completely redundant - we should not clear off the least significant bit in the first place. BUG= R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=42877

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M runtime/vm/assembler_arm64.cc View 1 chunk +1 line, -4 lines 2 comments Download
M runtime/vm/assembler_x64.cc View 1 chunk +1 line, -4 lines 2 comments Download
M runtime/vm/compiler.cc View 1 chunk +11 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (1 generated)
Vyacheslav Egorov (Google)
PTAL
5 years, 11 months ago (2015-01-14 17:17:12 UTC) #2
zra
lgtm https://codereview.chromium.org/849093002/diff/1/runtime/vm/assembler_arm64.cc File runtime/vm/assembler_arm64.cc (right): https://codereview.chromium.org/849093002/diff/1/runtime/vm/assembler_arm64.cc#newcode569 runtime/vm/assembler_arm64.cc:569: object.InVMHeap()); Don't need this anymore, I think. https://codereview.chromium.org/849093002/diff/1/runtime/vm/assembler_x64.cc ...
5 years, 11 months ago (2015-01-14 17:53:25 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/849093002/diff/1/runtime/vm/assembler_arm64.cc File runtime/vm/assembler_arm64.cc (right): https://codereview.chromium.org/849093002/diff/1/runtime/vm/assembler_arm64.cc#newcode569 runtime/vm/assembler_arm64.cc:569: object.InVMHeap()); On 2015/01/14 17:53:24, zra wrote: > Don't need ...
5 years, 11 months ago (2015-01-14 17:56:33 UTC) #4
Vyacheslav Egorov (Google)
5 years, 11 months ago (2015-01-14 17:57:54 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 42877 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698