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

Issue 11738002: Include 64-bit optimized assembly on Windows when building x64 (Closed)

Created:
7 years, 11 months ago by Ryan Sleevi
Modified:
5 years ago
Reviewers:
wtc, scottmg
CC:
chromium-reviews
Visibility:
Public.

Description

Include 64-bit optimized assembly on Windows when building x64 BUG=167951 TEST='nss' compiles and links R=wtc@chromium.org

Patch Set 1 #

Patch Set 2 : Update checkout script #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+13618 lines, -9 lines) Patch
A mozilla/security/nss/lib/freebl/arcfour-amd64-masm.asm View 1 chunk +107 lines, -0 lines 0 comments Download
A mozilla/security/nss/lib/freebl/mpi/mp_comba_amd64_masm.asm View 1 chunk +13066 lines, -0 lines 0 comments Download
A mozilla/security/nss/lib/freebl/mpi/mpi_amd64_masm.asm View 1 chunk +388 lines, -0 lines 0 comments Download
M nss.gyp View 5 chunks +55 lines, -9 lines 10 comments Download
M scripts/nss-checkout.sh View 1 2 chunks +2 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Ryan Sleevi
wtc: NSS #define rules scottmg: What's your feel on these MASM changes being here? The ...
7 years, 11 months ago (2013-01-02 05:57:56 UTC) #1
scottmg
On 2013/01/02 05:57:56, Ryan Sleevi wrote: > wtc: NSS #define rules > scottmg: What's your ...
7 years, 11 months ago (2013-01-02 16:01:25 UTC) #2
wtc
Patch set 2 LGTM. https://codereview.chromium.org/11738002/diff/2002/nss.gyp File nss.gyp (right): https://codereview.chromium.org/11738002/diff/2002/nss.gyp#newcode1129 nss.gyp:1129: 'WIN64', coreconf/WIN32.mk also defines _AMD64_. ...
7 years, 11 months ago (2013-01-04 16:26:40 UTC) #3
Ryan Sleevi
On 2013/01/02 16:01:25, scottmg wrote: > On 2013/01/02 05:57:56, Ryan Sleevi wrote: > > wtc: ...
7 years, 11 months ago (2013-01-07 03:32:59 UTC) #4
Ryan Sleevi
I have https://codereview.chromium.org/11742015/ pending to add support for MASM to GYP & Winja. An alternative ...
7 years, 11 months ago (2013-01-07 03:37:34 UTC) #5
scottmg
On 2013/01/07 03:37:34, Ryan Sleevi wrote: > I have https://codereview.chromium.org/11742015/ pending to add support for ...
7 years, 11 months ago (2013-01-07 16:20:54 UTC) #6
wtc
7 years, 11 months ago (2013-01-10 03:21:09 UTC) #7
https://codereview.chromium.org/11738002/diff/2002/nss.gyp
File nss.gyp (right):

https://codereview.chromium.org/11738002/diff/2002/nss.gyp#newcode1132
nss.gyp:1132: 'MP_IS_LITTLE_ENDIAN',

On 2013/01/07 03:37:34, Ryan Sleevi wrote:
> On 2013/01/04 16:26:40, wtc wrote:
> > 
> > Not sure if you meant to sort these macros alphabetically or
> > match the order in which they're defined in the NSS makefile:
> >
>
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/nss/lib/freebl/M...
> 
> To match the order

These macros are defined in lib/freebl/Makefile in this
order:

  MP_CHAR_STORE_SLOW
  MP_IS_LITTLE_ENDIAN
  NSS_BEVAND_ARCFOUR
  MPI_AMD64
  MP_ASSEMBLY_MULTIPLY
  NSS_USE_COMBA

The order used in this file is not sorted (but very
close) and doesn't match the order used in
lib/freebl/Makefile.

https://codereview.chromium.org/11738002/diff/2002/nss.gyp#newcode1142
nss.gyp:1142: 'output_file': '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)_asm.obj'

Names of assembly code files typically contain the processor
or instruction set architecture names, so name conflicts with
C/C++ file names should be unlikely. (NSS does have a near
conflict: mpi_amd64.c and mpi_amd64_masm.asm.) In addition,
having the source files foo.c and foo.s in the same
directory is problematic if makefiles are used.

Can we remove the "_asm" from the GYP file rule for YASM
files? I wonder if it is a solution to a non-problem.
If there is a name conflict in the Chromium source tree,
I think it is better to simply append .obj to the original
assembly file name (including the .asm extension).

Powered by Google App Engine
This is Rietveld 408576698