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

Issue 10828060: Use the ARM assembly code in mpi_arm.c for iOS. (Closed)

Created:
8 years, 4 months ago by wtc
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use the ARM assembly code in mpi_arm.c for iOS. For Mac OS X and iOS, use a forced include file (mozilla/security/nss/lib/freebl/build_config_mac.h) to define the processor architecture specific macros used by NSS's lib/freebl code. R=droger@chromium.org,mark@chromium.org,rsleevi@chromium.org BUG=139432 TEST=no build error or net_unittests failure. Visit https://www.google.com/ on iOS.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make changes suggested by rsleevi and stuartmorgan #

Total comments: 4

Patch Set 3 : Add mpi_mac.c for including the appropriate assembly code file for Mac/iOS #

Total comments: 11

Patch Set 4 : Sync with tip of tree and use -include <forced_include_header> #

Total comments: 6

Patch Set 5 : Rename mpi_mac.c to mpi_arm_mac.c. Add comments. #

Total comments: 14

Patch Set 6 : Improve nss.gyp changes. Describe new files in README.chromium. #

Total comments: 7

Patch Set 7 : Define the forced_include_file variable in the nss_static target. Exclude mpi_arm.c from sources un… #

Patch Set 8 : List build_config_mac.h in the sources block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -19 lines) Patch
M nss/README.chromium View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A nss/mozilla/security/nss/lib/freebl/build_config_mac.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c View 1 2 3 1 chunk +171 lines, -0 lines 0 comments Download
A nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm_mac.c View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M nss/nss.gyp View 1 2 3 4 5 6 7 6 chunks +25 lines, -16 lines 0 comments Download
M nss/scripts/nss-checkout.sh View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
wtc
droger: please review and test this patch for iOS device and Simulator builds. mark: please ...
8 years, 4 months ago (2012-07-27 23:31:58 UTC) #1
Mark Mentovai
Stuart, can you answer Wan-Teh’s question about targeting iOS devices only, and not the simulator?
8 years, 4 months ago (2012-07-28 19:27:25 UTC) #2
Ryan Sleevi
drive by comment. The changes to GCC_PREPROCESSOR_DEFINITIONS looks correct to me - For simulator builds, ...
8 years, 4 months ago (2012-07-30 06:47:55 UTC) #3
stuartmorgan
On 2012/07/27 23:31:58, wtc wrote: > https://chromiumcodereview.appspot.com/10828060/diff/1/nss/nss.gyp#newcode1089 > nss/nss.gyp:1089: 'GCC_PREPROCESSOR_DEFINITIONS[arch=armv7]': [ > > Is this ...
8 years, 4 months ago (2012-07-30 07:14:21 UTC) #4
wtc
Please review and test patch set 2. arch=arm* works. Thank you for the suggestion. https://chromiumcodereview.appspot.com/10828060/diff/5001/nss/nss.gyp ...
8 years, 4 months ago (2012-07-30 23:20:53 UTC) #5
Ryan Sleevi
https://chromiumcodereview.appspot.com/10828060/diff/5001/nss/nss.gyp File nss/nss.gyp (right): https://chromiumcodereview.appspot.com/10828060/diff/5001/nss/nss.gyp#newcode1085 nss/nss.gyp:1085: ], On 2012/07/30 23:20:53, wtc wrote: > > I ...
8 years, 4 months ago (2012-07-30 23:27:44 UTC) #6
Mark Mentovai
https://chromiumcodereview.appspot.com/10828060/diff/5001/nss/nss.gyp File nss/nss.gyp (right): https://chromiumcodereview.appspot.com/10828060/diff/5001/nss/nss.gyp#newcode1085 nss/nss.gyp:1085: ], As Ryan points out, the only option is ...
8 years, 4 months ago (2012-07-31 23:20:36 UTC) #7
wtc
rsleevi,mark: thank you for the suggestion. Please review patch set 3. justincohen: could you test ...
8 years, 4 months ago (2012-08-02 01:04:29 UTC) #8
wtc
https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/nss.gyp File nss/nss.gyp (right): https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/nss.gyp#newcode1070 nss/nss.gyp:1070: 'xcode_settings': { I just discovered that this entire xcode_settings ...
8 years, 4 months ago (2012-08-02 02:47:08 UTC) #9
stuartmorgan
On 2012/08/02 02:47:08, wtc wrote: > I just discovered that this entire xcode_settings section > ...
8 years, 4 months ago (2012-08-02 04:35:11 UTC) #10
Mark Mentovai
https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c File nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c (right): https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c#newcode43 nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c:43: /* 16-bit thumb doesn't work inlined assember version */ ...
8 years, 4 months ago (2012-08-02 14:50:34 UTC) #11
Nico
https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/nss.gyp File nss/nss.gyp (right): https://chromiumcodereview.appspot.com/10828060/diff/11001/nss/nss.gyp#newcode1070 nss/nss.gyp:1070: 'xcode_settings': { On 2012/08/02 14:50:34, Mark Mentovai wrote: > ...
8 years, 4 months ago (2012-08-02 15:07:15 UTC) #12
droger
I compiled and ran the patch on a device (iPhone 4S). I did not see ...
8 years, 4 months ago (2012-08-09 14:21:57 UTC) #13
droger
https://codereview.chromium.org/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c File nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c (right): https://codereview.chromium.org/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c#newcode92 nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c:92: "adc r4, #0\n" When we tried building this on ...
8 years, 1 month ago (2012-10-29 14:38:53 UTC) #14
Ryan Sleevi
wtc: Ping on this?
8 years ago (2012-11-26 19:15:39 UTC) #15
wtc
https://codereview.chromium.org/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c File nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c (right): https://codereview.chromium.org/10828060/diff/11001/nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c#newcode43 nss/mozilla/security/nss/lib/freebl/mpi/mpi_arm.c:43: /* 16-bit thumb doesn't work inlined assember version */ ...
8 years ago (2012-11-26 22:22:44 UTC) #16
Mark Mentovai
This is correct. ninja doesn’t support GCC_PREPROCESSOR_DEFINITIONS or the bracketed [arch=] syntax. I recently did ...
8 years ago (2012-11-26 22:31:50 UTC) #17
Ryan Sleevi
https://codereview.chromium.org/10828060/diff/11001/nss/nss.gyp File nss/nss.gyp (right): https://codereview.chromium.org/10828060/diff/11001/nss/nss.gyp#newcode1090 nss/nss.gyp:1090: 'GCC_PREPROCESSOR_DEFINITIONS[arch=arm*]': [ On 2012/11/26 22:22:44, wtc wrote: > > ...
8 years ago (2012-11-26 22:32:16 UTC) #18
wtc
Please review patch set 4. Sorry about the delay. I just got my Mac workstation ...
7 years, 10 months ago (2013-01-29 04:37:54 UTC) #19
Ryan Sleevi
https://codereview.chromium.org/10828060/diff/20001/nss/nss.gyp File nss/nss.gyp (right): https://codereview.chromium.org/10828060/diff/20001/nss/nss.gyp#newcode16 nss/nss.gyp:16: 'forced_include_file%': '<(DEPTH)/third_party/nss/mozilla/security/nss/lib/freebl/build_config_mac.h', You should not need to use <(DEPTH) ...
7 years, 10 months ago (2013-01-29 19:02:47 UTC) #20
wtc
Please review patch set 5. I tested the patch on: - Windows, with msvs - ...
7 years, 10 months ago (2013-01-30 02:44:02 UTC) #21
wtc
https://codereview.chromium.org/10828060/diff/26001/nss/mozilla/security/nss/lib/freebl/build_config_mac.h File nss/mozilla/security/nss/lib/freebl/build_config_mac.h (right): https://codereview.chromium.org/10828060/diff/26001/nss/mozilla/security/nss/lib/freebl/build_config_mac.h#newcode30 nss/mozilla/security/nss/lib/freebl/build_config_mac.h:30: #define SHA_NO_LONG_LONG 1 These four macro definitions come from ...
7 years, 10 months ago (2013-01-30 02:49:30 UTC) #22
Mark Mentovai
https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/mozilla/security/nss/lib/freebl/build_config_mac.h File nss/mozilla/security/nss/lib/freebl/build_config_mac.h (right): https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/mozilla/security/nss/lib/freebl/build_config_mac.h#newcode1 nss/mozilla/security/nss/lib/freebl/build_config_mac.h:1: /* This Source Code Form is subject to the ...
7 years, 10 months ago (2013-01-30 20:37:54 UTC) #23
wtc
Please review patch set 6. I made the changes that mark suggested. Please let me ...
7 years, 10 months ago (2013-01-30 23:11:09 UTC) #24
Mark Mentovai
We should figure out if this ninja working directory thing is in fact what’s causing ...
7 years, 10 months ago (2013-01-30 23:20:32 UTC) #25
Ryan Sleevi
https://codereview.chromium.org/10828060/diff/31001/nss/nss.gyp File nss/nss.gyp (right): https://codereview.chromium.org/10828060/diff/31001/nss/nss.gyp#newcode16 nss/nss.gyp:16: 'forced_include_file%': '<(DEPTH)/third_party/nss/mozilla/security/nss/lib/freebl/build_config_mac.h', You don't need to use the "%" ...
7 years, 10 months ago (2013-01-30 23:23:35 UTC) #26
wtc
mark,rsleevi: thanks for the comments. I will wait for your answers to my questions before ...
7 years, 10 months ago (2013-01-30 23:51:37 UTC) #27
wtc
https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/nss.gyp File nss/nss.gyp (right): https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/nss.gyp#newcode16 nss/nss.gyp:16: 'forced_include_file%': '<(DEPTH)/third_party/nss/mozilla/security/nss/lib/freebl/build_config_mac.h', On 2013/01/30 23:20:32, Mark Mentovai wrote: > ...
7 years, 10 months ago (2013-01-31 00:00:15 UTC) #28
Ryan Sleevi
On 2013/01/31 00:00:15, wtc wrote: > https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/nss.gyp > File nss/nss.gyp (right): > > https://chromiumcodereview.appspot.com/10828060/diff/26001/nss/nss.gyp#newcode16 > ...
7 years, 10 months ago (2013-01-31 00:12:48 UTC) #29
Mark Mentovai
The _file path is supposed to be normalized to be relative to the .gyp file, ...
7 years, 10 months ago (2013-01-31 04:24:15 UTC) #30
wtc
Please review patch set 7. 1. I made the two changes to nss.gyp that rsleevi ...
7 years, 10 months ago (2013-01-31 18:57:55 UTC) #31
Mark Mentovai
LGTM
7 years, 10 months ago (2013-01-31 19:23:31 UTC) #32
Mark Mentovai
wtc asked me by IM: > Hi. Should I list that forced include header in ...
7 years, 10 months ago (2013-01-31 19:23:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/10828060/24006
7 years, 10 months ago (2013-01-31 19:46:32 UTC) #34
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 19:46:47 UTC) #35
Message was sent while issue was closed.
Change committed as 179928

Powered by Google App Engine
This is Rietveld 408576698