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