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

Side by Side Diff: src/spaces.cc

Issue 7089002: Implement core support for FixedDoubleArrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final version before commit Created 9 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-visiting.cc ('k') | src/v8-counters.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 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 3052 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 // in map space. 3063 // in map space.
3064 Map* map = object->map(); 3064 Map* map = object->map();
3065 ASSERT(map->IsMap()); 3065 ASSERT(map->IsMap());
3066 ASSERT(heap()->map_space()->Contains(map)); 3066 ASSERT(heap()->map_space()->Contains(map));
3067 3067
3068 // We have only code, sequential strings, external strings 3068 // We have only code, sequential strings, external strings
3069 // (sequential strings that have been morphed into external 3069 // (sequential strings that have been morphed into external
3070 // strings), fixed arrays, and byte arrays in large object space. 3070 // strings), fixed arrays, and byte arrays in large object space.
3071 ASSERT(object->IsCode() || object->IsSeqString() || 3071 ASSERT(object->IsCode() || object->IsSeqString() ||
3072 object->IsExternalString() || object->IsFixedArray() || 3072 object->IsExternalString() || object->IsFixedArray() ||
3073 object->IsByteArray()); 3073 object->IsFixedDoubleArray() || object->IsByteArray());
3074 3074
3075 // The object itself should look OK. 3075 // The object itself should look OK.
3076 object->Verify(); 3076 object->Verify();
3077 3077
3078 // Byte arrays and strings don't have interior pointers. 3078 // Byte arrays and strings don't have interior pointers.
3079 if (object->IsCode()) { 3079 if (object->IsCode()) {
3080 VerifyPointersVisitor code_visitor; 3080 VerifyPointersVisitor code_visitor;
3081 object->IterateBody(map->instance_type(), 3081 object->IterateBody(map->instance_type(),
3082 object->Size(), 3082 object->Size(),
3083 &code_visitor); 3083 &code_visitor);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
3136 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { 3136 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) {
3137 if (obj->IsCode()) { 3137 if (obj->IsCode()) {
3138 Code* code = Code::cast(obj); 3138 Code* code = Code::cast(obj);
3139 isolate->code_kind_statistics()[code->kind()] += code->Size(); 3139 isolate->code_kind_statistics()[code->kind()] += code->Size();
3140 } 3140 }
3141 } 3141 }
3142 } 3142 }
3143 #endif // DEBUG 3143 #endif // DEBUG
3144 3144
3145 } } // namespace v8::internal 3145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting.cc ('k') | src/v8-counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698