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

Side by Side Diff: src/objects.cc

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/isolate-inl.h ('k') | src/objects-visiting-inl.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 10287 matching lines...) Expand 10 before | Expand all | Expand 10 after
10298 10298
10299 void Code::ClearInlineCaches() { 10299 void Code::ClearInlineCaches() {
10300 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | 10300 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) |
10301 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | 10301 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) |
10302 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID) | 10302 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID) |
10303 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_CONTEXT); 10303 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_CONTEXT);
10304 for (RelocIterator it(this, mask); !it.done(); it.next()) { 10304 for (RelocIterator it(this, mask); !it.done(); it.next()) {
10305 RelocInfo* info = it.rinfo(); 10305 RelocInfo* info = it.rinfo();
10306 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); 10306 Code* target(Code::GetCodeFromTargetAddress(info->target_address()));
10307 if (target->is_inline_cache_stub()) { 10307 if (target->is_inline_cache_stub()) {
10308 IC::Clear(info->pc()); 10308 IC::Clear(this->GetIsolate(), info->pc());
10309 } 10309 }
10310 } 10310 }
10311 } 10311 }
10312 10312
10313 10313
10314 void Code::ClearTypeFeedbackCells(Heap* heap) { 10314 void Code::ClearTypeFeedbackCells(Heap* heap) {
10315 if (kind() != FUNCTION) return; 10315 if (kind() != FUNCTION) return;
10316 Object* raw_info = type_feedback_info(); 10316 Object* raw_info = type_feedback_info();
10317 if (raw_info->IsTypeFeedbackInfo()) { 10317 if (raw_info->IsTypeFeedbackInfo()) {
10318 TypeFeedbackCells* type_feedback_cells = 10318 TypeFeedbackCells* type_feedback_cells =
(...skipping 5654 matching lines...) Expand 10 before | Expand all | Expand 10 after
15973 #define ERROR_MESSAGES_TEXTS(C, T) T, 15973 #define ERROR_MESSAGES_TEXTS(C, T) T,
15974 static const char* error_messages_[] = { 15974 static const char* error_messages_[] = {
15975 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 15975 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
15976 }; 15976 };
15977 #undef ERROR_MESSAGES_TEXTS 15977 #undef ERROR_MESSAGES_TEXTS
15978 return error_messages_[reason]; 15978 return error_messages_[reason];
15979 } 15979 }
15980 15980
15981 15981
15982 } } // namespace v8::internal 15982 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate-inl.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698