OLD | NEW |
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 <unordered_map> | 7 #include <unordered_map> |
8 #include <unordered_set> | 8 #include <unordered_set> |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2848 set_array_iterator_protector(*cell); | 2848 set_array_iterator_protector(*cell); |
2849 | 2849 |
2850 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( | 2850 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( |
2851 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2851 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
2852 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2852 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
2853 | 2853 |
2854 Handle<Cell> species_cell = factory->NewCell( | 2854 Handle<Cell> species_cell = factory->NewCell( |
2855 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2855 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
2856 set_species_protector(*species_cell); | 2856 set_species_protector(*species_cell); |
2857 | 2857 |
| 2858 Handle<Cell> string_bounds_check_cell = factory->NewCell( |
| 2859 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
| 2860 set_string_bounds_check_protector(*string_bounds_check_cell); |
| 2861 |
2858 cell = factory->NewPropertyCell(); | 2862 cell = factory->NewPropertyCell(); |
2859 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); | 2863 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
2860 set_string_length_protector(*cell); | 2864 set_string_length_protector(*cell); |
2861 | 2865 |
2862 Handle<Cell> fast_array_iteration_cell = factory->NewCell( | 2866 Handle<Cell> fast_array_iteration_cell = factory->NewCell( |
2863 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2867 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
2864 set_fast_array_iteration_protector(*fast_array_iteration_cell); | 2868 set_fast_array_iteration_protector(*fast_array_iteration_cell); |
2865 | 2869 |
2866 cell = factory->NewPropertyCell(); | 2870 cell = factory->NewPropertyCell(); |
2867 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); | 2871 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
(...skipping 3704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6572 case LO_SPACE: | 6576 case LO_SPACE: |
6573 return "LO_SPACE"; | 6577 return "LO_SPACE"; |
6574 default: | 6578 default: |
6575 UNREACHABLE(); | 6579 UNREACHABLE(); |
6576 } | 6580 } |
6577 return NULL; | 6581 return NULL; |
6578 } | 6582 } |
6579 | 6583 |
6580 } // namespace internal | 6584 } // namespace internal |
6581 } // namespace v8 | 6585 } // namespace v8 |
OLD | NEW |