OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const char* comment() const { return ""; } | 205 const char* comment() const { return ""; } |
206 #endif | 206 #endif |
207 | 207 |
208 inline void Jump(); | 208 inline void Jump(); |
209 inline void Branch(Condition cc); | 209 inline void Branch(Condition cc); |
210 void BindExit() { masm_->bind(&exit_label_); } | 210 void BindExit() { masm_->bind(&exit_label_); } |
211 | 211 |
212 void SaveRegisters(); | 212 void SaveRegisters(); |
213 void RestoreRegisters(); | 213 void RestoreRegisters(); |
214 | 214 |
| 215 virtual void BeforeGenerate() { } |
| 216 virtual void AfterGenerate() { } |
| 217 |
215 protected: | 218 protected: |
216 MacroAssembler* masm_; | 219 MacroAssembler* masm_; |
217 | 220 |
218 private: | 221 private: |
219 // Constants indicating special actions. They should not be multiples | 222 // Constants indicating special actions. They should not be multiples |
220 // of kPointerSize so they will not collide with valid offsets from | 223 // of kPointerSize so they will not collide with valid offsets from |
221 // the frame pointer. | 224 // the frame pointer. |
222 static const int kIgnore = -1; | 225 static const int kIgnore = -1; |
223 static const int kPush = 1; | 226 static const int kPush = 1; |
224 | 227 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 private: | 611 private: |
609 Major MajorKey() { return ToBoolean; } | 612 Major MajorKey() { return ToBoolean; } |
610 int MinorKey() { return 0; } | 613 int MinorKey() { return 0; } |
611 }; | 614 }; |
612 | 615 |
613 | 616 |
614 } // namespace internal | 617 } // namespace internal |
615 } // namespace v8 | 618 } // namespace v8 |
616 | 619 |
617 #endif // V8_CODEGEN_H_ | 620 #endif // V8_CODEGEN_H_ |
OLD | NEW |