| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // If the provided buffer is NULL, the assembler allocates and grows its own | 463 // If the provided buffer is NULL, the assembler allocates and grows its own |
| 464 // buffer, and buffer_size determines the initial buffer size. The buffer is | 464 // buffer, and buffer_size determines the initial buffer size. The buffer is |
| 465 // owned by the assembler and deallocated upon destruction of the assembler. | 465 // owned by the assembler and deallocated upon destruction of the assembler. |
| 466 // | 466 // |
| 467 // If the provided buffer is not NULL, the assembler uses the provided buffer | 467 // If the provided buffer is not NULL, the assembler uses the provided buffer |
| 468 // for code generation and assumes its size to be buffer_size. If the buffer | 468 // for code generation and assumes its size to be buffer_size. If the buffer |
| 469 // is too small, a fatal error occurs. No deallocation of the buffer is done | 469 // is too small, a fatal error occurs. No deallocation of the buffer is done |
| 470 // upon destruction of the assembler. | 470 // upon destruction of the assembler. |
| 471 // TODO(vitalyr): the assembler does not need an isolate. | 471 // TODO(vitalyr): the assembler does not need an isolate. |
| 472 Assembler(Isolate* isolate, void* buffer, int buffer_size); | 472 Assembler(Isolate* isolate, void* buffer, int buffer_size); |
| 473 virtual ~Assembler() { } | 473 virtual ~Assembler(); |
| 474 | 474 |
| 475 // GetCode emits any pending (non-emitted) code and fills the descriptor | 475 // GetCode emits any pending (non-emitted) code and fills the descriptor |
| 476 // desc. GetCode() is idempotent; it returns the same result if no other | 476 // desc. GetCode() is idempotent; it returns the same result if no other |
| 477 // Assembler functions are invoked in between GetCode() calls. | 477 // Assembler functions are invoked in between GetCode() calls. |
| 478 void GetCode(CodeDesc* desc); | 478 void GetCode(CodeDesc* desc); |
| 479 | 479 |
| 480 // Read/Modify the code target in the branch/call instruction at pc. | 480 // Read/Modify the code target in the branch/call instruction at pc. |
| 481 inline static Address target_address_at(Address pc, | 481 inline static Address target_address_at(Address pc, |
| 482 ConstantPoolArray* constant_pool); | 482 ConstantPoolArray* constant_pool); |
| 483 inline static void set_target_address_at(Address pc, | 483 inline static void set_target_address_at(Address pc, |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 private: | 1022 private: |
| 1023 Assembler* assembler_; | 1023 Assembler* assembler_; |
| 1024 #ifdef DEBUG | 1024 #ifdef DEBUG |
| 1025 int space_before_; | 1025 int space_before_; |
| 1026 #endif | 1026 #endif |
| 1027 }; | 1027 }; |
| 1028 | 1028 |
| 1029 } } // namespace v8::internal | 1029 } } // namespace v8::internal |
| 1030 | 1030 |
| 1031 #endif // V8_X87_ASSEMBLER_X87_H_ | 1031 #endif // V8_X87_ASSEMBLER_X87_H_ |
| OLD | NEW |