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/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 Code* construct_stub = | 2070 Code* construct_stub = |
2071 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); | 2071 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
2072 share->set_construct_stub(construct_stub); | 2072 share->set_construct_stub(construct_stub); |
2073 share->set_instance_class_name(*Object_string()); | 2073 share->set_instance_class_name(*Object_string()); |
2074 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); | 2074 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); |
2075 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); | 2075 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
2076 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); | 2076 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
2077 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); | 2077 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
2078 Handle<TypeFeedbackVector> feedback_vector = NewTypeFeedbackVector(0, 0); | 2078 Handle<TypeFeedbackVector> feedback_vector = NewTypeFeedbackVector(0, 0); |
2079 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); | 2079 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
| 2080 #if TRACE_MAPS |
| 2081 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |
| 2082 #endif |
2080 share->set_profiler_ticks(0); | 2083 share->set_profiler_ticks(0); |
2081 share->set_ast_node_count(0); | 2084 share->set_ast_node_count(0); |
2082 share->set_counters(0); | 2085 share->set_counters(0); |
2083 | 2086 |
2084 // Set integer fields (smi or int, depending on the architecture). | 2087 // Set integer fields (smi or int, depending on the architecture). |
2085 share->set_length(0); | 2088 share->set_length(0); |
2086 share->set_formal_parameter_count(0); | 2089 share->set_formal_parameter_count(0); |
2087 share->set_expected_nof_properties(0); | 2090 share->set_expected_nof_properties(0); |
2088 share->set_num_literals(0); | 2091 share->set_num_literals(0); |
2089 share->set_start_position_and_type(0); | 2092 share->set_start_position_and_type(0); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2498 return Handle<Object>::null(); | 2501 return Handle<Object>::null(); |
2499 } | 2502 } |
2500 | 2503 |
2501 | 2504 |
2502 Handle<Object> Factory::ToBoolean(bool value) { | 2505 Handle<Object> Factory::ToBoolean(bool value) { |
2503 return value ? true_value() : false_value(); | 2506 return value ? true_value() : false_value(); |
2504 } | 2507 } |
2505 | 2508 |
2506 | 2509 |
2507 } } // namespace v8::internal | 2510 } } // namespace v8::internal |
OLD | NEW |