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 9906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9917 // property. | 9917 // property. |
9918 DECL_ACCESSORS(dependent_code, DependentCode) | 9918 DECL_ACCESSORS(dependent_code, DependentCode) |
9919 | 9919 |
9920 PropertyCellConstantType GetConstantType(); | 9920 PropertyCellConstantType GetConstantType(); |
9921 | 9921 |
9922 // Computes the new type of the cell's contents for the given value, but | 9922 // Computes the new type of the cell's contents for the given value, but |
9923 // without actually modifying the details. | 9923 // without actually modifying the details. |
9924 static PropertyCellType UpdatedType(Handle<PropertyCell> cell, | 9924 static PropertyCellType UpdatedType(Handle<PropertyCell> cell, |
9925 Handle<Object> value, | 9925 Handle<Object> value, |
9926 PropertyDetails details); | 9926 PropertyDetails details); |
9927 static void UpdateCell(Handle<NameDictionary> dictionary, int entry, | 9927 static void UpdateCell(Handle<GlobalDictionary> dictionary, int entry, |
9928 Handle<Object> value, PropertyDetails details); | 9928 Handle<Object> value, PropertyDetails details); |
9929 | 9929 |
9930 static Handle<PropertyCell> InvalidateEntry(Handle<NameDictionary> dictionary, | 9930 static Handle<PropertyCell> InvalidateEntry( |
9931 int entry); | 9931 Handle<GlobalDictionary> dictionary, int entry); |
9932 | 9932 |
9933 static void SetValueWithInvalidation(Handle<PropertyCell> cell, | 9933 static void SetValueWithInvalidation(Handle<PropertyCell> cell, |
9934 Handle<Object> new_value); | 9934 Handle<Object> new_value); |
9935 | 9935 |
9936 DECLARE_CAST(PropertyCell) | 9936 DECLARE_CAST(PropertyCell) |
9937 | 9937 |
9938 // Dispatched behavior. | 9938 // Dispatched behavior. |
9939 DECLARE_PRINTER(PropertyCell) | 9939 DECLARE_PRINTER(PropertyCell) |
9940 DECLARE_VERIFIER(PropertyCell) | 9940 DECLARE_VERIFIER(PropertyCell) |
9941 | 9941 |
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11191 } else { | 11191 } else { |
11192 value &= ~(1 << bit_position); | 11192 value &= ~(1 << bit_position); |
11193 } | 11193 } |
11194 return value; | 11194 return value; |
11195 } | 11195 } |
11196 }; | 11196 }; |
11197 | 11197 |
11198 } } // namespace v8::internal | 11198 } } // namespace v8::internal |
11199 | 11199 |
11200 #endif // V8_OBJECTS_H_ | 11200 #endif // V8_OBJECTS_H_ |
OLD | NEW |