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

Side by Side Diff: src/arm/assembler-arm-inl.h

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: bool -> enum Created 7 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 | « no previous file | src/arm/builtins-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 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // TODO(1550) We are passing NULL as a slot because cell can never be on 201 // TODO(1550) We are passing NULL as a slot because cell can never be on
202 // evacuation candidate. 202 // evacuation candidate.
203 host()->GetHeap()->incremental_marking()->RecordWrite( 203 host()->GetHeap()->incremental_marking()->RecordWrite(
204 host(), NULL, cell); 204 host(), NULL, cell);
205 } 205 }
206 } 206 }
207 207
208 208
209 static const int kNoCodeAgeSequenceLength = 3; 209 static const int kNoCodeAgeSequenceLength = 3;
210 210
211
212 Handle<Object> RelocInfo::code_age_stub_handle(Assembler* origin) {
213 UNREACHABLE(); // This should never be reached on Arm.
214 return Handle<Object>();
215 }
216
217
211 Code* RelocInfo::code_age_stub() { 218 Code* RelocInfo::code_age_stub() {
212 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); 219 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE);
213 return Code::GetCodeFromTargetAddress( 220 return Code::GetCodeFromTargetAddress(
214 Memory::Address_at(pc_ + Assembler::kInstrSize * 221 Memory::Address_at(pc_ + Assembler::kInstrSize *
215 (kNoCodeAgeSequenceLength - 1))); 222 (kNoCodeAgeSequenceLength - 1)));
216 } 223 }
217 224
218 225
219 void RelocInfo::set_code_age_stub(Code* stub) { 226 void RelocInfo::set_code_age_stub(Code* stub) {
220 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); 227 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 523
517 524
518 void Assembler::set_target_address_at(Address pc, Address target) { 525 void Assembler::set_target_address_at(Address pc, Address target) {
519 set_target_pointer_at(pc, target); 526 set_target_pointer_at(pc, target);
520 } 527 }
521 528
522 529
523 } } // namespace v8::internal 530 } } // namespace v8::internal
524 531
525 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 532 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698