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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
313 #endif | 313 #endif |
314 | 314 |
315 inline void Jump(); | 315 inline void Jump(); |
316 inline void Branch(Condition cc); | 316 inline void Branch(Condition cc); |
317 void BindExit() { masm_->bind(&exit_label_); } | 317 void BindExit() { masm_->bind(&exit_label_); } |
318 | 318 |
319 const FrameRegisterState* frame_state() const { return &frame_state_; } | 319 const FrameRegisterState* frame_state() const { return &frame_state_; } |
320 | 320 |
321 void SaveRegisters(); | 321 void SaveRegisters(); |
322 void RestoreRegisters(); | 322 void RestoreRegisters(); |
323 void Exit(); | |
324 virtual bool AutoSaveAndRestore() { return true; } | |
Lasse Reichstein
2010/08/06 08:20:12
I know it's not widespread in V8, but please add c
| |
323 | 325 |
324 protected: | 326 protected: |
325 MacroAssembler* masm_; | 327 MacroAssembler* masm_; |
326 | 328 |
327 private: | 329 private: |
328 int statement_position_; | 330 int statement_position_; |
329 int position_; | 331 int position_; |
330 | 332 |
331 Label entry_label_; | 333 Label entry_label_; |
332 Label exit_label_; | 334 Label exit_label_; |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
888 StringCharFromCodeGenerator char_from_code_generator_; | 890 StringCharFromCodeGenerator char_from_code_generator_; |
889 | 891 |
890 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); | 892 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); |
891 }; | 893 }; |
892 | 894 |
893 | 895 |
894 } // namespace internal | 896 } // namespace internal |
895 } // namespace v8 | 897 } // namespace v8 |
896 | 898 |
897 #endif // V8_CODEGEN_H_ | 899 #endif // V8_CODEGEN_H_ |
OLD | NEW |