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

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

Issue 17064002: Refactor only: Rename JSGlobaPropertyCell to PropertyCell (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/objects.cc ('k') | src/objects-inl.h » ('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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 case JS_GLOBAL_OBJECT_TYPE: 160 case JS_GLOBAL_OBJECT_TYPE:
161 JSGlobalObject::cast(this)->JSGlobalObjectVerify(); 161 JSGlobalObject::cast(this)->JSGlobalObjectVerify();
162 break; 162 break;
163 case JS_BUILTINS_OBJECT_TYPE: 163 case JS_BUILTINS_OBJECT_TYPE:
164 JSBuiltinsObject::cast(this)->JSBuiltinsObjectVerify(); 164 JSBuiltinsObject::cast(this)->JSBuiltinsObjectVerify();
165 break; 165 break;
166 case CELL_TYPE: 166 case CELL_TYPE:
167 Cell::cast(this)->CellVerify(); 167 Cell::cast(this)->CellVerify();
168 break; 168 break;
169 case PROPERTY_CELL_TYPE: 169 case PROPERTY_CELL_TYPE:
170 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); 170 PropertyCell::cast(this)->PropertyCellVerify();
171 break; 171 break;
172 case JS_ARRAY_TYPE: 172 case JS_ARRAY_TYPE:
173 JSArray::cast(this)->JSArrayVerify(); 173 JSArray::cast(this)->JSArrayVerify();
174 break; 174 break;
175 case JS_SET_TYPE: 175 case JS_SET_TYPE:
176 JSSet::cast(this)->JSSetVerify(); 176 JSSet::cast(this)->JSSetVerify();
177 break; 177 break;
178 case JS_MAP_TYPE: 178 case JS_MAP_TYPE:
179 JSMap::cast(this)->JSMapVerify(); 179 JSMap::cast(this)->JSMapVerify();
180 break; 180 break;
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 } 617 }
618 } 618 }
619 619
620 620
621 void Cell::CellVerify() { 621 void Cell::CellVerify() {
622 CHECK(IsCell()); 622 CHECK(IsCell());
623 VerifyObjectField(kValueOffset); 623 VerifyObjectField(kValueOffset);
624 } 624 }
625 625
626 626
627 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { 627 void PropertyCell::PropertyCellVerify() {
628 CHECK(IsJSGlobalPropertyCell()); 628 CHECK(IsPropertyCell());
629 VerifyObjectField(kValueOffset); 629 VerifyObjectField(kValueOffset);
630 VerifyObjectField(kTypeOffset); 630 VerifyObjectField(kTypeOffset);
631 } 631 }
632 632
633 633
634 void Code::CodeVerify() { 634 void Code::CodeVerify() {
635 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()), 635 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()),
636 kCodeAlignment)); 636 kCodeAlignment));
637 relocation_info()->Verify(); 637 relocation_info()->Verify();
638 Address last_gc_pc = NULL; 638 Address last_gc_pc = NULL;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 for (int i = 0; i < number_of_transitions(); ++i) { 1136 for (int i = 0; i < number_of_transitions(); ++i) {
1137 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1137 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1138 } 1138 }
1139 return true; 1139 return true;
1140 } 1140 }
1141 1141
1142 1142
1143 #endif // DEBUG 1143 #endif // DEBUG
1144 1144
1145 } } // namespace v8::internal 1145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698