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

Issue 1696123003: Subzero: Set the correct target arch in the browser hookup. (Closed)

Created:
4 years, 10 months ago by Jim Stichnoth
Modified:
4 years, 10 months ago
Reviewers:
Eric Holk, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Set the correct target arch in the browser hookup. The original implementation hard-coded the target to x86-32. The new implementation mirrors pnacl-llc by probing the architecture it is running on. Continues the plumbing work in https://codereview.chromium.org/1698523003/ , toward the goal of enabling sandboxed translator tests for x86-64, particularly on the spec bots. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4077 R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=816fd68fef0608236fc3fe0c2ce313c14487e3a6

Patch Set 1 #

Patch Set 2 : Format #

Patch Set 3 : Better bad-target error messages #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -6 lines) Patch
M src/IceBrowserCompileServer.cpp View 1 3 chunks +37 lines, -2 lines 2 comments Download
M src/IceTargetLowering.cpp View 1 2 5 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jim Stichnoth
4 years, 10 months ago (2016-02-16 06:45:47 UTC) #4
John
lgtm https://codereview.chromium.org/1696123003/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1696123003/diff/40001/src/IceBrowserCompileServer.cpp#newcode129 src/IceBrowserCompileServer.cpp:129: switch (__builtin_nacl_target_arch()) { apparently __builtin_nacl_target_arch is deprecated, and ...
4 years, 10 months ago (2016-02-16 12:03:10 UTC) #5
Jim Stichnoth
Committed patchset #3 (id:40001) manually as 816fd68fef0608236fc3fe0c2ce313c14487e3a6 (presubmit successful).
4 years, 10 months ago (2016-02-16 13:47:38 UTC) #7
Jim Stichnoth
4 years, 10 months ago (2016-02-16 13:52:12 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1696123003/diff/40001/src/IceBrowserCompileSe...
File src/IceBrowserCompileServer.cpp (right):

https://codereview.chromium.org/1696123003/diff/40001/src/IceBrowserCompileSe...
src/IceBrowserCompileServer.cpp:129: switch (__builtin_nacl_target_arch()) {
On 2016/02/16 12:03:10, John wrote:
> apparently __builtin_nacl_target_arch is deprecated, and __nacl_get_arch()
> should be used instead.

Yeah, I noticed that, but I have no idea why the trivial change wasn't already
made to pnacl-llc, so I kept it the same here to keep the similarity intact.

Powered by Google App Engine
This is Rietveld 408576698