| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 | 33 |
| 34 void Isolate::clear_pending_exception() { | 34 void Isolate::clear_pending_exception() { |
| 35 DCHECK(!thread_local_top_.pending_exception_->IsException()); | 35 DCHECK(!thread_local_top_.pending_exception_->IsException()); |
| 36 thread_local_top_.pending_exception_ = heap_.the_hole_value(); | 36 thread_local_top_.pending_exception_ = heap_.the_hole_value(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 bool Isolate::has_pending_exception() { | 40 bool Isolate::has_pending_exception() { |
| 41 DCHECK(!thread_local_top_.pending_exception_->IsException()); | 41 DCHECK(!thread_local_top_.pending_exception_->IsException()); |
| 42 return !thread_local_top_.pending_exception_->IsTheHole(); | 42 return !thread_local_top_.pending_exception_->IsTheHole(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 | 45 |
| 46 void Isolate::clear_pending_message() { | 46 void Isolate::clear_pending_message() { |
| 47 thread_local_top_.pending_message_obj_ = heap_.the_hole_value(); | 47 thread_local_top_.pending_message_obj_ = heap_.the_hole_value(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 | 50 |
| 51 Object* Isolate::scheduled_exception() { | 51 Object* Isolate::scheduled_exception() { |
| 52 DCHECK(has_scheduled_exception()); | 52 DCHECK(has_scheduled_exception()); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool Isolate::IsHasInstanceLookupChainIntact() { | 123 bool Isolate::IsHasInstanceLookupChainIntact() { |
| 124 if (!FLAG_harmony_instanceof) return true; | 124 if (!FLAG_harmony_instanceof) return true; |
| 125 PropertyCell* has_instance_cell = heap()->has_instance_protector(); | 125 PropertyCell* has_instance_cell = heap()->has_instance_protector(); |
| 126 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); | 126 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace internal | 129 } // namespace internal |
| 130 } // namespace v8 | 130 } // namespace v8 |
| 131 | 131 |
| 132 #endif // V8_ISOLATE_INL_H_ | 132 #endif // V8_ISOLATE_INL_H_ |
| OLD | NEW |