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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 bool Isolate::IsHasInstanceLookupChainIntact() { | 136 bool Isolate::IsHasInstanceLookupChainIntact() { |
137 PropertyCell* has_instance_cell = heap()->has_instance_protector(); | 137 PropertyCell* has_instance_cell = heap()->has_instance_protector(); |
138 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); | 138 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); |
139 } | 139 } |
140 | 140 |
141 bool Isolate::IsStringLengthOverflowIntact() { | 141 bool Isolate::IsStringLengthOverflowIntact() { |
142 PropertyCell* has_instance_cell = heap()->string_length_protector(); | 142 PropertyCell* has_instance_cell = heap()->string_length_protector(); |
143 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); | 143 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); |
144 } | 144 } |
145 | 145 |
146 bool Isolate::CanInlineArrayIterator() { | |
Camillo Bruni
2016/11/09 12:03:49
nit: Could you rename this function to be more con
caitp
2016/11/09 17:40:16
I'm not sure what a good name for this is, but "Lo
| |
147 Cell* array_iterator_cell = heap()->array_iterator_protector(); | |
148 return array_iterator_cell->value() == Smi::FromInt(kArrayProtectorValid); | |
149 } | |
150 | |
146 } // namespace internal | 151 } // namespace internal |
147 } // namespace v8 | 152 } // namespace v8 |
148 | 153 |
149 #endif // V8_ISOLATE_INL_H_ | 154 #endif // V8_ISOLATE_INL_H_ |
OLD | NEW |