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

Issue 6812046: X64: Convert HeapNumbers that contain valid smi values to smis in binop-stub. (Closed)

Created:
9 years, 8 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

X64: Convert HeapNumbers that contain valid smi values to smis in binop-stub. When the TypeRecordingBinaryOpStub expect smi values as input, they might sometimes come as HeapNumbers. The transition code will detect the heap numbers as holding values that are valid smi values, and will not change the expectations. However, the stub didn't handle HeapNumbers and always tried to transition again. Committed: http://code.google.com/p/v8/source/detail?r=7560

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed review comments. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -14 lines) Patch
M src/x64/code-stubs-x64.cc View 1 5 chunks +87 lines, -14 lines 6 comments Download
M src/x64/macro-assembler-x64.h View 1 2 chunks +28 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
9 years, 8 months ago (2011-04-08 08:41:44 UTC) #1
William Hesse
I think the change can be made smaller and simpler, see comments. http://codereview.chromium.org/6812046/diff/1/src/v8globals.h File src/v8globals.h ...
9 years, 8 months ago (2011-04-08 09:27:58 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/6812046/diff/1/src/v8globals.h File src/v8globals.h (right): http://codereview.chromium.org/6812046/diff/1/src/v8globals.h#newcode350 src/v8globals.h:350: explicit DoubleRepresentation(double x) { memcpy(&bits, &x, sizeof(bits)); } agree. ...
9 years, 8 months ago (2011-04-08 11:18:10 UTC) #3
William Hesse
LGTM. See comments. http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc File src/x64/code-stubs-x64.cc (right): http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc#newcode471 src/x64/code-stubs-x64.cc:471: // (If you just want to ...
9 years, 8 months ago (2011-04-08 12:01:27 UTC) #4
Lasse Reichstein
9 years, 8 months ago (2011-04-08 12:07:46 UTC) #5
http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc
File src/x64/code-stubs-x64.cc (right):

http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:471: // (If you just want to fall through in all
cases, put the success
Done.

http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:2102: __ LoadRoot(heap_number_root,
Heap::kHeapNumberMapRootIndex);
Absolutely.

http://codereview.chromium.org/6812046/diff/6/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:2124: // One of first or second should be non-smi if
we get here.
Done.

Powered by Google App Engine
This is Rietveld 408576698