Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/factory.cc

Issue 2481163002: Assign unique IDs to FunctionLiterals (Closed)
Patch Set: updates Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ast/ast.h"
9 #include "src/base/bits.h" 10 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 11 #include "src/bootstrapper.h"
11 #include "src/compiler.h" 12 #include "src/compiler.h"
12 #include "src/conversions.h" 13 #include "src/conversions.h"
13 #include "src/isolate-inl.h" 14 #include "src/isolate-inl.h"
14 #include "src/macro-assembler.h" 15 #include "src/macro-assembler.h"
15 16
16 namespace v8 { 17 namespace v8 {
17 namespace internal { 18 namespace internal {
18 19
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 share->SetConstructStub(*construct_stub); 2306 share->SetConstructStub(*construct_stub);
2306 share->set_instance_class_name(*Object_string()); 2307 share->set_instance_class_name(*Object_string());
2307 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER); 2308 share->set_function_data(*undefined_value(), SKIP_WRITE_BARRIER);
2308 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); 2309 share->set_script(*undefined_value(), SKIP_WRITE_BARRIER);
2309 share->set_debug_info(DebugInfo::uninitialized(), SKIP_WRITE_BARRIER); 2310 share->set_debug_info(DebugInfo::uninitialized(), SKIP_WRITE_BARRIER);
2310 share->set_function_identifier(*undefined_value(), SKIP_WRITE_BARRIER); 2311 share->set_function_identifier(*undefined_value(), SKIP_WRITE_BARRIER);
2311 StaticFeedbackVectorSpec empty_spec; 2312 StaticFeedbackVectorSpec empty_spec;
2312 Handle<TypeFeedbackMetadata> feedback_metadata = 2313 Handle<TypeFeedbackMetadata> feedback_metadata =
2313 TypeFeedbackMetadata::New(isolate(), &empty_spec); 2314 TypeFeedbackMetadata::New(isolate(), &empty_spec);
2314 share->set_feedback_metadata(*feedback_metadata, SKIP_WRITE_BARRIER); 2315 share->set_feedback_metadata(*feedback_metadata, SKIP_WRITE_BARRIER);
2316 share->set_function_literal_id(FunctionLiteral::kIdTypeInvalid);
2315 #if TRACE_MAPS 2317 #if TRACE_MAPS
2316 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); 2318 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId());
2317 #endif 2319 #endif
2318 share->set_profiler_ticks(0); 2320 share->set_profiler_ticks(0);
2319 share->set_ast_node_count(0); 2321 share->set_ast_node_count(0);
2320 share->set_counters(0); 2322 share->set_counters(0);
2321 2323
2322 // Set integer fields (smi or int, depending on the architecture). 2324 // Set integer fields (smi or int, depending on the architecture).
2323 share->set_length(0); 2325 share->set_length(0);
2324 share->set_internal_formal_parameter_count(0); 2326 share->set_internal_formal_parameter_count(0);
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); 2724 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map));
2723 iterator->set_initial_next(*next); 2725 iterator->set_initial_next(*next);
2724 iterator->set_array(*array); 2726 iterator->set_array(*array);
2725 iterator->set_index(0); 2727 iterator->set_index(0);
2726 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); 2728 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next);
2727 return iterator; 2729 return iterator;
2728 } 2730 }
2729 2731
2730 } // namespace internal 2732 } // namespace internal
2731 } // namespace v8 2733 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698