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

Side by Side Diff: src/IceInstrumentation.h

Issue 2128383002: Blacklisted instrumenting _Balloc. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceInstrumentation.h - ICE instrumentation ---*- C++ -*-===// 1 //===- subzero/src/IceInstrumentation.h - ICE instrumentation ---*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 30 matching lines...) Expand all
41 41
42 public: 42 public:
43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {} 43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {}
44 virtual void instrumentGlobals(VariableDeclarationList &) {} 44 virtual void instrumentGlobals(VariableDeclarationList &) {}
45 void instrumentFunc(Cfg *Func); 45 void instrumentFunc(Cfg *Func);
46 46
47 protected: 47 protected:
48 virtual void instrumentInst(LoweringContext &Context); 48 virtual void instrumentInst(LoweringContext &Context);
49 49
50 private: 50 private:
51 virtual bool isInstrumentable(Cfg *) { return true; }
51 virtual void instrumentFuncStart(LoweringContext &) {} 52 virtual void instrumentFuncStart(LoweringContext &) {}
52 virtual void instrumentAlloca(LoweringContext &, class InstAlloca *) {} 53 virtual void instrumentAlloca(LoweringContext &, class InstAlloca *) {}
53 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) { 54 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) {
54 } 55 }
55 virtual void instrumentBr(LoweringContext &, class InstBr *) {} 56 virtual void instrumentBr(LoweringContext &, class InstBr *) {}
56 virtual void instrumentCall(LoweringContext &, class InstCall *) {} 57 virtual void instrumentCall(LoweringContext &, class InstCall *) {}
57 virtual void instrumentCast(LoweringContext &, class InstCast *) {} 58 virtual void instrumentCast(LoweringContext &, class InstCast *) {}
58 virtual void instrumentExtractElement(LoweringContext &, 59 virtual void instrumentExtractElement(LoweringContext &,
59 class InstExtractElement *) {} 60 class InstExtractElement *) {}
60 virtual void instrumentFcmp(LoweringContext &, class InstFcmp *) {} 61 virtual void instrumentFcmp(LoweringContext &, class InstFcmp *) {}
(...skipping 14 matching lines...) Expand all
75 virtual void instrumentLocalVars(Cfg *) {} 76 virtual void instrumentLocalVars(Cfg *) {}
76 virtual void finishFunc(Cfg *) {} 77 virtual void finishFunc(Cfg *) {}
77 78
78 protected: 79 protected:
79 GlobalContext *Ctx; 80 GlobalContext *Ctx;
80 }; 81 };
81 82
82 } // end of namespace Ice 83 } // end of namespace Ice
83 84
84 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H 85 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698