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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 next_trampoline_check_ = kMaxInt; | 243 next_trampoline_check_ = kMaxInt; |
244 internal_trampoline_exception_ = false; | 244 internal_trampoline_exception_ = false; |
245 last_bound_pos_ = 0; | 245 last_bound_pos_ = 0; |
246 optimizable_cmpi_pos_ = -1; | 246 optimizable_cmpi_pos_ = -1; |
247 trampoline_emitted_ = FLAG_force_long_branches; | 247 trampoline_emitted_ = FLAG_force_long_branches; |
248 tracked_branch_count_ = 0; | 248 tracked_branch_count_ = 0; |
249 ClearRecordedAstId(); | 249 ClearRecordedAstId(); |
250 relocations_.reserve(128); | 250 relocations_.reserve(128); |
251 } | 251 } |
252 | 252 |
253 | 253 void Assembler::GetCode(Isolate* isolate, CodeDesc* desc) { |
254 void Assembler::GetCode(CodeDesc* desc) { | |
255 // Emit constant pool if necessary. | 254 // Emit constant pool if necessary. |
256 int constant_pool_offset = EmitConstantPool(); | 255 int constant_pool_offset = EmitConstantPool(); |
257 | 256 |
258 EmitRelocations(); | 257 EmitRelocations(); |
259 | 258 |
260 // Set up code descriptor. | 259 // Set up code descriptor. |
261 desc->buffer = buffer_; | 260 desc->buffer = buffer_; |
262 desc->buffer_size = buffer_size_; | 261 desc->buffer_size = buffer_size_; |
263 desc->instr_size = pc_offset(); | 262 desc->instr_size = pc_offset(); |
264 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 263 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 } | 2141 } |
2143 | 2142 |
2144 void PatchingAssembler::FlushICache(Isolate* isolate) { | 2143 void PatchingAssembler::FlushICache(Isolate* isolate) { |
2145 Assembler::FlushICache(isolate, buffer_, buffer_size_ - kGap); | 2144 Assembler::FlushICache(isolate, buffer_, buffer_size_ - kGap); |
2146 } | 2145 } |
2147 | 2146 |
2148 } // namespace internal | 2147 } // namespace internal |
2149 } // namespace v8 | 2148 } // namespace v8 |
2150 | 2149 |
2151 #endif // V8_TARGET_ARCH_PPC | 2150 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |