OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 // If the provided buffer is not NULL, the assembler uses the provided buffer | 641 // If the provided buffer is not NULL, the assembler uses the provided buffer |
642 // for code generation and assumes its size to be buffer_size. If the buffer | 642 // for code generation and assumes its size to be buffer_size. If the buffer |
643 // is too small, a fatal error occurs. No deallocation of the buffer is done | 643 // is too small, a fatal error occurs. No deallocation of the buffer is done |
644 // upon destruction of the assembler. | 644 // upon destruction of the assembler. |
645 Assembler(Isolate* isolate, void* buffer, int buffer_size); | 645 Assembler(Isolate* isolate, void* buffer, int buffer_size); |
646 ~Assembler(); | 646 ~Assembler(); |
647 | 647 |
648 // Overrides the default provided by FLAG_debug_code. | 648 // Overrides the default provided by FLAG_debug_code. |
649 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } | 649 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } |
650 | 650 |
| 651 // Dummy for cross platform compatibility. |
| 652 void set_predictable_code_size(bool value) { } |
| 653 |
651 // GetCode emits any pending (non-emitted) code and fills the descriptor | 654 // GetCode emits any pending (non-emitted) code and fills the descriptor |
652 // desc. GetCode() is idempotent; it returns the same result if no other | 655 // desc. GetCode() is idempotent; it returns the same result if no other |
653 // Assembler functions are invoked in between GetCode() calls. | 656 // Assembler functions are invoked in between GetCode() calls. |
654 void GetCode(CodeDesc* desc); | 657 void GetCode(CodeDesc* desc); |
655 | 658 |
656 // Label operations & relative jumps (PPUM Appendix D) | 659 // Label operations & relative jumps (PPUM Appendix D) |
657 // | 660 // |
658 // Takes a branch opcode (cc) and a label (L) and generates | 661 // Takes a branch opcode (cc) and a label (L) and generates |
659 // either a backward branch or a forward branch and links it | 662 // either a backward branch or a forward branch and links it |
660 // to the label fixup chain. Usage: | 663 // to the label fixup chain. Usage: |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 public: | 1460 public: |
1458 explicit EnsureSpace(Assembler* assembler) { | 1461 explicit EnsureSpace(Assembler* assembler) { |
1459 assembler->CheckBuffer(); | 1462 assembler->CheckBuffer(); |
1460 } | 1463 } |
1461 }; | 1464 }; |
1462 | 1465 |
1463 | 1466 |
1464 } } // namespace v8::internal | 1467 } } // namespace v8::internal |
1465 | 1468 |
1466 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1469 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |