| OLD | NEW |
| 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 3256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3267 | 3267 |
| 3268 // Allocate object to hold object observation state. | 3268 // Allocate object to hold object observation state. |
| 3269 { MaybeObject* maybe_obj = AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); | 3269 { MaybeObject* maybe_obj = AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
| 3270 if (!maybe_obj->ToObject(&obj)) return false; | 3270 if (!maybe_obj->ToObject(&obj)) return false; |
| 3271 } | 3271 } |
| 3272 { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj)); | 3272 { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj)); |
| 3273 if (!maybe_obj->ToObject(&obj)) return false; | 3273 if (!maybe_obj->ToObject(&obj)) return false; |
| 3274 } | 3274 } |
| 3275 set_observation_state(JSObject::cast(obj)); | 3275 set_observation_state(JSObject::cast(obj)); |
| 3276 | 3276 |
| 3277 // Allocate object to hold object microtask state. |
| 3278 { MaybeObject* maybe_obj = AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
| 3279 if (!maybe_obj->ToObject(&obj)) return false; |
| 3280 } |
| 3281 { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj)); |
| 3282 if (!maybe_obj->ToObject(&obj)) return false; |
| 3283 } |
| 3284 set_microtask_state(JSObject::cast(obj)); |
| 3285 |
| 3277 { MaybeObject* maybe_obj = AllocateSymbol(); | 3286 { MaybeObject* maybe_obj = AllocateSymbol(); |
| 3278 if (!maybe_obj->ToObject(&obj)) return false; | 3287 if (!maybe_obj->ToObject(&obj)) return false; |
| 3279 } | 3288 } |
| 3280 Symbol::cast(obj)->set_is_private(true); | 3289 Symbol::cast(obj)->set_is_private(true); |
| 3281 set_frozen_symbol(Symbol::cast(obj)); | 3290 set_frozen_symbol(Symbol::cast(obj)); |
| 3282 | 3291 |
| 3283 { MaybeObject* maybe_obj = AllocateSymbol(); | 3292 { MaybeObject* maybe_obj = AllocateSymbol(); |
| 3284 if (!maybe_obj->ToObject(&obj)) return false; | 3293 if (!maybe_obj->ToObject(&obj)) return false; |
| 3285 } | 3294 } |
| 3286 Symbol::cast(obj)->set_is_private(true); | 3295 Symbol::cast(obj)->set_is_private(true); |
| (...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7711 static_cast<int>(object_sizes_last_time_[index])); | 7720 static_cast<int>(object_sizes_last_time_[index])); |
| 7712 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7721 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7713 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7722 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7714 | 7723 |
| 7715 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7724 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7716 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7725 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7717 ClearObjectStats(); | 7726 ClearObjectStats(); |
| 7718 } | 7727 } |
| 7719 | 7728 |
| 7720 } } // namespace v8::internal | 7729 } } // namespace v8::internal |
| OLD | NEW |