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 "conversions.h" | 7 #include "conversions.h" |
8 #include "isolate-inl.h" | 8 #include "isolate-inl.h" |
9 #include "macro-assembler.h" | 9 #include "macro-assembler.h" |
10 | 10 |
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 share->set_scope_info(ScopeInfo::Empty(isolate())); | 1925 share->set_scope_info(ScopeInfo::Empty(isolate())); |
1926 Code* construct_stub = | 1926 Code* construct_stub = |
1927 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); | 1927 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
1928 share->set_construct_stub(construct_stub); | 1928 share->set_construct_stub(construct_stub); |
1929 share->set_instance_class_name(*Object_string()); | 1929 share->set_instance_class_name(*Object_string()); |
1930 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); | 1930 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); |
1931 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); | 1931 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
1932 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); | 1932 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
1933 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); | 1933 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
1934 share->set_feedback_vector(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1934 share->set_feedback_vector(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1935 share->set_initial_map(*undefined_value(), SKIP_WRITE_BARRIER); |
1935 share->set_profiler_ticks(0); | 1936 share->set_profiler_ticks(0); |
1936 share->set_ast_node_count(0); | 1937 share->set_ast_node_count(0); |
1937 share->set_counters(0); | 1938 share->set_counters(0); |
1938 | 1939 |
1939 // Set integer fields (smi or int, depending on the architecture). | 1940 // Set integer fields (smi or int, depending on the architecture). |
1940 share->set_length(0); | 1941 share->set_length(0); |
1941 share->set_formal_parameter_count(0); | 1942 share->set_formal_parameter_count(0); |
1942 share->set_expected_nof_properties(0); | 1943 share->set_expected_nof_properties(0); |
1943 share->set_num_literals(0); | 1944 share->set_num_literals(0); |
1944 share->set_start_position_and_type(0); | 1945 share->set_start_position_and_type(0); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2331 return Handle<Object>::null(); | 2332 return Handle<Object>::null(); |
2332 } | 2333 } |
2333 | 2334 |
2334 | 2335 |
2335 Handle<Object> Factory::ToBoolean(bool value) { | 2336 Handle<Object> Factory::ToBoolean(bool value) { |
2336 return value ? true_value() : false_value(); | 2337 return value ? true_value() : false_value(); |
2337 } | 2338 } |
2338 | 2339 |
2339 | 2340 |
2340 } } // namespace v8::internal | 2341 } } // namespace v8::internal |
OLD | NEW |