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

Side by Side Diff: src/lithium-codegen.cc

Issue 188783003: Make maps in monomorphic IC stubs weak. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Move the head of dependent IC to dependent code Created 6 years, 8 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/ic.cc ('k') | src/mark-compact.h » ('j') | src/objects.h » ('J')
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 } 197 }
198 } 198 }
199 #ifdef VERIFY_HEAP 199 #ifdef VERIFY_HEAP
200 // This disables verification of weak embedded objects after full GC. 200 // This disables verification of weak embedded objects after full GC.
201 // AddDependentCode can cause a GC, which would observe the state where 201 // AddDependentCode can cause a GC, which would observe the state where
202 // this code is not yet in the depended code lists of the embedded maps. 202 // this code is not yet in the depended code lists of the embedded maps.
203 NoWeakObjectVerificationScope disable_verification_of_embedded_objects; 203 NoWeakObjectVerificationScope disable_verification_of_embedded_objects;
204 #endif 204 #endif
205 for (int i = 0; i < maps.length(); i++) { 205 for (int i = 0; i < maps.length(); i++) {
206 maps.at(i)->AddDependentCode(DependentCode::kWeaklyEmbeddedGroup, code); 206 maps.at(i)->AddDependentCode(DependentCode::kWeakCodeGroup, code);
207 } 207 }
208 for (int i = 0; i < objects.length(); i++) { 208 for (int i = 0; i < objects.length(); i++) {
209 AddWeakObjectToCodeDependency(isolate()->heap(), objects.at(i), code); 209 AddWeakObjectToCodeDependency(isolate()->heap(), objects.at(i), code);
210 } 210 }
211 for (int i = 0; i < cells.length(); i++) { 211 for (int i = 0; i < cells.length(); i++) {
212 AddWeakObjectToCodeDependency(isolate()->heap(), cells.at(i), code); 212 AddWeakObjectToCodeDependency(isolate()->heap(), cells.at(i), code);
213 } 213 }
214 } 214 }
215 215
216 216
217 } } // namespace v8::internal 217 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/mark-compact.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698