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

Side by Side Diff: src/IceClFlags.h

Issue 1338633005: Subzero: Add a flag to mock up bounds checking on unsafe references. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix comment Created 5 years, 3 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
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | 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/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 bool getGenerateUnitTestMessages() const { 81 bool getGenerateUnitTestMessages() const {
82 // Note: If dump routines have been turned off, the error messages 82 // Note: If dump routines have been turned off, the error messages
83 // will not be readable. Hence, turn off. 83 // will not be readable. Hence, turn off.
84 return !BuildDefs::dump() || GenerateUnitTestMessages; 84 return !BuildDefs::dump() || GenerateUnitTestMessages;
85 } 85 }
86 void setGenerateUnitTestMessages(bool NewValue) { 86 void setGenerateUnitTestMessages(bool NewValue) {
87 GenerateUnitTestMessages = NewValue; 87 GenerateUnitTestMessages = NewValue;
88 } 88 }
89 89
90 bool getMockBoundsCheck() const { return MockBoundsCheck; }
91 void setMockBoundsCheck(bool NewValue) { MockBoundsCheck = NewValue; }
92
90 bool getPhiEdgeSplit() const { return PhiEdgeSplit; } 93 bool getPhiEdgeSplit() const { return PhiEdgeSplit; }
91 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; } 94 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; }
92 95
93 bool shouldDoNopInsertion() const { return RandomNopInsertion; } 96 bool shouldDoNopInsertion() const { return RandomNopInsertion; }
94 void setShouldDoNopInsertion(bool NewValue) { RandomNopInsertion = NewValue; } 97 void setShouldDoNopInsertion(bool NewValue) { RandomNopInsertion = NewValue; }
95 98
96 bool shouldRandomizeRegAlloc() const { return RandomRegAlloc; } 99 bool shouldRandomizeRegAlloc() const { return RandomRegAlloc; }
97 void setShouldRandomizeRegAlloc(bool NewValue) { RandomRegAlloc = NewValue; } 100 void setShouldRandomizeRegAlloc(bool NewValue) { RandomRegAlloc = NewValue; }
98 101
99 bool getSkipUnimplemented() const { return SkipUnimplemented; } 102 bool getSkipUnimplemented() const { return SkipUnimplemented; }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bool DataSections; 243 bool DataSections;
241 bool DecorateAsm; 244 bool DecorateAsm;
242 bool DisableInternal; 245 bool DisableInternal;
243 bool DisableIRGeneration; 246 bool DisableIRGeneration;
244 bool DisableTranslation; 247 bool DisableTranslation;
245 bool DumpStats; 248 bool DumpStats;
246 bool EnableBlockProfile; 249 bool EnableBlockProfile;
247 bool ForceMemIntrinOpt; 250 bool ForceMemIntrinOpt;
248 bool FunctionSections; 251 bool FunctionSections;
249 bool GenerateUnitTestMessages; 252 bool GenerateUnitTestMessages;
253 bool MockBoundsCheck;
250 bool PhiEdgeSplit; 254 bool PhiEdgeSplit;
251 bool RandomNopInsertion; 255 bool RandomNopInsertion;
252 bool RandomRegAlloc; 256 bool RandomRegAlloc;
253 bool ReorderBasicBlocks; 257 bool ReorderBasicBlocks;
254 bool ReorderFunctions; 258 bool ReorderFunctions;
255 bool ReorderGlobalVariables; 259 bool ReorderGlobalVariables;
256 bool ReorderPooledConstants; 260 bool ReorderPooledConstants;
257 bool SkipUnimplemented; 261 bool SkipUnimplemented;
258 bool SubzeroTimingEnabled; 262 bool SubzeroTimingEnabled;
259 bool TimeEachFunction; 263 bool TimeEachFunction;
(...skipping 18 matching lines...) Expand all
278 IceString TranslateOnly; 282 IceString TranslateOnly;
279 IceString VerboseFocusOn; 283 IceString VerboseFocusOn;
280 284
281 size_t NumTranslationThreads; // 0 means completely sequential 285 size_t NumTranslationThreads; // 0 means completely sequential
282 uint64_t RandomSeed; 286 uint64_t RandomSeed;
283 }; 287 };
284 288
285 } // end of namespace Ice 289 } // end of namespace Ice
286 290
287 #endif // SUBZERO_SRC_ICECLFLAGS_H 291 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698