| 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 share->set_optimized_code_map(Smi::FromInt(0)); | 1967 share->set_optimized_code_map(Smi::FromInt(0)); |
| 1968 share->set_scope_info(ScopeInfo::Empty(isolate())); | 1968 share->set_scope_info(ScopeInfo::Empty(isolate())); |
| 1969 Code* construct_stub = | 1969 Code* construct_stub = |
| 1970 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); | 1970 isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
| 1971 share->set_construct_stub(construct_stub); | 1971 share->set_construct_stub(construct_stub); |
| 1972 share->set_instance_class_name(*Object_string()); | 1972 share->set_instance_class_name(*Object_string()); |
| 1973 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); | 1973 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1974 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); | 1974 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1975 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); | 1975 share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1976 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); | 1976 share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
| 1977 share->set_feedback_vector(*NewTypeFeedbackVector(0), SKIP_WRITE_BARRIER); | 1977 Handle<TypeFeedbackVector> feedback_vector = NewTypeFeedbackVector(0); |
| 1978 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
| 1978 share->set_profiler_ticks(0); | 1979 share->set_profiler_ticks(0); |
| 1979 share->set_ast_node_count(0); | 1980 share->set_ast_node_count(0); |
| 1980 share->set_counters(0); | 1981 share->set_counters(0); |
| 1981 | 1982 |
| 1982 // Set integer fields (smi or int, depending on the architecture). | 1983 // Set integer fields (smi or int, depending on the architecture). |
| 1983 share->set_length(0); | 1984 share->set_length(0); |
| 1984 share->set_formal_parameter_count(0); | 1985 share->set_formal_parameter_count(0); |
| 1985 share->set_expected_nof_properties(0); | 1986 share->set_expected_nof_properties(0); |
| 1986 share->set_num_literals(0); | 1987 share->set_num_literals(0); |
| 1987 share->set_start_position_and_type(0); | 1988 share->set_start_position_and_type(0); |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 return Handle<Object>::null(); | 2394 return Handle<Object>::null(); |
| 2394 } | 2395 } |
| 2395 | 2396 |
| 2396 | 2397 |
| 2397 Handle<Object> Factory::ToBoolean(bool value) { | 2398 Handle<Object> Factory::ToBoolean(bool value) { |
| 2398 return value ? true_value() : false_value(); | 2399 return value ? true_value() : false_value(); |
| 2399 } | 2400 } |
| 2400 | 2401 |
| 2401 | 2402 |
| 2402 } } // namespace v8::internal | 2403 } } // namespace v8::internal |
| OLD | NEW |