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

Side by Side Diff: src/arm/lithium-codegen-arm.h

Issue 23156006: [v8-dev] ARM: Improve Lithium register constraints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 LinkRegisterStatus GetLinkRegisterState() const { 101 LinkRegisterStatus GetLinkRegisterState() const {
102 return frame_is_built_ ? kLRHasBeenSaved : kLRHasNotBeenSaved; 102 return frame_is_built_ ? kLRHasBeenSaved : kLRHasNotBeenSaved;
103 } 103 }
104 104
105 // Support for converting LOperands to assembler types. 105 // Support for converting LOperands to assembler types.
106 // LOperand must be a register. 106 // LOperand must be a register.
107 Register ToRegister(LOperand* op) const; 107 Register ToRegister(LOperand* op) const;
108 108
109 // LOperand is loaded into scratch, unless already a register.
110 Register EmitLoadRegister(LOperand* op, Register scratch);
111
112 // LOperand must be a double register. 109 // LOperand must be a double register.
113 DwVfpRegister ToDoubleRegister(LOperand* op) const; 110 DwVfpRegister ToDoubleRegister(LOperand* op) const;
114 111
115 // LOperand is loaded into dbl_scratch, unless already a double register.
116 DwVfpRegister EmitLoadDoubleRegister(LOperand* op,
117 SwVfpRegister flt_scratch,
118 DwVfpRegister dbl_scratch);
119 int32_t ToRepresentation(LConstantOperand* op, const Representation& r) const; 112 int32_t ToRepresentation(LConstantOperand* op, const Representation& r) const;
120 int32_t ToInteger32(LConstantOperand* op) const; 113 int32_t ToInteger32(LConstantOperand* op) const;
121 Smi* ToSmi(LConstantOperand* op) const; 114 Smi* ToSmi(LConstantOperand* op) const;
122 double ToDouble(LConstantOperand* op) const; 115 double ToDouble(LConstantOperand* op) const;
123 Operand ToOperand(LOperand* op); 116 Operand ToOperand(LOperand* op);
124 MemOperand ToMemOperand(LOperand* op) const; 117 MemOperand ToMemOperand(LOperand* op) const;
125 // Returns a MemOperand pointing to the high word of a DoubleStackSlot. 118 // Returns a MemOperand pointing to the high word of a DoubleStackSlot.
126 MemOperand ToHighMemOperand(LOperand* op) const; 119 MemOperand ToHighMemOperand(LOperand* op) const;
127 120
128 bool IsInteger32(LConstantOperand* op) const; 121 bool IsInteger32(LConstantOperand* op) const;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 LCodeGen* codegen_; 487 LCodeGen* codegen_;
495 Label entry_; 488 Label entry_;
496 Label exit_; 489 Label exit_;
497 Label* external_exit_; 490 Label* external_exit_;
498 int instruction_index_; 491 int instruction_index_;
499 }; 492 };
500 493
501 } } // namespace v8::internal 494 } } // namespace v8::internal
502 495
503 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 496 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698