OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 3378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3389 | 3389 |
3390 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 3390 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
3391 | 3391 |
3392 // Handling of script id generation is in Factory::NewScript. | 3392 // Handling of script id generation is in Factory::NewScript. |
3393 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 3393 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
3394 | 3394 |
3395 Handle<PropertyCell> cell = factory->NewPropertyCell(); | 3395 Handle<PropertyCell> cell = factory->NewPropertyCell(); |
3396 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 3396 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
3397 set_array_protector(*cell); | 3397 set_array_protector(*cell); |
3398 | 3398 |
| 3399 cell = factory->NewPropertyCell(); |
| 3400 cell->set_value(the_hole_value()); |
| 3401 set_empty_property_cell(*cell); |
| 3402 |
3399 set_weak_stack_trace_list(Smi::FromInt(0)); | 3403 set_weak_stack_trace_list(Smi::FromInt(0)); |
3400 | 3404 |
3401 set_allocation_sites_scratchpad( | 3405 set_allocation_sites_scratchpad( |
3402 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); | 3406 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); |
3403 InitializeAllocationSitesScratchpad(); | 3407 InitializeAllocationSitesScratchpad(); |
3404 | 3408 |
3405 // Initialize keyed lookup cache. | 3409 // Initialize keyed lookup cache. |
3406 isolate_->keyed_lookup_cache()->Clear(); | 3410 isolate_->keyed_lookup_cache()->Clear(); |
3407 | 3411 |
3408 // Initialize context slot cache. | 3412 // Initialize context slot cache. |
(...skipping 3439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6848 *object_type = "CODE_TYPE"; \ | 6852 *object_type = "CODE_TYPE"; \ |
6849 *object_sub_type = "CODE_AGE/" #name; \ | 6853 *object_sub_type = "CODE_AGE/" #name; \ |
6850 return true; | 6854 return true; |
6851 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6855 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6852 #undef COMPARE_AND_RETURN_NAME | 6856 #undef COMPARE_AND_RETURN_NAME |
6853 } | 6857 } |
6854 return false; | 6858 return false; |
6855 } | 6859 } |
6856 } // namespace internal | 6860 } // namespace internal |
6857 } // namespace v8 | 6861 } // namespace v8 |
OLD | NEW |