| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 : AssemblerBase(isolate_data, buffer, buffer_size), | 341 : AssemblerBase(isolate_data, buffer, buffer_size), |
| 342 recorded_ast_id_(TypeFeedbackId::None()), | 342 recorded_ast_id_(TypeFeedbackId::None()), |
| 343 code_targets_(100) { | 343 code_targets_(100) { |
| 344 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); | 344 reloc_info_writer.Reposition(buffer_ + buffer_size_, pc_); |
| 345 | 345 |
| 346 last_bound_pos_ = 0; | 346 last_bound_pos_ = 0; |
| 347 ClearRecordedAstId(); | 347 ClearRecordedAstId(); |
| 348 relocations_.reserve(128); | 348 relocations_.reserve(128); |
| 349 } | 349 } |
| 350 | 350 |
| 351 void Assembler::GetCode(CodeDesc* desc) { | 351 void Assembler::GetCode(Isolate* isloate, CodeDesc* desc) { |
| 352 EmitRelocations(); | 352 EmitRelocations(); |
| 353 | 353 |
| 354 // Set up code descriptor. | 354 // Set up code descriptor. |
| 355 desc->buffer = buffer_; | 355 desc->buffer = buffer_; |
| 356 desc->buffer_size = buffer_size_; | 356 desc->buffer_size = buffer_size_; |
| 357 desc->instr_size = pc_offset(); | 357 desc->instr_size = pc_offset(); |
| 358 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 358 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 359 desc->origin = this; | 359 desc->origin = this; |
| 360 desc->unwinding_info_size = 0; | 360 desc->unwinding_info_size = 0; |
| 361 desc->unwinding_info = nullptr; | 361 desc->unwinding_info = nullptr; |
| (...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 SKIP_ICACHE_FLUSH); | 2208 SKIP_ICACHE_FLUSH); |
| 2209 } | 2209 } |
| 2210 | 2210 |
| 2211 reloc_info_writer.Write(&rinfo); | 2211 reloc_info_writer.Write(&rinfo); |
| 2212 } | 2212 } |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 } // namespace internal | 2215 } // namespace internal |
| 2216 } // namespace v8 | 2216 } // namespace v8 |
| 2217 #endif // V8_TARGET_ARCH_S390 | 2217 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |