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 3391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3402 | 3402 |
3403 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 3403 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
3404 | 3404 |
3405 // Handling of script id generation is in Factory::NewScript. | 3405 // Handling of script id generation is in Factory::NewScript. |
3406 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 3406 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
3407 | 3407 |
3408 Handle<PropertyCell> cell = factory->NewPropertyCell(); | 3408 Handle<PropertyCell> cell = factory->NewPropertyCell(); |
3409 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 3409 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
3410 set_array_protector(*cell); | 3410 set_array_protector(*cell); |
3411 | 3411 |
| 3412 cell = factory->NewPropertyCell(); |
| 3413 cell->set_value(the_hole_value()); |
| 3414 set_empty_property_cell(*cell); |
| 3415 |
3412 set_weak_stack_trace_list(Smi::FromInt(0)); | 3416 set_weak_stack_trace_list(Smi::FromInt(0)); |
3413 | 3417 |
3414 set_allocation_sites_scratchpad( | 3418 set_allocation_sites_scratchpad( |
3415 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); | 3419 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); |
3416 InitializeAllocationSitesScratchpad(); | 3420 InitializeAllocationSitesScratchpad(); |
3417 | 3421 |
3418 // Initialize keyed lookup cache. | 3422 // Initialize keyed lookup cache. |
3419 isolate_->keyed_lookup_cache()->Clear(); | 3423 isolate_->keyed_lookup_cache()->Clear(); |
3420 | 3424 |
3421 // Initialize context slot cache. | 3425 // Initialize context slot cache. |
(...skipping 3440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6862 *object_type = "CODE_TYPE"; \ | 6866 *object_type = "CODE_TYPE"; \ |
6863 *object_sub_type = "CODE_AGE/" #name; \ | 6867 *object_sub_type = "CODE_AGE/" #name; \ |
6864 return true; | 6868 return true; |
6865 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6869 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6866 #undef COMPARE_AND_RETURN_NAME | 6870 #undef COMPARE_AND_RETURN_NAME |
6867 } | 6871 } |
6868 return false; | 6872 return false; |
6869 } | 6873 } |
6870 } // namespace internal | 6874 } // namespace internal |
6871 } // namespace v8 | 6875 } // namespace v8 |
OLD | NEW |