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

Issue 1631008: Optimize the assembly code generated for Math.random() (Closed)

Created:
10 years, 8 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Optimize the assembly code generated for Math.random() Committed: http://code.google.com/p/v8/source/detail?r=4384

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -46 lines) Patch
M src/assembler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 2 chunks +30 lines, -5 lines 0 comments Download
M src/serialize.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/v8.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 2 chunks +19 lines, -17 lines 0 comments Download
M src/x64/disasm-x64.cc View 2 2 chunks +30 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
William Hesse
I still need to add the instructions to the x64 disassembler.
10 years, 8 months ago (2010-04-09 12:41:56 UTC) #1
Rico
LGTM http://codereview.chromium.org/1631008/diff/1/4 File src/assembler.h (right): http://codereview.chromium.org/1631008/diff/1/4#newcode401 src/assembler.h:401: static ExternalReference fill_heap_number_with_random_function(); Do we still need this? ...
10 years, 8 months ago (2010-04-12 07:19:32 UTC) #2
William Hesse
http://codereview.chromium.org/1631008/diff/1/4 File src/assembler.h (right): http://codereview.chromium.org/1631008/diff/1/4#newcode401 src/assembler.h:401: static ExternalReference fill_heap_number_with_random_function(); On 2010/04/12 07:19:32, Rico wrote: > ...
10 years, 8 months ago (2010-04-12 10:07:27 UTC) #3
Rico
10 years, 8 months ago (2010-04-12 10:17:30 UTC) #4
http://codereview.chromium.org/1631008/diff/1/7
File src/x64/assembler-x64.h (right):

http://codereview.chromium.org/1631008/diff/1/7#newcode1108
src/x64/assembler-x64.h:1108: // The first argument is the reg field, the second
argument is the r/m field.
On 2010/04/12 10:07:27, William Hesse wrote:
> On 2010/04/12 07:19:32, Rico wrote:
> > I do not get this comment - how can an XMMRegister be a memory field?
> 
> The r/m field contains either a register reference (mode 3) or a memory
operand
> reference (modes 0, 1, and 2).  If it contains a register reference, it refers
> to either an XMM register or a GP register depending on the opcode.
> 
Sorry my bad - I did not realize that the comment where describing the next
three lines (I just thought it was describing the next line)

Powered by Google App Engine
This is Rietveld 408576698