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

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

Issue 11360062: Revert r12825 and r12796 from trunk. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 1 month 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/mark-compact.cc ('k') | src/version.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 // 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() == NULL || 502 CHECK(next_function_link()->IsUndefined() ||
503 next_function_link()->IsUndefined() ||
504 next_function_link()->IsJSFunction()); 503 next_function_link()->IsJSFunction());
505 } 504 }
506 505
507 506
508 void SharedFunctionInfo::SharedFunctionInfoVerify() { 507 void SharedFunctionInfo::SharedFunctionInfoVerify() {
509 CHECK(IsSharedFunctionInfo()); 508 CHECK(IsSharedFunctionInfo());
510 VerifyObjectField(kNameOffset); 509 VerifyObjectField(kNameOffset);
511 VerifyObjectField(kCodeOffset); 510 VerifyObjectField(kCodeOffset);
512 VerifyObjectField(kOptimizedCodeMapOffset); 511 VerifyObjectField(kOptimizedCodeMapOffset);
513 VerifyObjectField(kScopeInfoOffset); 512 VerifyObjectField(kScopeInfoOffset);
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 for (int i = 0; i < number_of_transitions(); ++i) { 1001 for (int i = 0; i < number_of_transitions(); ++i) {
1003 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1002 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1004 } 1003 }
1005 return true; 1004 return true;
1006 } 1005 }
1007 1006
1008 1007
1009 #endif // DEBUG 1008 #endif // DEBUG
1010 1009
1011 } } // namespace v8::internal 1010 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698