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

Side by Side Diff: src/IceTargetLoweringX8664.h

Issue 1775253003: Cache common constants before lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make RuntimeHelper an enum class. Created 4 years, 9 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/IceTargetLoweringX8664.h - lowering for x86-64 -*- C++ -*-=// 1 //===- subzero/src/IceTargetLoweringX8664.h - lowering for x86-64 -*- 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 private: 67 private:
68 ENABLE_MAKE_UNIQUE; 68 ENABLE_MAKE_UNIQUE;
69 friend class X8664::TargetX86Base<X8664::Traits>; 69 friend class X8664::TargetX86Base<X8664::Traits>;
70 70
71 explicit TargetX8664(Cfg *Func) : TargetX86Base(Func) {} 71 explicit TargetX8664(Cfg *Func) : TargetX86Base(Func) {}
72 72
73 void _push_rbp(); 73 void _push_rbp();
74 74
75 Operand *createNaClReadTPSrcOperand() { 75 Operand *createNaClReadTPSrcOperand() {
76 Variable *TDB = makeReg(IceType_i32); 76 Variable *TDB = makeReg(IceType_i32);
77 InstCall *Call = makeHelperCall(H_call_read_tp, TDB, 0); 77 InstCall *Call = makeHelperCall(RuntimeHelper::H_call_read_tp, TDB, 0);
78 lowerCall(Call); 78 lowerCall(Call);
79 return TDB; 79 return TDB;
80 } 80 }
81 }; 81 };
82 82
83 } // end of namespace X8664 83 } // end of namespace X8664
84 } // end of namespace Ice 84 } // end of namespace Ice
85 85
86 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H 86 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698