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/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2309 share->SetConstructStub(*construct_stub); | 2309 share->SetConstructStub(*construct_stub); |
2310 share->set_instance_class_name(*Object_string()); | 2310 share->set_instance_class_name(*Object_string()); |
2311 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); | 2311 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); |
2312 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); | 2312 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
2313 share->set_debug_info(DebugInfo::uninitialized(), SKIP_WRITE_BARRIER); | 2313 share->set_debug_info(DebugInfo::uninitialized(), SKIP_WRITE_BARRIER); |
2314 share->set_function_identifier(*undefined_value(), SKIP_WRITE_BARRIER); | 2314 share->set_function_identifier(*undefined_value(), SKIP_WRITE_BARRIER); |
2315 StaticFeedbackVectorSpec empty_spec; | 2315 StaticFeedbackVectorSpec empty_spec; |
2316 Handle<TypeFeedbackMetadata> feedback_metadata = | 2316 Handle<TypeFeedbackMetadata> feedback_metadata = |
2317 TypeFeedbackMetadata::New(isolate(), &empty_spec); | 2317 TypeFeedbackMetadata::New(isolate(), &empty_spec); |
2318 share->set_feedback_metadata(*feedback_metadata, SKIP_WRITE_BARRIER); | 2318 share->set_feedback_metadata(*feedback_metadata, SKIP_WRITE_BARRIER); |
2319 share->set_function_literal_num(-1); | |
marja
2016/11/18 10:48:04
Aha, so 0 probably is not "invalid" since we have
| |
2319 #if TRACE_MAPS | 2320 #if TRACE_MAPS |
2320 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); | 2321 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |
2321 #endif | 2322 #endif |
2322 share->set_profiler_ticks(0); | 2323 share->set_profiler_ticks(0); |
2323 share->set_ast_node_count(0); | 2324 share->set_ast_node_count(0); |
2324 share->set_counters(0); | 2325 share->set_counters(0); |
2325 | 2326 |
2326 // Set integer fields (smi or int, depending on the architecture). | 2327 // Set integer fields (smi or int, depending on the architecture). |
2327 share->set_length(0); | 2328 share->set_length(0); |
2328 share->set_internal_formal_parameter_count(0); | 2329 share->set_internal_formal_parameter_count(0); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2726 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); | 2727 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); |
2727 iterator->set_initial_next(*next); | 2728 iterator->set_initial_next(*next); |
2728 iterator->set_array(*array); | 2729 iterator->set_array(*array); |
2729 iterator->set_index(0); | 2730 iterator->set_index(0); |
2730 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); | 2731 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); |
2731 return iterator; | 2732 return iterator; |
2732 } | 2733 } |
2733 | 2734 |
2734 } // namespace internal | 2735 } // namespace internal |
2735 } // namespace v8 | 2736 } // namespace v8 |
OLD | NEW |