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

Side by Side Diff: src/objects.cc

Issue 138163014: ResetAllAllocationSitesDependentCode is not changing dependent code, assert removed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/heap.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 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 11781 matching lines...) Expand 10 before | Expand all | Expand 10 after
11792 for (int i = start; i < end; i++) { 11792 for (int i = start; i < end; i++) {
11793 if (object_at(i) == code) return true; 11793 if (object_at(i) == code) return true;
11794 } 11794 }
11795 return false; 11795 return false;
11796 } 11796 }
11797 11797
11798 11798
11799 bool DependentCode::MarkCodeForDeoptimization( 11799 bool DependentCode::MarkCodeForDeoptimization(
11800 Isolate* isolate, 11800 Isolate* isolate,
11801 DependentCode::DependencyGroup group) { 11801 DependentCode::DependencyGroup group) {
11802 ASSERT(AllowCodeDependencyChange::IsAllowed());
11803 DisallowHeapAllocation no_allocation_scope; 11802 DisallowHeapAllocation no_allocation_scope;
11804 DependentCode::GroupStartIndexes starts(this); 11803 DependentCode::GroupStartIndexes starts(this);
11805 int start = starts.at(group); 11804 int start = starts.at(group);
11806 int end = starts.at(group + 1); 11805 int end = starts.at(group + 1);
11807 int code_entries = starts.number_of_entries(); 11806 int code_entries = starts.number_of_entries();
11808 if (start == end) return false; 11807 if (start == end) return false;
11809 11808
11810 // Mark all the code that needs to be deoptimized. 11809 // Mark all the code that needs to be deoptimized.
11811 bool marked = false; 11810 bool marked = false;
11812 for (int i = start; i < end; i++) { 11811 for (int i = start; i < end; i++) {
(...skipping 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after
16602 #define ERROR_MESSAGES_TEXTS(C, T) T, 16601 #define ERROR_MESSAGES_TEXTS(C, T) T,
16603 static const char* error_messages_[] = { 16602 static const char* error_messages_[] = {
16604 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16603 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16605 }; 16604 };
16606 #undef ERROR_MESSAGES_TEXTS 16605 #undef ERROR_MESSAGES_TEXTS
16607 return error_messages_[reason]; 16606 return error_messages_[reason];
16608 } 16607 }
16609 16608
16610 16609
16611 } } // namespace v8::internal 16610 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698