| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 6234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6245 | 6245 |
| 6246 inline int GetInObjectPropertyOffset(int index); | 6246 inline int GetInObjectPropertyOffset(int index); |
| 6247 | 6247 |
| 6248 int NumberOfFields(); | 6248 int NumberOfFields(); |
| 6249 | 6249 |
| 6250 bool InstancesNeedRewriting(Map* target, | 6250 bool InstancesNeedRewriting(Map* target, |
| 6251 int target_number_of_fields, | 6251 int target_number_of_fields, |
| 6252 int target_inobject, | 6252 int target_inobject, |
| 6253 int target_unused); | 6253 int target_unused); |
| 6254 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); | 6254 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); |
| 6255 static Handle<HeapType> GeneralizeFieldType(Handle<HeapType> old_field_type, | 6255 static Handle<HeapType> GeneralizeFieldType(Handle<HeapType> type1, |
| 6256 Handle<HeapType> new_field_type, | 6256 Handle<HeapType> type2, |
| 6257 Isolate* isolate) | 6257 Isolate* isolate) |
| 6258 V8_WARN_UNUSED_RESULT; | 6258 V8_WARN_UNUSED_RESULT; |
| 6259 static void GeneralizeFieldType(Handle<Map> map, | 6259 static void GeneralizeFieldType(Handle<Map> map, |
| 6260 int modify_index, | 6260 int modify_index, |
| 6261 Handle<HeapType> new_field_type); | 6261 Handle<HeapType> new_field_type); |
| 6262 static Handle<Map> GeneralizeRepresentation( | 6262 static Handle<Map> GeneralizeRepresentation( |
| 6263 Handle<Map> map, | 6263 Handle<Map> map, |
| 6264 int modify_index, | 6264 int modify_index, |
| 6265 Representation new_representation, | 6265 Representation new_representation, |
| 6266 Handle<HeapType> new_field_type, | 6266 Handle<HeapType> new_field_type, |
| (...skipping 4833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11100 } else { | 11100 } else { |
| 11101 value &= ~(1 << bit_position); | 11101 value &= ~(1 << bit_position); |
| 11102 } | 11102 } |
| 11103 return value; | 11103 return value; |
| 11104 } | 11104 } |
| 11105 }; | 11105 }; |
| 11106 | 11106 |
| 11107 } } // namespace v8::internal | 11107 } } // namespace v8::internal |
| 11108 | 11108 |
| 11109 #endif // V8_OBJECTS_H_ | 11109 #endif // V8_OBJECTS_H_ |
| OLD | NEW |