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 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2096 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); | 2096 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
2097 #if TRACE_MAPS | 2097 #if TRACE_MAPS |
2098 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); | 2098 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |
2099 #endif | 2099 #endif |
2100 share->set_profiler_ticks(0); | 2100 share->set_profiler_ticks(0); |
2101 share->set_ast_node_count(0); | 2101 share->set_ast_node_count(0); |
2102 share->set_counters(0); | 2102 share->set_counters(0); |
2103 | 2103 |
2104 // Set integer fields (smi or int, depending on the architecture). | 2104 // Set integer fields (smi or int, depending on the architecture). |
2105 share->set_length(0); | 2105 share->set_length(0); |
2106 share->set_internal_formal_parameter_count(0); | 2106 share->set_formal_parameter_count(0); |
2107 share->set_expected_nof_properties(0); | 2107 share->set_expected_nof_properties(0); |
2108 share->set_num_literals(0); | 2108 share->set_num_literals(0); |
2109 share->set_start_position_and_type(0); | 2109 share->set_start_position_and_type(0); |
2110 share->set_end_position(0); | 2110 share->set_end_position(0); |
2111 share->set_function_token_position(0); | 2111 share->set_function_token_position(0); |
2112 // All compiler hints default to false or 0. | 2112 // All compiler hints default to false or 0. |
2113 share->set_compiler_hints(0); | 2113 share->set_compiler_hints(0); |
2114 share->set_opt_count_and_bailout_reason(0); | 2114 share->set_opt_count_and_bailout_reason(0); |
2115 | 2115 |
2116 return share; | 2116 return share; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2328 return Handle<Object>::null(); | 2328 return Handle<Object>::null(); |
2329 } | 2329 } |
2330 | 2330 |
2331 | 2331 |
2332 Handle<Object> Factory::ToBoolean(bool value) { | 2332 Handle<Object> Factory::ToBoolean(bool value) { |
2333 return value ? true_value() : false_value(); | 2333 return value ? true_value() : false_value(); |
2334 } | 2334 } |
2335 | 2335 |
2336 | 2336 |
2337 } } // namespace v8::internal | 2337 } } // namespace v8::internal |
OLD | NEW |