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

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

Issue 9722020: Enable snapshots on MIPS. This is based on (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 9 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
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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 // Return the address in the constant pool of the code target address used by 678 // Return the address in the constant pool of the code target address used by
679 // the branch/call instruction at pc. 679 // the branch/call instruction at pc.
680 INLINE(static Address target_address_address_at(Address pc)); 680 INLINE(static Address target_address_address_at(Address pc));
681 681
682 // Read/Modify the code target address in the branch/call instruction at pc. 682 // Read/Modify the code target address in the branch/call instruction at pc.
683 INLINE(static Address target_address_at(Address pc)); 683 INLINE(static Address target_address_at(Address pc));
684 INLINE(static void set_target_address_at(Address pc, Address target)); 684 INLINE(static void set_target_address_at(Address pc, Address target));
685 685
686 // This sets the branch destination (which is in the constant pool on ARM). 686 // This sets the branch destination (which is in the constant pool on ARM).
687 // This is for calls and branches within generated code. 687 // This is for calls and branches within generated code.
688 inline static void set_target_at(Address constant_pool_entry, Address target); 688 inline static void deserialization_set_special_target_at(
689 Address constant_pool_entry, Address target);
689 690
690 // This sets the branch destination (which is in the constant pool on ARM). 691 // This sets the branch destination (which is in the constant pool on ARM).
691 // This is for calls and branches to runtime code. 692 // This is for calls and branches to runtime code.
692 inline static void set_external_target_at(Address constant_pool_entry, 693 inline static void set_external_target_at(Address constant_pool_entry,
693 Address target) { 694 Address target);
694 set_target_at(constant_pool_entry, target);
695 }
696 695
697 // Here we are patching the address in the constant pool, not the actual call 696 // Here we are patching the address in the constant pool, not the actual call
698 // instruction. The address in the constant pool is the same size as a 697 // instruction. The address in the constant pool is the same size as a
699 // pointer. 698 // pointer.
700 static const int kCallTargetSize = kPointerSize; 699 static const int kSpecialTargetSize = kPointerSize;
701 static const int kExternalTargetSize = kPointerSize;
702 700
703 // Size of an instruction. 701 // Size of an instruction.
704 static const int kInstrSize = sizeof(Instr); 702 static const int kInstrSize = sizeof(Instr);
705 703
706 // Distance between the instruction referring to the address of the call 704 // Distance between the instruction referring to the address of the call
707 // target and the return address. 705 // target and the return address.
708 #ifdef USE_BLX 706 #ifdef USE_BLX
709 // Call sequence is: 707 // Call sequence is:
710 // ldr ip, [pc, #...] @ call address 708 // ldr ip, [pc, #...] @ call address
711 // blx ip 709 // blx ip
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 public: 1434 public:
1437 explicit EnsureSpace(Assembler* assembler) { 1435 explicit EnsureSpace(Assembler* assembler) {
1438 assembler->CheckBuffer(); 1436 assembler->CheckBuffer();
1439 } 1437 }
1440 }; 1438 };
1441 1439
1442 1440
1443 } } // namespace v8::internal 1441 } } // namespace v8::internal
1444 1442
1445 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1443 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/arm/assembler-arm.cc » ('j') | test/cctest/cctest.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698