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 #ifndef V8_HEAP_HEAP_INL_H_ | 5 #ifndef V8_HEAP_HEAP_INL_H_ |
6 #define V8_HEAP_HEAP_INL_H_ | 6 #define V8_HEAP_HEAP_INL_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 results_[index] = result; | 615 results_[index] = result; |
616 } | 616 } |
617 } | 617 } |
618 | 618 |
619 | 619 |
620 void Heap::ClearInstanceofCache() { | 620 void Heap::ClearInstanceofCache() { |
621 set_instanceof_cache_function(Smi::FromInt(0)); | 621 set_instanceof_cache_function(Smi::FromInt(0)); |
622 } | 622 } |
623 | 623 |
624 | 624 |
| 625 void Heap::UpdateNoScriptSharedFunctionInfos(Object* object) { |
| 626 set_noscript_shared_function_infos(object); |
| 627 } |
| 628 |
| 629 |
625 Object* Heap::ToBoolean(bool condition) { | 630 Object* Heap::ToBoolean(bool condition) { |
626 return condition ? true_value() : false_value(); | 631 return condition ? true_value() : false_value(); |
627 } | 632 } |
628 | 633 |
629 | 634 |
630 void Heap::CompletelyClearInstanceofCache() { | 635 void Heap::CompletelyClearInstanceofCache() { |
631 set_instanceof_cache_map(Smi::FromInt(0)); | 636 set_instanceof_cache_map(Smi::FromInt(0)); |
632 set_instanceof_cache_function(Smi::FromInt(0)); | 637 set_instanceof_cache_function(Smi::FromInt(0)); |
633 } | 638 } |
634 | 639 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 | 705 |
701 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { | 706 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { |
702 for (Object** current = start; current < end; current++) { | 707 for (Object** current = start; current < end; current++) { |
703 CHECK((*current)->IsSmi()); | 708 CHECK((*current)->IsSmi()); |
704 } | 709 } |
705 } | 710 } |
706 } // namespace internal | 711 } // namespace internal |
707 } // namespace v8 | 712 } // namespace v8 |
708 | 713 |
709 #endif // V8_HEAP_HEAP_INL_H_ | 714 #endif // V8_HEAP_HEAP_INL_H_ |
OLD | NEW |