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

Side by Side Diff: src/objects.h

Issue 879273004: Verify that code stubs and full code do not have pointers that can retain (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment Created 5 years, 10 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
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/objects-debug.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 5383 matching lines...) Expand 10 before | Expand all | Expand 10 after
5394 } 5394 }
5395 5395
5396 void PrintDeoptLocation(FILE* out, int bailout_id); 5396 void PrintDeoptLocation(FILE* out, int bailout_id);
5397 bool CanDeoptAt(Address pc); 5397 bool CanDeoptAt(Address pc);
5398 5398
5399 #ifdef VERIFY_HEAP 5399 #ifdef VERIFY_HEAP
5400 void VerifyEmbeddedObjectsDependency(); 5400 void VerifyEmbeddedObjectsDependency();
5401 #endif 5401 #endif
5402 5402
5403 #ifdef DEBUG 5403 #ifdef DEBUG
5404 void VerifyEmbeddedObjectsInFullCode(); 5404 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers };
5405 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers);
5405 #endif // DEBUG 5406 #endif // DEBUG
5406 5407
5407 inline bool CanContainWeakObjects() { 5408 inline bool CanContainWeakObjects() {
5408 // is_turbofanned() implies !can_have_weak_objects(). 5409 // is_turbofanned() implies !can_have_weak_objects().
5409 DCHECK(!is_optimized_code() || !is_turbofanned() || 5410 DCHECK(!is_optimized_code() || !is_turbofanned() ||
5410 !can_have_weak_objects()); 5411 !can_have_weak_objects());
5411 return is_optimized_code() && can_have_weak_objects(); 5412 return is_optimized_code() && can_have_weak_objects();
5412 } 5413 }
5413 5414
5414 inline bool IsWeakObject(Object* object) { 5415 inline bool IsWeakObject(Object* object) {
(...skipping 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after
10976 } else { 10977 } else {
10977 value &= ~(1 << bit_position); 10978 value &= ~(1 << bit_position);
10978 } 10979 }
10979 return value; 10980 return value;
10980 } 10981 }
10981 }; 10982 };
10982 10983
10983 } } // namespace v8::internal 10984 } } // namespace v8::internal
10984 10985
10985 #endif // V8_OBJECTS_H_ 10986 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698