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/heap/heap.h" | 5 #include "src/heap/heap.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 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3300 // Allocate cache for external strings pointing to native source code. | 3300 // Allocate cache for external strings pointing to native source code. |
3301 set_natives_source_cache( | 3301 set_natives_source_cache( |
3302 *factory->NewFixedArray(Natives::GetBuiltinsCount())); | 3302 *factory->NewFixedArray(Natives::GetBuiltinsCount())); |
3303 | 3303 |
3304 set_experimental_natives_source_cache( | 3304 set_experimental_natives_source_cache( |
3305 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); | 3305 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); |
3306 | 3306 |
3307 set_extra_natives_source_cache( | 3307 set_extra_natives_source_cache( |
3308 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); | 3308 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); |
3309 | 3309 |
| 3310 set_experimental_extra_natives_source_cache( |
| 3311 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); |
| 3312 |
3310 set_code_stub_natives_source_cache( | 3313 set_code_stub_natives_source_cache( |
3311 *factory->NewFixedArray(CodeStubNatives::GetBuiltinsCount())); | 3314 *factory->NewFixedArray(CodeStubNatives::GetBuiltinsCount())); |
3312 | 3315 |
3313 set_undefined_cell(*factory->NewCell(factory->undefined_value())); | 3316 set_undefined_cell(*factory->NewCell(factory->undefined_value())); |
3314 | 3317 |
3315 // The symbol registry is initialized lazily. | 3318 // The symbol registry is initialized lazily. |
3316 set_symbol_registry(Smi::FromInt(0)); | 3319 set_symbol_registry(Smi::FromInt(0)); |
3317 | 3320 |
3318 // Allocate object to hold object observation state. | 3321 // Allocate object to hold object observation state. |
3319 set_observation_state(*factory->NewJSObjectFromMap( | 3322 set_observation_state(*factory->NewJSObjectFromMap( |
(...skipping 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6901 *object_type = "CODE_TYPE"; \ | 6904 *object_type = "CODE_TYPE"; \ |
6902 *object_sub_type = "CODE_AGE/" #name; \ | 6905 *object_sub_type = "CODE_AGE/" #name; \ |
6903 return true; | 6906 return true; |
6904 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6907 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6905 #undef COMPARE_AND_RETURN_NAME | 6908 #undef COMPARE_AND_RETURN_NAME |
6906 } | 6909 } |
6907 return false; | 6910 return false; |
6908 } | 6911 } |
6909 } // namespace internal | 6912 } // namespace internal |
6910 } // namespace v8 | 6913 } // namespace v8 |
OLD | NEW |