| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 internal_trampoline_exception_ = false; | 304 internal_trampoline_exception_ = false; |
| 305 last_bound_pos_ = 0; | 305 last_bound_pos_ = 0; |
| 306 | 306 |
| 307 trampoline_emitted_ = FLAG_force_long_branches; | 307 trampoline_emitted_ = FLAG_force_long_branches; |
| 308 unbound_labels_count_ = 0; | 308 unbound_labels_count_ = 0; |
| 309 block_buffer_growth_ = false; | 309 block_buffer_growth_ = false; |
| 310 | 310 |
| 311 ClearRecordedAstId(); | 311 ClearRecordedAstId(); |
| 312 } | 312 } |
| 313 | 313 |
| 314 | 314 void Assembler::GetCode(Isolate* isolate, CodeDesc* desc) { |
| 315 void Assembler::GetCode(CodeDesc* desc) { | |
| 316 EmitForbiddenSlotInstruction(); | 315 EmitForbiddenSlotInstruction(); |
| 317 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 316 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
| 318 // Set up code descriptor. | 317 // Set up code descriptor. |
| 319 desc->buffer = buffer_; | 318 desc->buffer = buffer_; |
| 320 desc->buffer_size = buffer_size_; | 319 desc->buffer_size = buffer_size_; |
| 321 desc->instr_size = pc_offset(); | 320 desc->instr_size = pc_offset(); |
| 322 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 321 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 323 desc->origin = this; | 322 desc->origin = this; |
| 324 desc->constant_pool_size = 0; | 323 desc->constant_pool_size = 0; |
| 325 desc->unwinding_info_size = 0; | 324 desc->unwinding_info_size = 0; |
| (...skipping 3500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3826 | 3825 |
| 3827 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3826 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3828 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3827 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
| 3829 } | 3828 } |
| 3830 } | 3829 } |
| 3831 | 3830 |
| 3832 } // namespace internal | 3831 } // namespace internal |
| 3833 } // namespace v8 | 3832 } // namespace v8 |
| 3834 | 3833 |
| 3835 #endif // V8_TARGET_ARCH_MIPS | 3834 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |