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

Unified Diff: src/IceInstrumentation.h

Issue 2054943002: Implemented global redzones. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Finished reformatting Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceGlobalInits.h ('k') | src/IceInstrumentation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstrumentation.h
diff --git a/src/IceInstrumentation.h b/src/IceInstrumentation.h
index abd5d083e3e835b50e958cc67f1388c79e3a9ee7..a7e099bae9e1d4195de23b481e5f487f297966e2 100644
--- a/src/IceInstrumentation.h
+++ b/src/IceInstrumentation.h
@@ -41,102 +41,35 @@ class Instrumentation {
public:
Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {}
- virtual void instrumentGlobals() {};
+ virtual void instrumentGlobals(VariableDeclarationList &) {}
void instrumentFunc(Cfg *Func);
private:
void instrumentInst(LoweringContext &Context);
- virtual void instrumentFuncStart(LoweringContext &Context) {
- (void) Context;
- }
- virtual void instrumentAlloca(LoweringContext &Context,
- const class InstAlloca *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentArithmetic(LoweringContext &Context,
- const class InstArithmetic *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentBr(LoweringContext &Context,
- const class InstBr *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentCall(LoweringContext &Context,
- const class InstCall *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentCast(LoweringContext &Context,
- const class InstCast *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentExtractElement(LoweringContext &Context,
- const class InstExtractElement *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentFcmp(LoweringContext &Context,
- const class InstFcmp *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentIcmp(LoweringContext &Context,
- const class InstIcmp *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentInsertElement(LoweringContext &Context,
- const class InstInsertElement *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentIntrinsicCall(LoweringContext &Context,
- const class InstIntrinsicCall *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentLoad(LoweringContext &Context,
- const class InstLoad *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentPhi(LoweringContext &Context,
- const class InstPhi *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentRet(LoweringContext &Context,
- const class InstRet *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentSelect(LoweringContext &Context,
- const class InstSelect *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentStore(LoweringContext &Context,
- const class InstStore *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentSwitch(LoweringContext &Context,
- const class InstSwitch *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentUnreachable(LoweringContext &Context,
- const class InstUnreachable *Instr) {
- (void) Context;
- (void) Instr;
- }
- virtual void instrumentLocalVars(Cfg *Func) {
- (void) Func;
- }
+ virtual void instrumentFuncStart(LoweringContext &) {}
+ virtual void instrumentAlloca(LoweringContext &, const class InstAlloca *) {}
+ virtual void instrumentArithmetic(LoweringContext &,
+ const class InstArithmetic *) {}
+ virtual void instrumentBr(LoweringContext &, const class InstBr *) {}
+ virtual void instrumentCall(LoweringContext &, const class InstCall *) {}
+ virtual void instrumentCast(LoweringContext &, const class InstCast *) {}
+ virtual void instrumentExtractElement(LoweringContext &,
+ const class InstExtractElement *) {}
+ virtual void instrumentFcmp(LoweringContext &, const class InstFcmp *) {}
+ virtual void instrumentIcmp(LoweringContext &, const class InstIcmp *) {}
+ virtual void instrumentInsertElement(LoweringContext &,
+ const class InstInsertElement *) {}
+ virtual void instrumentIntrinsicCall(LoweringContext &,
+ const class InstIntrinsicCall *) {}
+ virtual void instrumentLoad(LoweringContext &, const class InstLoad *) {}
+ virtual void instrumentPhi(LoweringContext &, const class InstPhi *) {}
+ virtual void instrumentRet(LoweringContext &, const class InstRet *) {}
+ virtual void instrumentSelect(LoweringContext &, const class InstSelect *) {}
+ virtual void instrumentStore(LoweringContext &, const class InstStore *) {}
+ virtual void instrumentSwitch(LoweringContext &, const class InstSwitch *) {}
+ virtual void instrumentUnreachable(LoweringContext &,
+ const class InstUnreachable *) {}
+ virtual void instrumentLocalVars(Cfg *) {}
protected:
GlobalContext *Ctx;
« no previous file with comments | « src/IceGlobalInits.h ('k') | src/IceInstrumentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698