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

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

Issue 200095: Add near calls (32-bit displacement) to Code objects on X64 platform. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/assembler.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 75
76 void RelocInfo::set_target_address(Address target) { 76 void RelocInfo::set_target_address(Address target) {
77 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); 77 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY);
78 Assembler::set_target_address_at(pc_, target); 78 Assembler::set_target_address_at(pc_, target);
79 } 79 }
80 80
81 81
82 Object* RelocInfo::target_object() { 82 Object* RelocInfo::target_object() {
83 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 83 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
84 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); 84 return Memory::Object_at(Assembler::target_address_address_at(pc_));
85 }
86
87
88 Handle<Object> RelocInfo::target_object_handle(Assembler *origin) {
89 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
90 return Memory::Object_Handle_at(Assembler::target_address_address_at(pc_));
85 } 91 }
86 92
87 93
88 Object** RelocInfo::target_object_address() { 94 Object** RelocInfo::target_object_address() {
89 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 95 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
90 return reinterpret_cast<Object**>(Assembler::target_address_address_at(pc_)); 96 return reinterpret_cast<Object**>(Assembler::target_address_address_at(pc_));
91 } 97 }
92 98
93 99
94 void RelocInfo::set_target_object(Object* target) { 100 void RelocInfo::set_target_object(Object* target) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // CPU::FlushICache(pc, sizeof(target)); 252 // CPU::FlushICache(pc, sizeof(target));
247 // However, on ARM, no instruction was actually patched by the assignment 253 // However, on ARM, no instruction was actually patched by the assignment
248 // above; the target address is not part of an instruction, it is patched in 254 // above; the target address is not part of an instruction, it is patched in
249 // the constant pool and is read via a data access; the instruction accessing 255 // the constant pool and is read via a data access; the instruction accessing
250 // this address in the constant pool remains unchanged. 256 // this address in the constant pool remains unchanged.
251 } 257 }
252 258
253 } } // namespace v8::internal 259 } } // namespace v8::internal
254 260
255 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 261 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698