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

Issue 1309963002: sandbox/linux/bpf_dsl: remove ErrorCode intermediary representation (Closed)

Created:
5 years, 4 months ago by mdempsky
Modified:
5 years, 3 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@rm-verifier
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sandbox/linux/bpf_dsl: remove ErrorCode intermediary representation This changes PolicyCompiler to skip the pass that converts ResultExprs into ErrorCodes, and instead it directly emits instructions using CodeGen. Reduces the size of sandbox_linux_unittests in release builds on amd64 by about 30kB. BUG=414363 Committed: https://crrev.com/1f9ec0e417465d285e5033417a8b9456f3140a68 Cr-Commit-Position: refs/heads/master@{#347470}

Patch Set 1 #

Patch Set 2 : cleanup comments #

Patch Set 3 : Sync #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -599 lines) Patch
M sandbox/linux/BUILD.gn View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl.cc View 12 chunks +44 lines, -46 lines 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl_impl.h View 3 chunks +9 lines, -8 lines 0 comments Download
M sandbox/linux/bpf_dsl/errorcode.h View 2 chunks +4 lines, -172 lines 0 comments Download
D sandbox/linux/bpf_dsl/errorcode.cc View 1 chunk +0 lines, -120 lines 0 comments Download
D sandbox/linux/bpf_dsl/errorcode_unittest.cc View 1 chunk +0 lines, -120 lines 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.h View 1 2 4 chunks +35 lines, -51 lines 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.cc View 9 chunks +49 lines, -77 lines 2 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/sandbox_linux_nacl_nonsfi.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/sandbox_linux_test_sources.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
mdempsky
rickyz: Patch #4
5 years, 4 months ago (2015-08-22 01:36:34 UTC) #2
mdempsky
rickyz: FYI, this is the big bpf_dsl cleanup that I've been really looking forward to ...
5 years, 3 months ago (2015-09-01 02:00:19 UTC) #3
rickyz (no longer on Chrome)
lgtm Apologies for the super long delay. https://codereview.chromium.org/1309963002/diff/40001/sandbox/linux/bpf_dsl/policy_compiler.cc File sandbox/linux/bpf_dsl/policy_compiler.cc (right): https://codereview.chromium.org/1309963002/diff/40001/sandbox/linux/bpf_dsl/policy_compiler.cc#newcode292 sandbox/linux/bpf_dsl/policy_compiler.cc:292: if (sizeof(void*) ...
5 years, 3 months ago (2015-09-03 23:34:12 UTC) #4
mdempsky
Thanks for the review! https://codereview.chromium.org/1309963002/diff/40001/sandbox/linux/bpf_dsl/policy_compiler.cc File sandbox/linux/bpf_dsl/policy_compiler.cc (right): https://codereview.chromium.org/1309963002/diff/40001/sandbox/linux/bpf_dsl/policy_compiler.cc#newcode292 sandbox/linux/bpf_dsl/policy_compiler.cc:292: if (sizeof(void*) == 4) { ...
5 years, 3 months ago (2015-09-04 18:32:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309963002/40001
5 years, 3 months ago (2015-09-04 18:33:31 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-04 19:33:01 UTC) #8
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 19:34:22 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1f9ec0e417465d285e5033417a8b9456f3140a68
Cr-Commit-Position: refs/heads/master@{#347470}

Powered by Google App Engine
This is Rietveld 408576698