| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 : AssemblerBase(isolate, buffer, buffer_size), | 306 : AssemblerBase(isolate, buffer, buffer_size), |
| 307 recorded_ast_id_(TypeFeedbackId::None()), | 307 recorded_ast_id_(TypeFeedbackId::None()), |
| 308 positions_recorder_(this) { | 308 positions_recorder_(this) { |
| 309 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); | 309 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); |
| 310 | 310 |
| 311 last_trampoline_pool_end_ = 0; | 311 last_trampoline_pool_end_ = 0; |
| 312 no_trampoline_pool_before_ = 0; | 312 no_trampoline_pool_before_ = 0; |
| 313 trampoline_pool_blocked_nesting_ = 0; | 313 trampoline_pool_blocked_nesting_ = 0; |
| 314 // We leave space (16 * kTrampolineSlotsSize) | 314 // We leave space (16 * kTrampolineSlotsSize) |
| 315 // for BlockTrampolinePoolScope buffer. | 315 // for BlockTrampolinePoolScope buffer. |
| 316 next_buffer_check_ = kMaxBranchOffset - kTrampolineSlotsSize * 16; | 316 next_buffer_check_ = FLAG_force_long_branches |
| 317 ? kMaxInt : kMaxBranchOffset - kTrampolineSlotsSize * 16; |
| 317 internal_trampoline_exception_ = false; | 318 internal_trampoline_exception_ = false; |
| 318 last_bound_pos_ = 0; | 319 last_bound_pos_ = 0; |
| 319 | 320 |
| 320 trampoline_emitted_ = false; | 321 trampoline_emitted_ = FLAG_force_long_branches; |
| 321 unbound_labels_count_ = 0; | 322 unbound_labels_count_ = 0; |
| 322 block_buffer_growth_ = false; | 323 block_buffer_growth_ = false; |
| 323 | 324 |
| 324 ClearRecordedAstId(); | 325 ClearRecordedAstId(); |
| 325 } | 326 } |
| 326 | 327 |
| 327 | 328 |
| 328 void Assembler::GetCode(CodeDesc* desc) { | 329 void Assembler::GetCode(CodeDesc* desc) { |
| 329 ASSERT(pc_ <= reloc_info_writer.pos()); // No overlap. | 330 ASSERT(pc_ <= reloc_info_writer.pos()); // No overlap. |
| 330 // Set up code descriptor. | 331 // Set up code descriptor. |
| (...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2317 } | 2318 } |
| 2318 | 2319 |
| 2319 if (patched) { | 2320 if (patched) { |
| 2320 CPU::FlushICache(pc+2, sizeof(Address)); | 2321 CPU::FlushICache(pc+2, sizeof(Address)); |
| 2321 } | 2322 } |
| 2322 } | 2323 } |
| 2323 | 2324 |
| 2324 } } // namespace v8::internal | 2325 } } // namespace v8::internal |
| 2325 | 2326 |
| 2326 #endif // V8_TARGET_ARCH_MIPS | 2327 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |