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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 if (date_cache != date_cache_) { | 1009 if (date_cache != date_cache_) { |
1010 delete date_cache_; | 1010 delete date_cache_; |
1011 } | 1011 } |
1012 date_cache_ = date_cache; | 1012 date_cache_ = date_cache; |
1013 } | 1013 } |
1014 | 1014 |
1015 Map* get_initial_js_array_map(ElementsKind kind); | 1015 Map* get_initial_js_array_map(ElementsKind kind); |
1016 | 1016 |
1017 bool IsFastArrayConstructorPrototypeChainIntact(); | 1017 bool IsFastArrayConstructorPrototypeChainIntact(); |
1018 | 1018 |
| 1019 // On intent to set an element in object, make sure that appropriate |
| 1020 // notifications occur if the set is on the elements of the array or |
| 1021 // object prototype. Also ensure that changes to prototype chain between |
| 1022 // Array and Object fire notifications. |
| 1023 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
| 1024 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
| 1025 UpdateArrayProtectorOnSetElement(object); |
| 1026 } |
| 1027 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { |
| 1028 UpdateArrayProtectorOnSetElement(object); |
| 1029 } |
| 1030 |
| 1031 // Returns true if array is the initial array prototype in any native context. |
| 1032 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
| 1033 |
1019 CallInterfaceDescriptorData* call_descriptor_data(int index); | 1034 CallInterfaceDescriptorData* call_descriptor_data(int index); |
1020 | 1035 |
1021 void IterateDeferredHandles(ObjectVisitor* visitor); | 1036 void IterateDeferredHandles(ObjectVisitor* visitor); |
1022 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1037 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
1023 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); | 1038 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); |
1024 | 1039 |
1025 #ifdef DEBUG | 1040 #ifdef DEBUG |
1026 bool IsDeferredHandle(Object** location); | 1041 bool IsDeferredHandle(Object** location); |
1027 #endif // DEBUG | 1042 #endif // DEBUG |
1028 | 1043 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 } | 1584 } |
1570 | 1585 |
1571 EmbeddedVector<char, 128> filename_; | 1586 EmbeddedVector<char, 128> filename_; |
1572 FILE* file_; | 1587 FILE* file_; |
1573 int scope_depth_; | 1588 int scope_depth_; |
1574 }; | 1589 }; |
1575 | 1590 |
1576 } } // namespace v8::internal | 1591 } } // namespace v8::internal |
1577 | 1592 |
1578 #endif // V8_ISOLATE_H_ | 1593 #endif // V8_ISOLATE_H_ |
OLD | NEW |