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

Side by Side Diff: src/IceOperand.cpp

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 11 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/IceOperand.h ('k') | src/IceTargetLowering.h » ('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/IceOperand.cpp - High-level operand implementation -----===// 1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===//
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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 481
482 template <> void ConstantDouble::emit(TargetLowering *Target) const { 482 template <> void ConstantDouble::emit(TargetLowering *Target) const {
483 Target->emit(this); 483 Target->emit(this);
484 } 484 }
485 485
486 void ConstantRelocatable::emit(TargetLowering *Target) const { 486 void ConstantRelocatable::emit(TargetLowering *Target) const {
487 Target->emit(this); 487 Target->emit(this);
488 } 488 }
489 489
490 void ConstantRelocatable::emitWithoutPrefix( 490 void ConstantRelocatable::emitWithoutPrefix(const TargetLowering *Target,
491 const TargetLowering *Target) const { 491 const char *Suffix) const {
492 Target->emitWithoutPrefix(this); 492 Target->emitWithoutPrefix(this, Suffix);
493 } 493 }
494 494
495 void ConstantRelocatable::dump(const Cfg *Func, Ostream &Str) const { 495 void ConstantRelocatable::dump(const Cfg *Func, Ostream &Str) const {
496 if (!BuildDefs::dump()) 496 if (!BuildDefs::dump())
497 return; 497 return;
498 Str << "@"; 498 Str << "@";
499 if (Func && !SuppressMangling) { 499 if (Func && !SuppressMangling) {
500 Str << Func->getContext()->mangleName(Name); 500 Str << Func->getContext()->mangleName(Name);
501 } else { 501 } else {
502 Str << Name; 502 Str << Name;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 if (getType() != IceType_i32 && getType() != IceType_i16 && 547 if (getType() != IceType_i32 && getType() != IceType_i16 &&
548 getType() != IceType_i8) 548 getType() != IceType_i8)
549 return false; 549 return false;
550 // The Following checks if the signed representation of Value is between 550 // The Following checks if the signed representation of Value is between
551 // -Threshold/2 and +Threshold/2 551 // -Threshold/2 and +Threshold/2
552 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; 552 bool largerThanThreshold = Threshold / 2 + Value >= Threshold;
553 return largerThanThreshold; 553 return largerThanThreshold;
554 } 554 }
555 555
556 } // end of namespace Ice 556 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698