| 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 3659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3670 void Map::NotifyLeafMapLayoutChange() { | 3670 void Map::NotifyLeafMapLayoutChange() { |
| 3671 if (is_stable()) { | 3671 if (is_stable()) { |
| 3672 mark_unstable(); | 3672 mark_unstable(); |
| 3673 dependent_code()->DeoptimizeDependentCodeGroup( | 3673 dependent_code()->DeoptimizeDependentCodeGroup( |
| 3674 GetIsolate(), | 3674 GetIsolate(), |
| 3675 DependentCode::kPrototypeCheckGroup); | 3675 DependentCode::kPrototypeCheckGroup); |
| 3676 } | 3676 } |
| 3677 } | 3677 } |
| 3678 | 3678 |
| 3679 | 3679 |
| 3680 bool Map::CanOmitPrototypeChecks() { | |
| 3681 return is_stable() && FLAG_omit_prototype_checks_for_leaf_maps; | |
| 3682 } | |
| 3683 | |
| 3684 | |
| 3685 bool Map::CanOmitMapChecks() { | 3680 bool Map::CanOmitMapChecks() { |
| 3686 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; | 3681 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; |
| 3687 } | 3682 } |
| 3688 | 3683 |
| 3689 | 3684 |
| 3690 int DependentCode::number_of_entries(DependencyGroup group) { | 3685 int DependentCode::number_of_entries(DependencyGroup group) { |
| 3691 if (length() == 0) return 0; | 3686 if (length() == 0) return 0; |
| 3692 return Smi::cast(get(group))->value(); | 3687 return Smi::cast(get(group))->value(); |
| 3693 } | 3688 } |
| 3694 | 3689 |
| (...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6237 #undef WRITE_UINT32_FIELD | 6232 #undef WRITE_UINT32_FIELD |
| 6238 #undef READ_SHORT_FIELD | 6233 #undef READ_SHORT_FIELD |
| 6239 #undef WRITE_SHORT_FIELD | 6234 #undef WRITE_SHORT_FIELD |
| 6240 #undef READ_BYTE_FIELD | 6235 #undef READ_BYTE_FIELD |
| 6241 #undef WRITE_BYTE_FIELD | 6236 #undef WRITE_BYTE_FIELD |
| 6242 | 6237 |
| 6243 | 6238 |
| 6244 } } // namespace v8::internal | 6239 } } // namespace v8::internal |
| 6245 | 6240 |
| 6246 #endif // V8_OBJECTS_INL_H_ | 6241 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |