Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/arm/assembler-arm.cc

Issue 76073003: Properly initialize desc->origin in the ARM assembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 // Emit constant pool if necessary. 538 // Emit constant pool if necessary.
539 CheckConstPool(true, false); 539 CheckConstPool(true, false);
540 ASSERT(num_pending_32_bit_reloc_info_ == 0); 540 ASSERT(num_pending_32_bit_reloc_info_ == 0);
541 ASSERT(num_pending_64_bit_reloc_info_ == 0); 541 ASSERT(num_pending_64_bit_reloc_info_ == 0);
542 542
543 // Set up code descriptor. 543 // Set up code descriptor.
544 desc->buffer = buffer_; 544 desc->buffer = buffer_;
545 desc->buffer_size = buffer_size_; 545 desc->buffer_size = buffer_size_;
546 desc->instr_size = pc_offset(); 546 desc->instr_size = pc_offset();
547 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 547 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
548 desc->origin = this;
548 } 549 }
549 550
550 551
551 void Assembler::Align(int m) { 552 void Assembler::Align(int m) {
552 ASSERT(m >= 4 && IsPowerOf2(m)); 553 ASSERT(m >= 4 && IsPowerOf2(m));
553 while ((pc_offset() & (m - 1)) != 0) { 554 while ((pc_offset() & (m - 1)) != 0) {
554 nop(); 555 nop();
555 } 556 }
556 } 557 }
557 558
(...skipping 2928 matching lines...) Expand 10 before | Expand all | Expand 10 after
3486 3487
3487 // Since a constant pool was just emitted, move the check offset forward by 3488 // Since a constant pool was just emitted, move the check offset forward by
3488 // the standard interval. 3489 // the standard interval.
3489 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 3490 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
3490 } 3491 }
3491 3492
3492 3493
3493 } } // namespace v8::internal 3494 } } // namespace v8::internal
3494 3495
3495 #endif // V8_TARGET_ARCH_ARM 3496 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698