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

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

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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 | « src/arm/assembler-arm.cc ('k') | 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return !Assembler::IsNop(current_instr, Assembler::DEBUG_BREAK_NOP); 191 return !Assembler::IsNop(current_instr, Assembler::DEBUG_BREAK_NOP);
192 } 192 }
193 193
194 194
195 void RelocInfo::Visit(ObjectVisitor* visitor) { 195 void RelocInfo::Visit(ObjectVisitor* visitor) {
196 RelocInfo::Mode mode = rmode(); 196 RelocInfo::Mode mode = rmode();
197 if (mode == RelocInfo::EMBEDDED_OBJECT) { 197 if (mode == RelocInfo::EMBEDDED_OBJECT) {
198 visitor->VisitPointer(target_object_address()); 198 visitor->VisitPointer(target_object_address());
199 } else if (RelocInfo::IsCodeTarget(mode)) { 199 } else if (RelocInfo::IsCodeTarget(mode)) {
200 visitor->VisitCodeTarget(this); 200 visitor->VisitCodeTarget(this);
201 } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) {
202 visitor->VisitGlobalPropertyCell(this);
201 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 203 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
202 visitor->VisitExternalReference(target_reference_address()); 204 visitor->VisitExternalReference(target_reference_address());
203 #ifdef ENABLE_DEBUGGER_SUPPORT 205 #ifdef ENABLE_DEBUGGER_SUPPORT
204 // TODO(isolates): Get a cached isolate below. 206 // TODO(isolates): Get a cached isolate below.
205 } else if (((RelocInfo::IsJSReturn(mode) && 207 } else if (((RelocInfo::IsJSReturn(mode) &&
206 IsPatchedReturnSequence()) || 208 IsPatchedReturnSequence()) ||
207 (RelocInfo::IsDebugBreakSlot(mode) && 209 (RelocInfo::IsDebugBreakSlot(mode) &&
208 IsPatchedDebugBreakSlotSequence())) && 210 IsPatchedDebugBreakSlotSequence())) &&
209 Isolate::Current()->debug()->has_break_points()) { 211 Isolate::Current()->debug()->has_break_points()) {
210 visitor->VisitDebugTarget(this); 212 visitor->VisitDebugTarget(this);
211 #endif 213 #endif
212 } else if (mode == RelocInfo::RUNTIME_ENTRY) { 214 } else if (mode == RelocInfo::RUNTIME_ENTRY) {
213 visitor->VisitRuntimeEntry(this); 215 visitor->VisitRuntimeEntry(this);
214 } 216 }
215 } 217 }
216 218
217 219
218 template<typename StaticVisitor> 220 template<typename StaticVisitor>
219 void RelocInfo::Visit(Heap* heap) { 221 void RelocInfo::Visit(Heap* heap) {
220 RelocInfo::Mode mode = rmode(); 222 RelocInfo::Mode mode = rmode();
221 if (mode == RelocInfo::EMBEDDED_OBJECT) { 223 if (mode == RelocInfo::EMBEDDED_OBJECT) {
222 StaticVisitor::VisitPointer(heap, target_object_address()); 224 StaticVisitor::VisitPointer(heap, target_object_address());
223 } else if (RelocInfo::IsCodeTarget(mode)) { 225 } else if (RelocInfo::IsCodeTarget(mode)) {
224 StaticVisitor::VisitCodeTarget(this); 226 StaticVisitor::VisitCodeTarget(this);
227 } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) {
228 StaticVisitor::VisitGlobalPropertyCell(this);
225 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 229 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
226 StaticVisitor::VisitExternalReference(target_reference_address()); 230 StaticVisitor::VisitExternalReference(target_reference_address());
227 #ifdef ENABLE_DEBUGGER_SUPPORT 231 #ifdef ENABLE_DEBUGGER_SUPPORT
228 } else if (heap->isolate()->debug()->has_break_points() && 232 } else if (heap->isolate()->debug()->has_break_points() &&
229 ((RelocInfo::IsJSReturn(mode) && 233 ((RelocInfo::IsJSReturn(mode) &&
230 IsPatchedReturnSequence()) || 234 IsPatchedReturnSequence()) ||
231 (RelocInfo::IsDebugBreakSlot(mode) && 235 (RelocInfo::IsDebugBreakSlot(mode) &&
232 IsPatchedDebugBreakSlotSequence()))) { 236 IsPatchedDebugBreakSlotSequence()))) {
233 StaticVisitor::VisitDebugTarget(this); 237 StaticVisitor::VisitDebugTarget(this);
234 #endif 238 #endif
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // CPU::FlushICache(pc, sizeof(target)); 344 // CPU::FlushICache(pc, sizeof(target));
341 // However, on ARM, no instruction was actually patched by the assignment 345 // However, on ARM, no instruction was actually patched by the assignment
342 // above; the target address is not part of an instruction, it is patched in 346 // above; the target address is not part of an instruction, it is patched in
343 // the constant pool and is read via a data access; the instruction accessing 347 // the constant pool and is read via a data access; the instruction accessing
344 // this address in the constant pool remains unchanged. 348 // this address in the constant pool remains unchanged.
345 } 349 }
346 350
347 } } // namespace v8::internal 351 } } // namespace v8::internal
348 352
349 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 353 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698