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

Side by Side Diff: src/IceASanInstrumentation.h

Issue 2079723002: Instrumented malloc and free with dummy functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleaned up instrumentCall() 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/IceASanInstrumentation.h - AddressSanitizer --*- C++ -*-===// 1 //===- subzero/src/IceASanInstrumentation.h - AddressSanitizer --*- 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 22 matching lines...) Expand all
33 public: 33 public:
34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {} 34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {}
35 void instrumentGlobals(VariableDeclarationList &Globals) override; 35 void instrumentGlobals(VariableDeclarationList &Globals) override;
36 36
37 private: 37 private:
38 std::string nextRzName(); 38 std::string nextRzName();
39 VariableDeclaration *createRz(VariableDeclarationList *List, 39 VariableDeclaration *createRz(VariableDeclarationList *List,
40 VariableDeclaration *RzArray, 40 VariableDeclaration *RzArray,
41 SizeT &RzArraySize, 41 SizeT &RzArraySize,
42 VariableDeclaration *Global); 42 VariableDeclaration *Global);
43 void instrumentLoad(LoweringContext &Context, const InstLoad *Inst) override; 43 void instrumentCall(LoweringContext &Context, InstCall *Instr) override;
44 void instrumentStore(LoweringContext &Context, 44 void instrumentLoad(LoweringContext &Context, InstLoad *Instr) override;
45 const InstStore *Inst) override; 45 void instrumentStore(LoweringContext &Context, InstStore *Instr) override;
46 void instrumentAccess(LoweringContext &Context, Operand *Op, SizeT Size); 46 void instrumentAccess(LoweringContext &Context, Operand *Op, SizeT Size);
47 void instrumentStart(Cfg *Func) override; 47 void instrumentStart(Cfg *Func) override;
48 bool DidInsertRedZones = false; 48 bool DidInsertRedZones = false;
49 uint32_t RzNum = 0; 49 uint32_t RzNum = 0;
50 }; 50 };
51 } // end of namespace Ice 51 } // end of namespace Ice
52 52
53 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H 53 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698