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

Side by Side Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 2095763002: Instrumented local variables and implemented runtime. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Made sort safe and fixed test to run 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
« no previous file with comments | « src/IceInstrumentation.cpp ('k') | tests_lit/asan_tests/alignment.ll » ('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/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- 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 5313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5324 NewOffset += MoreOffset; 5324 NewOffset += MoreOffset;
5325 } 5325 }
5326 if (Const1) { 5326 if (Const1) {
5327 const int32_t MoreOffset = 5327 const int32_t MoreOffset =
5328 IsAdd ? Const1->getValue() : -Const1->getValue(); 5328 IsAdd ? Const1->getValue() : -Const1->getValue();
5329 if (Utils::WouldOverflowAdd(*Offset + NewOffset, MoreOffset)) 5329 if (Utils::WouldOverflowAdd(*Offset + NewOffset, MoreOffset))
5330 return nullptr; 5330 return nullptr;
5331 NewOffset += MoreOffset; 5331 NewOffset += MoreOffset;
5332 } 5332 }
5333 if (Utils::WouldOverflowAdd(*Offset, NewOffset << Shift)) 5333 if (Utils::WouldOverflowAdd(*Offset, NewOffset << Shift))
5334 return nullptr; 5334 return nullptr;
5335 *IndexOrBase = NewIndexOrBase; 5335 *IndexOrBase = NewIndexOrBase;
5336 *Offset += (NewOffset << Shift); 5336 *Offset += (NewOffset << Shift);
5337 // Shift is always zero if this is called with the base 5337 // Shift is always zero if this is called with the base
5338 *Relocatable = NewRelocatable; 5338 *Relocatable = NewRelocatable;
5339 return Definition; 5339 return Definition;
5340 } 5340 }
5341 return nullptr; 5341 return nullptr;
5342 } 5342 }
5343 5343
5344 template <typename TypeTraits> 5344 template <typename TypeTraits>
(...skipping 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after
7974 emitGlobal(*Var, SectionSuffix); 7974 emitGlobal(*Var, SectionSuffix);
7975 } 7975 }
7976 } 7976 }
7977 } break; 7977 } break;
7978 } 7978 }
7979 } 7979 }
7980 } // end of namespace X86NAMESPACE 7980 } // end of namespace X86NAMESPACE
7981 } // end of namespace Ice 7981 } // end of namespace Ice
7982 7982
7983 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H 7983 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H
OLDNEW
« no previous file with comments | « src/IceInstrumentation.cpp ('k') | tests_lit/asan_tests/alignment.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698