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

Side by Side Diff: src/objects-debug.cc

Issue 11271006: Fix code flusher to process weak function links. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do true scavenge instead of weak object retention. Created 8 years, 2 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
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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 CHECK(!this->parent()->IsSlicedString()); 492 CHECK(!this->parent()->IsSlicedString());
493 CHECK(this->length() >= SlicedString::kMinLength); 493 CHECK(this->length() >= SlicedString::kMinLength);
494 } 494 }
495 495
496 496
497 void JSFunction::JSFunctionVerify() { 497 void JSFunction::JSFunctionVerify() {
498 CHECK(IsJSFunction()); 498 CHECK(IsJSFunction());
499 VerifyObjectField(kPrototypeOrInitialMapOffset); 499 VerifyObjectField(kPrototypeOrInitialMapOffset);
500 VerifyObjectField(kNextFunctionLinkOffset); 500 VerifyObjectField(kNextFunctionLinkOffset);
501 CHECK(code()->IsCode()); 501 CHECK(code()->IsCode());
502 CHECK(next_function_link()->IsUndefined() || 502 CHECK(next_function_link() == NULL ||
503 next_function_link()->IsUndefined() ||
503 next_function_link()->IsJSFunction()); 504 next_function_link()->IsJSFunction());
504 } 505 }
505 506
506 507
507 void SharedFunctionInfo::SharedFunctionInfoVerify() { 508 void SharedFunctionInfo::SharedFunctionInfoVerify() {
508 CHECK(IsSharedFunctionInfo()); 509 CHECK(IsSharedFunctionInfo());
509 VerifyObjectField(kNameOffset); 510 VerifyObjectField(kNameOffset);
510 VerifyObjectField(kCodeOffset); 511 VerifyObjectField(kCodeOffset);
511 VerifyObjectField(kOptimizedCodeMapOffset); 512 VerifyObjectField(kOptimizedCodeMapOffset);
512 VerifyObjectField(kScopeInfoOffset); 513 VerifyObjectField(kScopeInfoOffset);
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 for (int i = 0; i < number_of_transitions(); ++i) { 1002 for (int i = 0; i < number_of_transitions(); ++i) {
1002 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1003 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1003 } 1004 }
1004 return true; 1005 return true;
1005 } 1006 }
1006 1007
1007 1008
1008 #endif // DEBUG 1009 #endif // DEBUG
1009 1010
1010 } } // namespace v8::internal 1011 } } // namespace v8::internal
OLDNEW
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698