| 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 | |
| 218 protected: | 215 protected: |
| 219 MacroAssembler* masm_; | 216 MacroAssembler* masm_; |
| 220 | 217 |
| 221 private: | 218 private: |
| 222 // Constants indicating special actions. They should not be multiples | 219 // Constants indicating special actions. They should not be multiples |
| 223 // of kPointerSize so they will not collide with valid offsets from | 220 // of kPointerSize so they will not collide with valid offsets from |
| 224 // the frame pointer. | 221 // the frame pointer. |
| 225 static const int kIgnore = -1; | 222 static const int kIgnore = -1; |
| 226 static const int kPush = 1; | 223 static const int kPush = 1; |
| 227 | 224 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 private: | 608 private: |
| 612 Major MajorKey() { return ToBoolean; } | 609 Major MajorKey() { return ToBoolean; } |
| 613 int MinorKey() { return 0; } | 610 int MinorKey() { return 0; } |
| 614 }; | 611 }; |
| 615 | 612 |
| 616 | 613 |
| 617 } // namespace internal | 614 } // namespace internal |
| 618 } // namespace v8 | 615 } // namespace v8 |
| 619 | 616 |
| 620 #endif // V8_CODEGEN_H_ | 617 #endif // V8_CODEGEN_H_ |
| OLD | NEW |