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

Issue 703533002: CodeGen: refactor API [1/3] (Closed)

Created:
6 years, 1 month ago by mdempsky
Modified:
6 years, 1 month ago
CC:
chromium-reviews, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

CodeGen: refactor API [1/3] In preparation for a rewrite of CodeGen, refactor the API slightly. In particular, instead of making the API in terms of "Instruction*", introduce a typedef "CodeGen::Node" so we can change the underlying type later. Also, remove the MakeInstruction() overload in favor of a single entry point with a variable length parameter list. BUG=414363 Committed: https://crrev.com/d39e72c75aaa3c75b99907350d9eb69f82b7ce7b Cr-Commit-Position: refs/heads/master@{#304509}

Patch Set 1 #

Total comments: 5

Patch Set 2 : s/Addr/Node/ and tweak comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -172 lines) Patch
M sandbox/linux/bpf_dsl/policy_compiler.h View 1 3 chunks +13 lines, -15 lines 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.cc View 1 11 chunks +20 lines, -21 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.h View 1 2 chunks +32 lines, -24 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.cc View 1 2 chunks +24 lines, -38 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen_unittest.cc View 1 17 chunks +63 lines, -74 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
mdempsky
I've completely rewritten CodeGen to be much simpler. Here's a quick teaser: $ git diff ...
6 years, 1 month ago (2014-11-04 00:55:54 UTC) #2
mdempsky
https://codereview.chromium.org/703533002/diff/1/sandbox/linux/seccomp-bpf/codegen.h File sandbox/linux/seccomp-bpf/codegen.h (right): https://codereview.chromium.org/703533002/diff/1/sandbox/linux/seccomp-bpf/codegen.h#newcode65 sandbox/linux/seccomp-bpf/codegen.h:65: using Addr = Instruction*; (As a side note: I'm ...
6 years, 1 month ago (2014-11-04 01:31:15 UTC) #3
rickyz (no longer on Chrome)
lgtm
6 years, 1 month ago (2014-11-05 23:36:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703533002/1
6 years, 1 month ago (2014-11-06 03:27:25 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 1 month ago (2014-11-06 03:27:27 UTC) #8
jln (very slow on Chromium)
lgtm, but consider getting rid of the default arguments by emulating the behavior with an ...
6 years, 1 month ago (2014-11-11 08:40:49 UTC) #9
mdempsky
On 2014/11/11 08:40:49, jln (Tokyo til 14th) wrote: > You also may want to grep ...
6 years, 1 month ago (2014-11-11 09:50:12 UTC) #10
mdempsky
https://codereview.chromium.org/703533002/diff/1/sandbox/linux/seccomp-bpf/codegen.cc File sandbox/linux/seccomp-bpf/codegen.cc (right): https://codereview.chromium.org/703533002/diff/1/sandbox/linux/seccomp-bpf/codegen.cc#newcode42 sandbox/linux/seccomp-bpf/codegen.cc:42: Instruction* insn; On 2014/11/11 08:40:48, jln (Tokyo til 14th) ...
6 years, 1 month ago (2014-11-17 22:11:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703533002/20001
6 years, 1 month ago (2014-11-17 22:12:55 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-17 23:04:51 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 23:05:26 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d39e72c75aaa3c75b99907350d9eb69f82b7ce7b
Cr-Commit-Position: refs/heads/master@{#304509}

Powered by Google App Engine
This is Rietveld 408576698