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

Side by Side Diff: src/mark-compact.cc

Issue 11037023: Use movw/movt instead of constant pool on ARMv7 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 8 years, 2 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/ic-inl.h ('k') | src/platform.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 // Avoid unnecessary changes that might unnecessary flush the instruction 2320 // Avoid unnecessary changes that might unnecessary flush the instruction
2321 // cache. 2321 // cache.
2322 if (target != old_target) { 2322 if (target != old_target) {
2323 rinfo->set_target_object(target); 2323 rinfo->set_target_object(target);
2324 } 2324 }
2325 } 2325 }
2326 2326
2327 void VisitCodeTarget(RelocInfo* rinfo) { 2327 void VisitCodeTarget(RelocInfo* rinfo) {
2328 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); 2328 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode()));
2329 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); 2329 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
2330 Object* old_target = target;
2330 VisitPointer(&target); 2331 VisitPointer(&target);
2331 rinfo->set_target_address(Code::cast(target)->instruction_start()); 2332 if (target != old_target) {
2333 rinfo->set_target_address(Code::cast(target)->instruction_start());
2334 }
2332 } 2335 }
2333 2336
2334 void VisitDebugTarget(RelocInfo* rinfo) { 2337 void VisitDebugTarget(RelocInfo* rinfo) {
2335 ASSERT((RelocInfo::IsJSReturn(rinfo->rmode()) && 2338 ASSERT((RelocInfo::IsJSReturn(rinfo->rmode()) &&
2336 rinfo->IsPatchedReturnSequence()) || 2339 rinfo->IsPatchedReturnSequence()) ||
2337 (RelocInfo::IsDebugBreakSlot(rinfo->rmode()) && 2340 (RelocInfo::IsDebugBreakSlot(rinfo->rmode()) &&
2338 rinfo->IsPatchedDebugBreakSlotSequence())); 2341 rinfo->IsPatchedDebugBreakSlotSequence()));
2339 Object* target = Code::GetCodeFromTargetAddress(rinfo->call_address()); 2342 Object* target = Code::GetCodeFromTargetAddress(rinfo->call_address());
2340 VisitPointer(&target); 2343 VisitPointer(&target);
2341 rinfo->set_call_address(Code::cast(target)->instruction_start()); 2344 rinfo->set_call_address(Code::cast(target)->instruction_start());
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3760 while (buffer != NULL) { 3763 while (buffer != NULL) {
3761 SlotsBuffer* next_buffer = buffer->next(); 3764 SlotsBuffer* next_buffer = buffer->next();
3762 DeallocateBuffer(buffer); 3765 DeallocateBuffer(buffer);
3763 buffer = next_buffer; 3766 buffer = next_buffer;
3764 } 3767 }
3765 *buffer_address = NULL; 3768 *buffer_address = NULL;
3766 } 3769 }
3767 3770
3768 3771
3769 } } // namespace v8::internal 3772 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698