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

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

Issue 85793002: Drop unused Assembler::set_external_target_at() method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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.h ('k') | src/ia32/assembler-ia32.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 (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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 } 451 }
452 452
453 453
454 void Assembler::deserialization_set_special_target_at( 454 void Assembler::deserialization_set_special_target_at(
455 Address constant_pool_entry, Address target) { 455 Address constant_pool_entry, Address target) {
456 Memory::Address_at(constant_pool_entry) = target; 456 Memory::Address_at(constant_pool_entry) = target;
457 } 457 }
458 458
459 459
460 void Assembler::set_external_target_at(Address constant_pool_entry,
461 Address target) {
462 Memory::Address_at(constant_pool_entry) = target;
463 }
464
465
466 static Instr EncodeMovwImmediate(uint32_t immediate) { 460 static Instr EncodeMovwImmediate(uint32_t immediate) {
467 ASSERT(immediate < 0x10000); 461 ASSERT(immediate < 0x10000);
468 return ((immediate & 0xf000) << 4) | (immediate & 0xfff); 462 return ((immediate & 0xf000) << 4) | (immediate & 0xfff);
469 } 463 }
470 464
471 465
472 void Assembler::set_target_address_at(Address pc, Address target) { 466 void Assembler::set_target_address_at(Address pc, Address target) {
473 if (IsMovW(Memory::int32_at(pc))) { 467 if (IsMovW(Memory::int32_at(pc))) {
474 ASSERT(IsMovT(Memory::int32_at(pc + kInstrSize))); 468 ASSERT(IsMovT(Memory::int32_at(pc + kInstrSize)));
475 uint32_t* instr_ptr = reinterpret_cast<uint32_t*>(pc); 469 uint32_t* instr_ptr = reinterpret_cast<uint32_t*>(pc);
(...skipping 20 matching lines...) Expand all
496 // ldr ip, [pc, #...] 490 // ldr ip, [pc, #...]
497 // since the instruction accessing this address in the constant pool remains 491 // since the instruction accessing this address in the constant pool remains
498 // unchanged. 492 // unchanged.
499 } 493 }
500 } 494 }
501 495
502 496
503 } } // namespace v8::internal 497 } } // namespace v8::internal
504 498
505 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 499 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698