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

Side by Side Diff: src/IceInstrumentation.h

Issue 2054943002: Implemented global redzones. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
« src/IceCompileServer.cpp ('K') | « src/IceGlobalInits.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 34
35 class LoweringContext; 35 class LoweringContext;
36 36
37 class Instrumentation { 37 class Instrumentation {
38 Instrumentation() = delete; 38 Instrumentation() = delete;
39 Instrumentation(const Instrumentation &) = delete; 39 Instrumentation(const Instrumentation &) = delete;
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() {}; 44 virtual void instrumentGlobals(VariableDeclarationList &Globals) {
Jim Stichnoth 2016/06/09 22:27:39 If you do this: virtual void instrumentGlobals(
tlively 2016/06/09 23:30:10 Done.
45 (void) Globals;
46 };
45 void instrumentFunc(Cfg *Func); 47 void instrumentFunc(Cfg *Func);
46 48
47 private: 49 private:
48 void instrumentInst(LoweringContext &Context); 50 void instrumentInst(LoweringContext &Context);
49 virtual void instrumentFuncStart(LoweringContext &Context) { 51 virtual void instrumentFuncStart(LoweringContext &Context) {
50 (void) Context; 52 (void) Context;
51 } 53 }
52 virtual void instrumentAlloca(LoweringContext &Context, 54 virtual void instrumentAlloca(LoweringContext &Context,
53 const class InstAlloca *Instr) { 55 const class InstAlloca *Instr) {
54 (void) Context; 56 (void) Context;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 (void) Func; 140 (void) Func;
139 } 141 }
140 142
141 protected: 143 protected:
142 GlobalContext *Ctx; 144 GlobalContext *Ctx;
143 }; 145 };
144 146
145 } // end of namespace Ice 147 } // end of namespace Ice
146 148
147 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H 149 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H
OLDNEW
« src/IceCompileServer.cpp ('K') | « src/IceGlobalInits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698