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 3606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3617 } | 3617 } |
3618 if (FLAG_track_heap_object_fields && | 3618 if (FLAG_track_heap_object_fields && |
3619 details.representation().IsHeapObject()) { | 3619 details.representation().IsHeapObject()) { |
3620 return true; | 3620 return true; |
3621 } | 3621 } |
3622 } | 3622 } |
3623 return false; | 3623 return false; |
3624 } | 3624 } |
3625 | 3625 |
3626 | 3626 |
3627 Handle<Map> Map::CurrentMapForDeprecated(Handle<Map> map) { | |
3628 if (!map->is_deprecated()) return map; | |
3629 return GeneralizeRepresentation(map, 0, Representation::Smi()); | |
3630 } | |
3631 | |
3632 | |
3633 void Map::NotifyLeafMapLayoutChange() { | 3627 void Map::NotifyLeafMapLayoutChange() { |
3634 dependent_code()->DeoptimizeDependentCodeGroup( | 3628 dependent_code()->DeoptimizeDependentCodeGroup( |
3635 GetIsolate(), | 3629 GetIsolate(), |
3636 DependentCode::kPrototypeCheckGroup); | 3630 DependentCode::kPrototypeCheckGroup); |
3637 } | 3631 } |
3638 | 3632 |
3639 | 3633 |
3640 bool Map::CanOmitPrototypeChecks() { | 3634 bool Map::CanOmitPrototypeChecks() { |
3641 return !HasTransitionArray() && !is_dictionary_map() && | 3635 return !HasTransitionArray() && !is_dictionary_map() && |
3642 FLAG_omit_prototype_checks_for_leaf_maps; | 3636 FLAG_omit_prototype_checks_for_leaf_maps; |
(...skipping 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6221 #undef WRITE_UINT32_FIELD | 6215 #undef WRITE_UINT32_FIELD |
6222 #undef READ_SHORT_FIELD | 6216 #undef READ_SHORT_FIELD |
6223 #undef WRITE_SHORT_FIELD | 6217 #undef WRITE_SHORT_FIELD |
6224 #undef READ_BYTE_FIELD | 6218 #undef READ_BYTE_FIELD |
6225 #undef WRITE_BYTE_FIELD | 6219 #undef WRITE_BYTE_FIELD |
6226 | 6220 |
6227 | 6221 |
6228 } } // namespace v8::internal | 6222 } } // namespace v8::internal |
6229 | 6223 |
6230 #endif // V8_OBJECTS_INL_H_ | 6224 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |