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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1661403002: Subzero. X86. Fixes bundle lock/unlock. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 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 | 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/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX86Base.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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 public: 462 public:
463 std::unique_ptr<AutoBundle> Bundler; 463 std::unique_ptr<AutoBundle> Bundler;
464 X86OperandMem **const MemOperand; 464 X86OperandMem **const MemOperand;
465 465
466 template <typename... T> 466 template <typename... T>
467 AutoMemorySandboxer(typename Traits::TargetLowering *Target, T... Args) 467 AutoMemorySandboxer(typename Traits::TargetLowering *Target, T... Args)
468 : Target(Target), MemOperand(Target->SandboxingType == ST_None 468 : Target(Target), MemOperand(Target->SandboxingType == ST_None
469 ? nullptr 469 ? nullptr
470 : findMemoryReference(Args...)) { 470 : findMemoryReference(Args...)) {
471 if (MemOperand != nullptr) { 471 if (MemOperand != nullptr) {
472 Bundler = makeUnique<AutoBundle>(Target, BundleLockOpt); 472 if (Traits::Is64Bit) {
473 Bundler = makeUnique<AutoBundle>(Target, BundleLockOpt);
474 }
473 *MemOperand = Target->_sandbox_mem_reference(*MemOperand); 475 *MemOperand = Target->_sandbox_mem_reference(*MemOperand);
474 } 476 }
475 } 477 }
476 478
477 ~AutoMemorySandboxer() {} 479 ~AutoMemorySandboxer() {}
478 }; 480 };
479 481
480 /// The following are helpers that insert lowered x86 instructions with 482 /// The following are helpers that insert lowered x86 instructions with
481 /// minimal syntactic overhead, so that the lowering code can look as close to 483 /// minimal syntactic overhead, so that the lowering code can look as close to
482 /// assembly as practical. 484 /// assembly as practical.
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 1121
1120 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} 1122 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {}
1121 }; 1123 };
1122 1124
1123 } // end of namespace X86NAMESPACE 1125 } // end of namespace X86NAMESPACE
1124 } // end of namespace Ice 1126 } // end of namespace Ice
1125 1127
1126 #include "IceTargetLoweringX86BaseImpl.h" 1128 #include "IceTargetLoweringX86BaseImpl.h"
1127 1129
1128 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 1130 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698