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

Side by Side Diff: src/IceInstrumentation.h

Issue 2086593002: Inserted local redzones. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes 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 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 29 matching lines...) Expand all
40 Instrumentation &operator=(const Instrumentation &) = delete; 40 Instrumentation &operator=(const Instrumentation &) = delete;
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 private: 47 private:
48 void instrumentInst(LoweringContext &Context); 48 void instrumentInst(LoweringContext &Context);
49 virtual void instrumentFuncStart(LoweringContext &) {} 49 virtual void instrumentFuncStart(LoweringContext &) {}
50 virtual void instrumentAlloca(LoweringContext &, const class InstAlloca *) {} 50 virtual void instrumentAlloca(LoweringContext &, class InstAlloca *) {}
51 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) { 51 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) {
52 } 52 }
53 virtual void instrumentBr(LoweringContext &, class InstBr *) {} 53 virtual void instrumentBr(LoweringContext &, class InstBr *) {}
54 virtual void instrumentCall(LoweringContext &, class InstCall *) {} 54 virtual void instrumentCall(LoweringContext &, class InstCall *) {}
55 virtual void instrumentCast(LoweringContext &, class InstCast *) {} 55 virtual void instrumentCast(LoweringContext &, class InstCast *) {}
56 virtual void instrumentExtractElement(LoweringContext &, 56 virtual void instrumentExtractElement(LoweringContext &,
57 class InstExtractElement *) {} 57 class InstExtractElement *) {}
58 virtual void instrumentFcmp(LoweringContext &, class InstFcmp *) {} 58 virtual void instrumentFcmp(LoweringContext &, class InstFcmp *) {}
59 virtual void instrumentIcmp(LoweringContext &, class InstIcmp *) {} 59 virtual void instrumentIcmp(LoweringContext &, class InstIcmp *) {}
60 virtual void instrumentInsertElement(LoweringContext &, 60 virtual void instrumentInsertElement(LoweringContext &,
(...skipping 11 matching lines...) Expand all
72 virtual void instrumentStart(Cfg *) {} 72 virtual void instrumentStart(Cfg *) {}
73 virtual void instrumentLocalVars(Cfg *) {} 73 virtual void instrumentLocalVars(Cfg *) {}
74 74
75 protected: 75 protected:
76 GlobalContext *Ctx; 76 GlobalContext *Ctx;
77 }; 77 };
78 78
79 } // end of namespace Ice 79 } // end of namespace Ice
80 80
81 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H 81 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698