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 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3068 set_regexp_multiple_cache(*factory->NewFixedArray( | 3068 set_regexp_multiple_cache(*factory->NewFixedArray( |
3069 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 3069 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
3070 | 3070 |
3071 // Allocate cache for external strings pointing to native source code. | 3071 // Allocate cache for external strings pointing to native source code. |
3072 set_natives_source_cache( | 3072 set_natives_source_cache( |
3073 *factory->NewFixedArray(Natives::GetBuiltinsCount())); | 3073 *factory->NewFixedArray(Natives::GetBuiltinsCount())); |
3074 | 3074 |
3075 set_experimental_natives_source_cache( | 3075 set_experimental_natives_source_cache( |
3076 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); | 3076 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); |
3077 | 3077 |
3078 set_extra_natives_source_cache( | |
3079 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); | |
3080 | |
3081 set_undefined_cell(*factory->NewCell(factory->undefined_value())); | 3078 set_undefined_cell(*factory->NewCell(factory->undefined_value())); |
3082 | 3079 |
3083 // The symbol registry is initialized lazily. | 3080 // The symbol registry is initialized lazily. |
3084 set_symbol_registry(Smi::FromInt(0)); | 3081 set_symbol_registry(Smi::FromInt(0)); |
3085 | 3082 |
3086 // Allocate object to hold object observation state. | 3083 // Allocate object to hold object observation state. |
3087 set_observation_state(*factory->NewJSObjectFromMap( | 3084 set_observation_state(*factory->NewJSObjectFromMap( |
3088 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | 3085 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); |
3089 | 3086 |
3090 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 3087 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
(...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6489 } | 6486 } |
6490 delete list; | 6487 delete list; |
6491 } else { | 6488 } else { |
6492 prev = list; | 6489 prev = list; |
6493 } | 6490 } |
6494 list = next; | 6491 list = next; |
6495 } | 6492 } |
6496 } | 6493 } |
6497 } | 6494 } |
6498 } // namespace v8::internal | 6495 } // namespace v8::internal |
OLD | NEW |