OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_ISOLATE_INL_H_ | 5 #ifndef V8_ISOLATE_INL_H_ |
6 #define V8_ISOLATE_INL_H_ | 6 #define V8_ISOLATE_INL_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Cell* species_cell = heap()->species_protector(); | 140 Cell* species_cell = heap()->species_protector(); |
141 return species_cell->value()->IsSmi() && | 141 return species_cell->value()->IsSmi() && |
142 Smi::cast(species_cell->value())->value() == kArrayProtectorValid; | 142 Smi::cast(species_cell->value())->value() == kArrayProtectorValid; |
143 } | 143 } |
144 | 144 |
145 bool Isolate::IsHasInstanceLookupChainIntact() { | 145 bool Isolate::IsHasInstanceLookupChainIntact() { |
146 PropertyCell* has_instance_cell = heap()->has_instance_protector(); | 146 PropertyCell* has_instance_cell = heap()->has_instance_protector(); |
147 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); | 147 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); |
148 } | 148 } |
149 | 149 |
150 bool Isolate::IsStringLengthOverflowIntact() { | |
151 PropertyCell* has_instance_cell = heap()->string_length_protector(); | |
152 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); | |
153 } | |
154 | |
155 } // namespace internal | 150 } // namespace internal |
156 } // namespace v8 | 151 } // namespace v8 |
157 | 152 |
158 #endif // V8_ISOLATE_INL_H_ | 153 #endif // V8_ISOLATE_INL_H_ |
OLD | NEW |