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

Side by Side Diff: src/objects-visiting-inl.h

Issue 23886002: remove Isolate::Current from most files starting with 'f' through 'i' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 Heap* heap, RelocInfo* rinfo) { 297 Heap* heap, RelocInfo* rinfo) {
298 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); 298 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode()));
299 Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); 299 Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
300 // Monomorphic ICs are preserved when possible, but need to be flushed 300 // Monomorphic ICs are preserved when possible, but need to be flushed
301 // when they might be keeping a Context alive, or when the heap is about 301 // when they might be keeping a Context alive, or when the heap is about
302 // to be serialized. 302 // to be serialized.
303 if (FLAG_cleanup_code_caches_at_gc && target->is_inline_cache_stub() 303 if (FLAG_cleanup_code_caches_at_gc && target->is_inline_cache_stub()
304 && (target->ic_state() == MEGAMORPHIC || target->ic_state() == GENERIC || 304 && (target->ic_state() == MEGAMORPHIC || target->ic_state() == GENERIC ||
305 target->ic_state() == POLYMORPHIC || heap->flush_monomorphic_ics() || 305 target->ic_state() == POLYMORPHIC || heap->flush_monomorphic_ics() ||
306 Serializer::enabled() || target->ic_age() != heap->global_ic_age())) { 306 Serializer::enabled() || target->ic_age() != heap->global_ic_age())) {
307 IC::Clear(rinfo->pc()); 307 IC::Clear(target->GetIsolate(), rinfo->pc());
308 target = Code::GetCodeFromTargetAddress(rinfo->target_address()); 308 target = Code::GetCodeFromTargetAddress(rinfo->target_address());
309 } 309 }
310 heap->mark_compact_collector()->RecordRelocSlot(rinfo, target); 310 heap->mark_compact_collector()->RecordRelocSlot(rinfo, target);
311 StaticVisitor::MarkObject(heap, target); 311 StaticVisitor::MarkObject(heap, target);
312 } 312 }
313 313
314 314
315 template<typename StaticVisitor> 315 template<typename StaticVisitor>
316 void StaticMarkingVisitor<StaticVisitor>::VisitCodeAgeSequence( 316 void StaticMarkingVisitor<StaticVisitor>::VisitCodeAgeSequence(
317 Heap* heap, RelocInfo* rinfo) { 317 Heap* heap, RelocInfo* rinfo) {
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 RelocIterator it(this, mode_mask); 882 RelocIterator it(this, mode_mask);
883 for (; !it.done(); it.next()) { 883 for (; !it.done(); it.next()) {
884 it.rinfo()->template Visit<StaticVisitor>(heap); 884 it.rinfo()->template Visit<StaticVisitor>(heap);
885 } 885 }
886 } 886 }
887 887
888 888
889 } } // namespace v8::internal 889 } } // namespace v8::internal
890 890
891 #endif // V8_OBJECTS_VISITING_INL_H_ 891 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698