| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 internal_trampoline_exception_ = false; | 284 internal_trampoline_exception_ = false; |
| 285 last_bound_pos_ = 0; | 285 last_bound_pos_ = 0; |
| 286 | 286 |
| 287 trampoline_emitted_ = FLAG_force_long_branches; | 287 trampoline_emitted_ = FLAG_force_long_branches; |
| 288 unbound_labels_count_ = 0; | 288 unbound_labels_count_ = 0; |
| 289 block_buffer_growth_ = false; | 289 block_buffer_growth_ = false; |
| 290 | 290 |
| 291 ClearRecordedAstId(); | 291 ClearRecordedAstId(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 | 294 void Assembler::GetCode(Isolate* isolate, CodeDesc* desc) { |
| 295 void Assembler::GetCode(CodeDesc* desc) { | |
| 296 EmitForbiddenSlotInstruction(); | 295 EmitForbiddenSlotInstruction(); |
| 297 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 296 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
| 298 // Set up code descriptor. | 297 // Set up code descriptor. |
| 299 desc->buffer = buffer_; | 298 desc->buffer = buffer_; |
| 300 desc->buffer_size = buffer_size_; | 299 desc->buffer_size = buffer_size_; |
| 301 desc->instr_size = pc_offset(); | 300 desc->instr_size = pc_offset(); |
| 302 desc->reloc_size = | 301 desc->reloc_size = |
| 303 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); | 302 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); |
| 304 desc->origin = this; | 303 desc->origin = this; |
| 305 desc->constant_pool_size = 0; | 304 desc->constant_pool_size = 0; |
| (...skipping 3757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4063 | 4062 |
| 4064 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 4063 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 4065 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 4064 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
| 4066 } | 4065 } |
| 4067 } | 4066 } |
| 4068 | 4067 |
| 4069 } // namespace internal | 4068 } // namespace internal |
| 4070 } // namespace v8 | 4069 } // namespace v8 |
| 4071 | 4070 |
| 4072 #endif // V8_TARGET_ARCH_MIPS64 | 4071 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |