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 are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // If the provided buffer is not NULL, the assembler uses the provided buffer | 518 // If the provided buffer is not NULL, the assembler uses the provided buffer |
519 // for code generation and assumes its size to be buffer_size. If the buffer | 519 // for code generation and assumes its size to be buffer_size. If the buffer |
520 // is too small, a fatal error occurs. No deallocation of the buffer is done | 520 // is too small, a fatal error occurs. No deallocation of the buffer is done |
521 // upon destruction of the assembler. | 521 // upon destruction of the assembler. |
522 Assembler(Isolate* isolate, void* buffer, int buffer_size); | 522 Assembler(Isolate* isolate, void* buffer, int buffer_size); |
523 ~Assembler(); | 523 ~Assembler(); |
524 | 524 |
525 // Overrides the default provided by FLAG_debug_code. | 525 // Overrides the default provided by FLAG_debug_code. |
526 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } | 526 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } |
527 | 527 |
| 528 // Dummy for cross platform compatibility. |
| 529 void set_predictable_code_size(bool value) { } |
| 530 |
528 // GetCode emits any pending (non-emitted) code and fills the descriptor | 531 // GetCode emits any pending (non-emitted) code and fills the descriptor |
529 // desc. GetCode() is idempotent; it returns the same result if no other | 532 // desc. GetCode() is idempotent; it returns the same result if no other |
530 // Assembler functions are invoked in between GetCode() calls. | 533 // Assembler functions are invoked in between GetCode() calls. |
531 void GetCode(CodeDesc* desc); | 534 void GetCode(CodeDesc* desc); |
532 | 535 |
533 // Label operations & relative jumps (PPUM Appendix D). | 536 // Label operations & relative jumps (PPUM Appendix D). |
534 // | 537 // |
535 // Takes a branch opcode (cc) and a label (L) and generates | 538 // Takes a branch opcode (cc) and a label (L) and generates |
536 // either a backward branch or a forward branch and links it | 539 // either a backward branch or a forward branch and links it |
537 // to the label fixup chain. Usage: | 540 // to the label fixup chain. Usage: |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 class EnsureSpace BASE_EMBEDDED { | 1282 class EnsureSpace BASE_EMBEDDED { |
1280 public: | 1283 public: |
1281 explicit EnsureSpace(Assembler* assembler) { | 1284 explicit EnsureSpace(Assembler* assembler) { |
1282 assembler->CheckBuffer(); | 1285 assembler->CheckBuffer(); |
1283 } | 1286 } |
1284 }; | 1287 }; |
1285 | 1288 |
1286 } } // namespace v8::internal | 1289 } } // namespace v8::internal |
1287 | 1290 |
1288 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1291 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |