OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/factory.h" | 5 #include "src/factory.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 share->set_profiler_ticks(0); | 2418 share->set_profiler_ticks(0); |
2419 share->set_ast_node_count(0); | 2419 share->set_ast_node_count(0); |
2420 share->set_counters(0); | 2420 share->set_counters(0); |
2421 | 2421 |
2422 // Set integer fields (smi or int, depending on the architecture). | 2422 // Set integer fields (smi or int, depending on the architecture). |
2423 share->set_length(0); | 2423 share->set_length(0); |
2424 share->set_internal_formal_parameter_count(0); | 2424 share->set_internal_formal_parameter_count(0); |
2425 share->set_expected_nof_properties(0); | 2425 share->set_expected_nof_properties(0); |
2426 share->set_num_literals(0); | 2426 share->set_num_literals(0); |
2427 share->set_start_position_and_type(0); | 2427 share->set_start_position_and_type(0); |
2428 share->set_end_position(0); | 2428 share->set_end_position_and_is_blackboxed(0); |
2429 share->set_function_token_position(0); | 2429 share->set_function_token_position(0); |
2430 // All compiler hints default to false or 0. | 2430 // All compiler hints default to false or 0. |
2431 share->set_compiler_hints(0); | 2431 share->set_compiler_hints(0); |
2432 share->set_opt_count_and_bailout_reason(0); | 2432 share->set_opt_count_and_bailout_reason(0); |
2433 | 2433 |
2434 // Link into the list. | 2434 // Link into the list. |
2435 Handle<Object> new_noscript_list = | 2435 Handle<Object> new_noscript_list = |
2436 WeakFixedArray::Add(noscript_shared_function_infos(), share); | 2436 WeakFixedArray::Add(noscript_shared_function_infos(), share); |
2437 isolate()->heap()->set_noscript_shared_function_infos(*new_noscript_list); | 2437 isolate()->heap()->set_noscript_shared_function_infos(*new_noscript_list); |
2438 | 2438 |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2844 Handle<AccessorInfo> prototype = | 2844 Handle<AccessorInfo> prototype = |
2845 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2845 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
2846 Descriptor d = Descriptor::AccessorConstant( | 2846 Descriptor d = Descriptor::AccessorConstant( |
2847 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2847 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
2848 map->AppendDescriptor(&d); | 2848 map->AppendDescriptor(&d); |
2849 } | 2849 } |
2850 } | 2850 } |
2851 | 2851 |
2852 } // namespace internal | 2852 } // namespace internal |
2853 } // namespace v8 | 2853 } // namespace v8 |
OLD | NEW |