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

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

Issue 7786001: Fixed issue v8:1644 (bug in the chaining of fixup position) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 months 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 | « src/arm/assembler-arm.cc ('k') | test/cctest/test-assembler-arm.cc » ('j') | 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 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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 773
774 void Assembler::bind(Label* L) { 774 void Assembler::bind(Label* L) {
775 ASSERT(!L->is_bound()); // Label can only be bound once. 775 ASSERT(!L->is_bound()); // Label can only be bound once.
776 bind_to(L, pc_offset()); 776 bind_to(L, pc_offset());
777 } 777 }
778 778
779 779
780 void Assembler::next(Label* L) { 780 void Assembler::next(Label* L) {
781 ASSERT(L->is_linked()); 781 ASSERT(L->is_linked());
782 int link = target_at(L->pos()); 782 int link = target_at(L->pos());
783 ASSERT(link > 0 || link == kEndOfChain);
784 if (link == kEndOfChain) { 783 if (link == kEndOfChain) {
785 L->Unuse(); 784 L->Unuse();
786 } else if (link > 0) { 785 } else {
786 ASSERT(link >= 0);
787 L->link_to(link); 787 L->link_to(link);
788 } 788 }
789 } 789 }
790 790
791 bool Assembler::is_near(Label* L) { 791 bool Assembler::is_near(Label* L) {
792 if (L->is_bound()) { 792 if (L->is_bound()) {
793 return ((pc_offset() - L->pos()) < kMaxBranchOffset - 4 * kInstrSize); 793 return ((pc_offset() - L->pos()) < kMaxBranchOffset - 4 * kInstrSize);
794 } 794 }
795 return false; 795 return false;
796 } 796 }
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 *p = LUI | rt_code | ((itarget & kHiMask) >> kLuiShift); 2059 *p = LUI | rt_code | ((itarget & kHiMask) >> kLuiShift);
2060 *(p+1) = ORI | rt_code | (rt_code << 5) | (itarget & kImm16Mask); 2060 *(p+1) = ORI | rt_code | (rt_code << 5) | (itarget & kImm16Mask);
2061 2061
2062 CPU::FlushICache(pc, 2 * sizeof(int32_t)); 2062 CPU::FlushICache(pc, 2 * sizeof(int32_t));
2063 } 2063 }
2064 2064
2065 2065
2066 } } // namespace v8::internal 2066 } } // namespace v8::internal
2067 2067
2068 #endif // V8_TARGET_ARCH_MIPS 2068 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698