| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // | 388 // |
| 389 // If the provided buffer is not NULL, the assembler uses the provided buffer | 389 // If the provided buffer is not NULL, the assembler uses the provided buffer |
| 390 // for code generation and assumes its size to be buffer_size. If the buffer | 390 // for code generation and assumes its size to be buffer_size. If the buffer |
| 391 // is too small, a fatal error occurs. No deallocation of the buffer is done | 391 // is too small, a fatal error occurs. No deallocation of the buffer is done |
| 392 // upon destruction of the assembler. | 392 // upon destruction of the assembler. |
| 393 Assembler(void* buffer, int buffer_size); | 393 Assembler(void* buffer, int buffer_size); |
| 394 ~Assembler(); | 394 ~Assembler(); |
| 395 | 395 |
| 396 // GetCode emits any pending (non-emitted) code and fills the descriptor | 396 // GetCode emits any pending (non-emitted) code and fills the descriptor |
| 397 // desc. GetCode() is idempotent; it returns the same result if no other | 397 // desc. GetCode() is idempotent; it returns the same result if no other |
| 398 // Assembler functions are invoked inbetween GetCode() calls. | 398 // Assembler functions are invoked in between GetCode() calls. |
| 399 void GetCode(CodeDesc* desc); | 399 void GetCode(CodeDesc* desc); |
| 400 | 400 |
| 401 // Label operations & relative jumps (PPUM Appendix D) | 401 // Label operations & relative jumps (PPUM Appendix D) |
| 402 // | 402 // |
| 403 // Takes a branch opcode (cc) and a label (L) and generates | 403 // Takes a branch opcode (cc) and a label (L) and generates |
| 404 // either a backward branch or a forward branch and links it | 404 // either a backward branch or a forward branch and links it |
| 405 // to the label fixup chain. Usage: | 405 // to the label fixup chain. Usage: |
| 406 // | 406 // |
| 407 // Label L; // unbound label | 407 // Label L; // unbound label |
| 408 // j(cc, &L); // forward branch to unbound label | 408 // j(cc, &L); // forward branch to unbound label |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 void link_to(Label* L, Label* appendix); | 779 void link_to(Label* L, Label* appendix); |
| 780 void next(Label* L); | 780 void next(Label* L); |
| 781 | 781 |
| 782 // Record reloc info for current pc_ | 782 // Record reloc info for current pc_ |
| 783 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 783 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
| 784 }; | 784 }; |
| 785 | 785 |
| 786 } } // namespace v8::internal | 786 } } // namespace v8::internal |
| 787 | 787 |
| 788 #endif // V8_ASSEMBLER_ARM_H_ | 788 #endif // V8_ASSEMBLER_ARM_H_ |
| OLD | NEW |