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 3357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3368 name->set_name(*name##d); \ | 3368 name->set_name(*name##d); \ |
3369 roots_[k##name##RootIndex] = *name; | 3369 roots_[k##name##RootIndex] = *name; |
3370 PUBLIC_SYMBOL_LIST(SYMBOL_INIT) | 3370 PUBLIC_SYMBOL_LIST(SYMBOL_INIT) |
3371 #undef SYMBOL_INIT | 3371 #undef SYMBOL_INIT |
3372 } | 3372 } |
3373 | 3373 |
3374 CreateFixedStubs(); | 3374 CreateFixedStubs(); |
3375 | 3375 |
3376 // Allocate the dictionary of intrinsic function names. | 3376 // Allocate the dictionary of intrinsic function names. |
3377 Handle<NameDictionary> intrinsic_names = | 3377 Handle<NameDictionary> intrinsic_names = |
3378 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); | 3378 NameDictionary::New(isolate(), 2 * Runtime::kNumFunctions, TENURED); |
bbudge
2015/08/04 00:35:49
This is just a hack until yangguo lands this:
http
| |
3379 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); | 3379 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); |
3380 set_intrinsic_function_names(*intrinsic_names); | 3380 set_intrinsic_function_names(*intrinsic_names); |
3381 | 3381 |
3382 set_number_string_cache( | 3382 set_number_string_cache( |
3383 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); | 3383 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); |
3384 | 3384 |
3385 // Allocate cache for single character one byte strings. | 3385 // Allocate cache for single character one byte strings. |
3386 set_single_character_string_cache( | 3386 set_single_character_string_cache( |
3387 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); | 3387 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); |
3388 | 3388 |
(...skipping 3559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6948 *object_type = "CODE_TYPE"; \ | 6948 *object_type = "CODE_TYPE"; \ |
6949 *object_sub_type = "CODE_AGE/" #name; \ | 6949 *object_sub_type = "CODE_AGE/" #name; \ |
6950 return true; | 6950 return true; |
6951 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6951 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6952 #undef COMPARE_AND_RETURN_NAME | 6952 #undef COMPARE_AND_RETURN_NAME |
6953 } | 6953 } |
6954 return false; | 6954 return false; |
6955 } | 6955 } |
6956 } // namespace internal | 6956 } // namespace internal |
6957 } // namespace v8 | 6957 } // namespace v8 |
OLD | NEW |