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

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

Issue 11574027: Use direct jump and call instruction for X64 when the deoptimization entries are in the code range (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | src/assembler.h » ('j') | src/objects.cc » ('J')
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 144
145 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { 145 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
147 return Handle<Object>(reinterpret_cast<Object**>( 147 return Handle<Object>(reinterpret_cast<Object**>(
148 Assembler::target_pointer_at(pc_))); 148 Assembler::target_pointer_at(pc_)));
149 } 149 }
150 150
151 151
152 bool RelocInfo::NeedsInitializeRuntimeEntry() {
153 return false;
154 }
155
156
157 Address RelocInfo::target_runtime_entry(Assembler* origin) {
158 UNREACHABLE();
danno 2013/03/07 14:57:23 Please implement this for all platforms, see comme
haitao.feng 2013/03/08 05:30:05 Done.
159 return NULL;
160 }
161
162
152 Object** RelocInfo::target_object_address() { 163 Object** RelocInfo::target_object_address() {
153 // Provide a "natural pointer" to the embedded object, 164 // Provide a "natural pointer" to the embedded object,
154 // which can be de-referenced during heap iteration. 165 // which can be de-referenced during heap iteration.
155 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 166 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
156 reconstructed_obj_ptr_ = 167 reconstructed_obj_ptr_ =
157 reinterpret_cast<Object*>(Assembler::target_pointer_at(pc_)); 168 reinterpret_cast<Object*>(Assembler::target_pointer_at(pc_));
158 return &reconstructed_obj_ptr_; 169 return &reconstructed_obj_ptr_;
159 } 170 }
160 171
161 172
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 551
541 552
542 void Assembler::set_target_address_at(Address pc, Address target) { 553 void Assembler::set_target_address_at(Address pc, Address target) {
543 set_target_pointer_at(pc, target); 554 set_target_pointer_at(pc, target);
544 } 555 }
545 556
546 557
547 } } // namespace v8::internal 558 } } // namespace v8::internal
548 559
549 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 560 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698