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

Side by Side Diff: src/objects.cc

Issue 6639024: Get rid of distinction between below- and above-watermark in page allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 9 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 switch (map()->instance_type()) { 954 switch (map()->instance_type()) {
955 case MAP_TYPE: 955 case MAP_TYPE:
956 accumulator->Add("<Map>"); 956 accumulator->Add("<Map>");
957 break; 957 break;
958 case FIXED_ARRAY_TYPE: 958 case FIXED_ARRAY_TYPE:
959 accumulator->Add("<FixedArray[%u]>", FixedArray::cast(this)->length()); 959 accumulator->Add("<FixedArray[%u]>", FixedArray::cast(this)->length());
960 break; 960 break;
961 case BYTE_ARRAY_TYPE: 961 case BYTE_ARRAY_TYPE:
962 accumulator->Add("<ByteArray[%u]>", ByteArray::cast(this)->length()); 962 accumulator->Add("<ByteArray[%u]>", ByteArray::cast(this)->length());
963 break; 963 break;
964 case FREE_SPACE_TYPE:
965 accumulator->Add("<FreeSpace[%u]>", FreeSpace::cast(this)->Size());
966 break;
964 case EXTERNAL_PIXEL_ARRAY_TYPE: 967 case EXTERNAL_PIXEL_ARRAY_TYPE:
965 accumulator->Add("<ExternalPixelArray[%u]>", 968 accumulator->Add("<ExternalPixelArray[%u]>",
966 ExternalPixelArray::cast(this)->length()); 969 ExternalPixelArray::cast(this)->length());
967 break; 970 break;
968 case EXTERNAL_BYTE_ARRAY_TYPE: 971 case EXTERNAL_BYTE_ARRAY_TYPE:
969 accumulator->Add("<ExternalByteArray[%u]>", 972 accumulator->Add("<ExternalByteArray[%u]>",
970 ExternalByteArray::cast(this)->length()); 973 ExternalByteArray::cast(this)->length());
971 break; 974 break;
972 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 975 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
973 accumulator->Add("<ExternalUnsignedByteArray[%u]>", 976 accumulator->Add("<ExternalUnsignedByteArray[%u]>",
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 break; 1110 break;
1108 case CODE_TYPE: 1111 case CODE_TYPE:
1109 reinterpret_cast<Code*>(this)->CodeIterateBody(v); 1112 reinterpret_cast<Code*>(this)->CodeIterateBody(v);
1110 break; 1113 break;
1111 case JS_GLOBAL_PROPERTY_CELL_TYPE: 1114 case JS_GLOBAL_PROPERTY_CELL_TYPE:
1112 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v); 1115 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v);
1113 break; 1116 break;
1114 case HEAP_NUMBER_TYPE: 1117 case HEAP_NUMBER_TYPE:
1115 case FILLER_TYPE: 1118 case FILLER_TYPE:
1116 case BYTE_ARRAY_TYPE: 1119 case BYTE_ARRAY_TYPE:
1120 case FREE_SPACE_TYPE:
1117 case EXTERNAL_PIXEL_ARRAY_TYPE: 1121 case EXTERNAL_PIXEL_ARRAY_TYPE:
1118 case EXTERNAL_BYTE_ARRAY_TYPE: 1122 case EXTERNAL_BYTE_ARRAY_TYPE:
1119 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 1123 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
1120 case EXTERNAL_SHORT_ARRAY_TYPE: 1124 case EXTERNAL_SHORT_ARRAY_TYPE:
1121 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: 1125 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
1122 case EXTERNAL_INT_ARRAY_TYPE: 1126 case EXTERNAL_INT_ARRAY_TYPE:
1123 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: 1127 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
1124 case EXTERNAL_FLOAT_ARRAY_TYPE: 1128 case EXTERNAL_FLOAT_ARRAY_TYPE:
1125 break; 1129 break;
1126 case SHARED_FUNCTION_INFO_TYPE: 1130 case SHARED_FUNCTION_INFO_TYPE:
(...skipping 8916 matching lines...) Expand 10 before | Expand all | Expand 10 after
10043 if (break_point_objects()->IsUndefined()) return 0; 10047 if (break_point_objects()->IsUndefined()) return 0;
10044 // Single beak point. 10048 // Single beak point.
10045 if (!break_point_objects()->IsFixedArray()) return 1; 10049 if (!break_point_objects()->IsFixedArray()) return 1;
10046 // Multiple break points. 10050 // Multiple break points.
10047 return FixedArray::cast(break_point_objects())->length(); 10051 return FixedArray::cast(break_point_objects())->length();
10048 } 10052 }
10049 #endif 10053 #endif
10050 10054
10051 10055
10052 } } // namespace v8::internal 10056 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | src/spaces-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698