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 "factory.h" | 5 #include "factory.h" |
6 | 6 |
7 #include "macro-assembler.h" | 7 #include "macro-assembler.h" |
8 #include "isolate-inl.h" | 8 #include "isolate-inl.h" |
9 #include "v8conversions.h" | 9 #include "v8conversions.h" |
10 | 10 |
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1844 share->set_scope_info(ScopeInfo::Empty(isolate())); | 1844 share->set_scope_info(ScopeInfo::Empty(isolate())); |
1845 Code* construct_stub = | 1845 Code* construct_stub = |
1846 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); | 1846 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
1847 share->set_construct_stub(construct_stub); | 1847 share->set_construct_stub(construct_stub); |
1848 share->set_instance_class_name(*Object_string()); | 1848 share->set_instance_class_name(*Object_string()); |
1849 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); | 1849 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); |
1850 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); | 1850 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
1851 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); | 1851 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
1852 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); | 1852 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
1853 share->set_initial_map(*undefined_value(), SKIP_WRITE_BARRIER); | 1853 share->set_initial_map(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1854 share->set_profiler_ticks(0); |
1854 share->set_ast_node_count(0); | 1855 share->set_ast_node_count(0); |
1855 share->set_counters(0); | 1856 share->set_counters(0); |
1856 | 1857 |
1857 // Set integer fields (smi or int, depending on the architecture). | 1858 // Set integer fields (smi or int, depending on the architecture). |
1858 share->set_length(0); | 1859 share->set_length(0); |
1859 share->set_formal_parameter_count(0); | 1860 share->set_formal_parameter_count(0); |
1860 share->set_expected_nof_properties(0); | 1861 share->set_expected_nof_properties(0); |
1861 share->set_num_literals(0); | 1862 share->set_num_literals(0); |
1862 share->set_start_position_and_type(0); | 1863 share->set_start_position_and_type(0); |
1863 share->set_end_position(0); | 1864 share->set_end_position(0); |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2327 return Handle<Object>::null(); | 2328 return Handle<Object>::null(); |
2328 } | 2329 } |
2329 | 2330 |
2330 | 2331 |
2331 Handle<Object> Factory::ToBoolean(bool value) { | 2332 Handle<Object> Factory::ToBoolean(bool value) { |
2332 return value ? true_value() : false_value(); | 2333 return value ? true_value() : false_value(); |
2333 } | 2334 } |
2334 | 2335 |
2335 | 2336 |
2336 } } // namespace v8::internal | 2337 } } // namespace v8::internal |
OLD | NEW |