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

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

Issue 7834018: Support compaction for code space pages. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: port changes from ia32 to arm & x64 Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 if (IsSymbol()) { 360 if (IsSymbol()) {
361 CHECK(!HEAP->InNewSpace(this)); 361 CHECK(!HEAP->InNewSpace(this));
362 } 362 }
363 } 363 }
364 364
365 365
366 void JSFunction::JSFunctionVerify() { 366 void JSFunction::JSFunctionVerify() {
367 CHECK(IsJSFunction()); 367 CHECK(IsJSFunction());
368 VerifyObjectField(kPrototypeOrInitialMapOffset); 368 VerifyObjectField(kPrototypeOrInitialMapOffset);
369 VerifyObjectField(kNextFunctionLinkOffset); 369 VerifyObjectField(kNextFunctionLinkOffset);
370 CHECK(code()->IsCode());
370 CHECK(next_function_link()->IsUndefined() || 371 CHECK(next_function_link()->IsUndefined() ||
371 next_function_link()->IsJSFunction()); 372 next_function_link()->IsJSFunction());
372 } 373 }
373 374
374 375
375 void SharedFunctionInfo::SharedFunctionInfoVerify() { 376 void SharedFunctionInfo::SharedFunctionInfoVerify() {
376 CHECK(IsSharedFunctionInfo()); 377 CHECK(IsSharedFunctionInfo());
377 VerifyObjectField(kNameOffset); 378 VerifyObjectField(kNameOffset);
378 VerifyObjectField(kCodeOffset); 379 VerifyObjectField(kCodeOffset);
379 VerifyObjectField(kScopeInfoOffset); 380 VerifyObjectField(kScopeInfoOffset);
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 ASSERT(e->IsUndefined()); 780 ASSERT(e->IsUndefined());
780 } 781 }
781 } 782 }
782 } 783 }
783 } 784 }
784 785
785 786
786 #endif // DEBUG 787 #endif // DEBUG
787 788
788 } } // namespace v8::internal 789 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698