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

Issue 209048: Handle array construction in native code (x64 version) (Closed)

Created:
11 years, 3 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Handle array construction in native code (x64 version). Ported the handle array construction in native code to x64. See http://codereview.chromium.org/193125 for details. Please take a closer look of my use of the macro assembler Smi abstractions. Committed: http://code.google.com/p/v8/source/detail?r=2960

Patch Set 1 #

Total comments: 17

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -13 lines) Patch
M src/ia32/builtins-ia32.cc View 3 4 chunks +12 lines, -11 lines 0 comments Download
M src/x64/assembler-x64.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 3 chunks +415 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 2 chunks +9 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 3 4 2 chunks +28 lines, -0 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Søren Thygesen Gjesse
11 years, 3 months ago (2009-09-21 11:18:36 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/209048/diff/1/2 File src/x64/builtins-x64.cc (right): http://codereview.chromium.org/209048/diff/1/2#newcode480 Line 480: int holes, Rename "holes" to "initial_capacity". http://codereview.chromium.org/209048/diff/1/2#newcode494 ...
11 years, 3 months ago (2009-09-22 11:29:33 UTC) #2
Søren Thygesen Gjesse
Please review the added andl instruction to the assembler and the CheckSmiGreaterEqualsConstant in the macro ...
11 years, 3 months ago (2009-09-22 13:00:42 UTC) #3
Lasse Reichstein
LGTM w/ comments. http://codereview.chromium.org/209048/diff/1/2 File src/x64/builtins-x64.cc (right): http://codereview.chromium.org/209048/diff/1/2#newcode726 Line 726: __ cmpq(rdx, Immediate(JSObject::kInitialMaxFastElementArray << kSmiTagSize)); ...
11 years, 3 months ago (2009-09-23 07:41:53 UTC) #4
Søren Thygesen Gjesse
Please look at the changes to the macro assembler once more. http://codereview.chromium.org/209048/diff/4002/4005 File src/x64/macro-assembler-x64.cc (right): ...
11 years, 3 months ago (2009-09-23 12:40:00 UTC) #5
Lasse Reichstein
LGTM http://codereview.chromium.org/209048/diff/4002/4005 File src/x64/macro-assembler-x64.cc (right): http://codereview.chromium.org/209048/diff/4002/4005#newcode526 Line 526: Condition are_greater_equal = CheckSmiEqualsConstant(src, constant); Keep it. ...
11 years, 3 months ago (2009-09-23 12:45:30 UTC) #6
Lasse Reichstein
http://codereview.chromium.org/209048/diff/4002/4005 File src/x64/macro-assembler-x64.cc (right): http://codereview.chromium.org/209048/diff/4002/4005#newcode618 Line 618: andl(src, Immediate(static_cast<uint32_t>(0x80000000u))); Come to think of it, use: ...
11 years, 3 months ago (2009-09-23 12:46:46 UTC) #7
Søren Thygesen Gjesse
11 years, 3 months ago (2009-09-23 13:02:13 UTC) #8
http://codereview.chromium.org/209048/diff/4002/4005
File src/x64/macro-assembler-x64.cc (right):

http://codereview.chromium.org/209048/diff/4002/4005#newcode526
Line 526: Condition are_greater_equal = CheckSmiEqualsConstant(src, constant);
On 2009/09/23 12:45:30, Lasse Reichstein wrote:
> Keep it.
> I'll refactor it anyway, when I merge it with my current work.

Done.

http://codereview.chromium.org/209048/diff/4002/4005#newcode618
Line 618: andl(src, Immediate(static_cast<uint32_t>(0x80000000u)));
On 2009/09/23 12:46:46, Lasse Reichstein wrote:
> Come to think of it, use:
>  testl(src, src);
>  return not_negative;
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698