| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 } | 1244 } |
| 1245 } | 1245 } |
| 1246 object_group_connections_.Clear(); | 1246 object_group_connections_.Clear(); |
| 1247 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity); | 1247 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity); |
| 1248 retainer_infos_.Clear(); | 1248 retainer_infos_.Clear(); |
| 1249 implicit_ref_connections_.Clear(); | 1249 implicit_ref_connections_.Clear(); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 | 1252 |
| 1253 EternalHandles::EternalHandles() : size_(0) { | 1253 EternalHandles::EternalHandles() : size_(0) { |
| 1254 STATIC_ASSERT(v8::kUninitializedEternalIndex == kInvalidIndex); |
| 1254 for (unsigned i = 0; i < ARRAY_SIZE(singleton_handles_); i++) { | 1255 for (unsigned i = 0; i < ARRAY_SIZE(singleton_handles_); i++) { |
| 1255 singleton_handles_[i] = kInvalidIndex; | 1256 singleton_handles_[i] = kInvalidIndex; |
| 1256 } | 1257 } |
| 1257 } | 1258 } |
| 1258 | 1259 |
| 1259 | 1260 |
| 1260 EternalHandles::~EternalHandles() { | 1261 EternalHandles::~EternalHandles() { |
| 1261 for (int i = 0; i < blocks_.length(); i++) delete[] blocks_[i]; | 1262 for (int i = 0; i < blocks_.length(); i++) delete[] blocks_[i]; |
| 1262 } | 1263 } |
| 1263 | 1264 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 ASSERT_EQ(isolate->heap()->the_hole_value(), blocks_[block][offset]); | 1308 ASSERT_EQ(isolate->heap()->the_hole_value(), blocks_[block][offset]); |
| 1308 blocks_[block][offset] = object; | 1309 blocks_[block][offset] = object; |
| 1309 if (isolate->heap()->InNewSpace(object)) { | 1310 if (isolate->heap()->InNewSpace(object)) { |
| 1310 new_space_indices_.Add(size_); | 1311 new_space_indices_.Add(size_); |
| 1311 } | 1312 } |
| 1312 return size_++; | 1313 return size_++; |
| 1313 } | 1314 } |
| 1314 | 1315 |
| 1315 | 1316 |
| 1316 } } // namespace v8::internal | 1317 } } // namespace v8::internal |
| OLD | NEW |