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

Side by Side Diff: src/heap/heap.cc

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/lookup.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); 2833 set_is_concat_spreadable_protector(*is_concat_spreadable_cell);
2834 2834
2835 Handle<Cell> species_cell = factory->NewCell( 2835 Handle<Cell> species_cell = factory->NewCell(
2836 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); 2836 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
2837 set_species_protector(*species_cell); 2837 set_species_protector(*species_cell);
2838 2838
2839 cell = factory->NewPropertyCell(); 2839 cell = factory->NewPropertyCell();
2840 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 2840 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2841 set_string_length_protector(*cell); 2841 set_string_length_protector(*cell);
2842 2842
2843 Handle<Cell> array_iterator_cell = factory->NewCell(
2844 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
Yang 2016/11/14 10:17:19 Can we name kArrayProtectorValid to kProtectorVali
petermarshall 2016/11/14 12:52:50 Sounds good to me.
2845 set_array_iterator_protector(*array_iterator_cell);
2846
2843 set_serialized_templates(empty_fixed_array()); 2847 set_serialized_templates(empty_fixed_array());
2844 2848
2845 set_weak_stack_trace_list(Smi::kZero); 2849 set_weak_stack_trace_list(Smi::kZero);
2846 2850
2847 set_noscript_shared_function_infos(Smi::kZero); 2851 set_noscript_shared_function_infos(Smi::kZero);
2848 2852
2849 // Initialize context slot cache. 2853 // Initialize context slot cache.
2850 isolate_->context_slot_cache()->Clear(); 2854 isolate_->context_slot_cache()->Clear();
2851 2855
2852 // Initialize descriptor cache. 2856 // Initialize descriptor cache.
(...skipping 3602 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 } 6459 }
6456 6460
6457 6461
6458 // static 6462 // static
6459 int Heap::GetStaticVisitorIdForMap(Map* map) { 6463 int Heap::GetStaticVisitorIdForMap(Map* map) {
6460 return StaticVisitorBase::GetVisitorId(map); 6464 return StaticVisitorBase::GetVisitorId(map);
6461 } 6465 }
6462 6466
6463 } // namespace internal 6467 } // namespace internal
6464 } // namespace v8 6468 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/lookup.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698