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

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

Issue 2684033012: [es2015] Remove the @@hasInstance protector cell. (Closed)
Patch Set: REBASE Created 3 years, 10 months 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') | no next file with comments »
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 2791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2802 Handle<PropertyCell> cell = factory->NewPropertyCell(); 2802 Handle<PropertyCell> cell = factory->NewPropertyCell();
2803 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); 2803 cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
2804 set_array_protector(*cell); 2804 set_array_protector(*cell);
2805 2805
2806 cell = factory->NewPropertyCell(); 2806 cell = factory->NewPropertyCell();
2807 cell->set_value(the_hole_value()); 2807 cell->set_value(the_hole_value());
2808 set_empty_property_cell(*cell); 2808 set_empty_property_cell(*cell);
2809 2809
2810 cell = factory->NewPropertyCell(); 2810 cell = factory->NewPropertyCell();
2811 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); 2811 cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
2812 set_has_instance_protector(*cell);
2813
2814 cell = factory->NewPropertyCell();
2815 cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
2816 set_array_iterator_protector(*cell); 2812 set_array_iterator_protector(*cell);
2817 2813
2818 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( 2814 Handle<Cell> is_concat_spreadable_cell = factory->NewCell(
2819 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); 2815 handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
2820 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); 2816 set_is_concat_spreadable_protector(*is_concat_spreadable_cell);
2821 2817
2822 Handle<Cell> species_cell = factory->NewCell( 2818 Handle<Cell> species_cell = factory->NewCell(
2823 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); 2819 handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
2824 set_species_protector(*species_cell); 2820 set_species_protector(*species_cell);
2825 2821
(...skipping 3715 matching lines...) Expand 10 before | Expand all | Expand 10 after
6541 } 6537 }
6542 6538
6543 6539
6544 // static 6540 // static
6545 int Heap::GetStaticVisitorIdForMap(Map* map) { 6541 int Heap::GetStaticVisitorIdForMap(Map* map) {
6546 return StaticVisitorBase::GetVisitorId(map); 6542 return StaticVisitorBase::GetVisitorId(map);
6547 } 6543 }
6548 6544
6549 } // namespace internal 6545 } // namespace internal
6550 } // namespace v8 6546 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698