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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 9830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9841 // property. | 9841 // property. |
9842 DECL_ACCESSORS(dependent_code, DependentCode) | 9842 DECL_ACCESSORS(dependent_code, DependentCode) |
9843 | 9843 |
9844 PropertyCellConstantType GetConstantType(); | 9844 PropertyCellConstantType GetConstantType(); |
9845 | 9845 |
9846 // Computes the new type of the cell's contents for the given value, but | 9846 // Computes the new type of the cell's contents for the given value, but |
9847 // without actually modifying the details. | 9847 // without actually modifying the details. |
9848 static PropertyCellType UpdatedType(Handle<PropertyCell> cell, | 9848 static PropertyCellType UpdatedType(Handle<PropertyCell> cell, |
9849 Handle<Object> value, | 9849 Handle<Object> value, |
9850 PropertyDetails details); | 9850 PropertyDetails details); |
9851 static Handle<Object> UpdateCell(Handle<NameDictionary> dictionary, int entry, | 9851 static void UpdateCell(Handle<NameDictionary> dictionary, int entry, |
9852 Handle<Object> value, | 9852 Handle<Object> value, PropertyDetails details); |
9853 PropertyDetails details); | |
9854 | 9853 |
9855 static Handle<PropertyCell> InvalidateEntry(Handle<NameDictionary> dictionary, | 9854 static Handle<PropertyCell> InvalidateEntry(Handle<NameDictionary> dictionary, |
9856 int entry); | 9855 int entry); |
9857 | 9856 |
9858 static void SetValueWithInvalidation(Handle<PropertyCell> cell, | 9857 static void SetValueWithInvalidation(Handle<PropertyCell> cell, |
9859 Handle<Object> new_value); | 9858 Handle<Object> new_value); |
9860 | 9859 |
9861 DECLARE_CAST(PropertyCell) | 9860 DECLARE_CAST(PropertyCell) |
9862 | 9861 |
9863 // Dispatched behavior. | 9862 // Dispatched behavior. |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11107 } else { | 11106 } else { |
11108 value &= ~(1 << bit_position); | 11107 value &= ~(1 << bit_position); |
11109 } | 11108 } |
11110 return value; | 11109 return value; |
11111 } | 11110 } |
11112 }; | 11111 }; |
11113 | 11112 |
11114 } } // namespace v8::internal | 11113 } } // namespace v8::internal |
11115 | 11114 |
11116 #endif // V8_OBJECTS_H_ | 11115 #endif // V8_OBJECTS_H_ |
OLD | NEW |