Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: src/objects-inl.h

Issue 14847008: Update deprecated maps before generating optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after
3603 return true; 3603 return true;
3604 } 3604 }
3605 if (FLAG_track_double_fields && details.representation().IsDouble()) { 3605 if (FLAG_track_double_fields && details.representation().IsDouble()) {
3606 return true; 3606 return true;
3607 } 3607 }
3608 } 3608 }
3609 return false; 3609 return false;
3610 } 3610 }
3611 3611
3612 3612
3613 Handle<Map> Map::CurrentMapForDeprecated(Handle<Map> map) {
3614 if (!map->is_deprecated()) return map;
3615 return GeneralizeRepresentation(map, 0, Representation::Smi());
3616 }
3617
3618
3613 void Map::NotifyLeafMapLayoutChange() { 3619 void Map::NotifyLeafMapLayoutChange() {
3614 dependent_code()->DeoptimizeDependentCodeGroup( 3620 dependent_code()->DeoptimizeDependentCodeGroup(
3615 GetIsolate(), 3621 GetIsolate(),
3616 DependentCode::kPrototypeCheckGroup); 3622 DependentCode::kPrototypeCheckGroup);
3617 } 3623 }
3618 3624
3619 3625
3620 bool Map::CanOmitPrototypeChecks() { 3626 bool Map::CanOmitPrototypeChecks() {
3621 return !HasTransitionArray() && !is_dictionary_map() && 3627 return !HasTransitionArray() && !is_dictionary_map() &&
3622 FLAG_omit_prototype_checks_for_leaf_maps; 3628 FLAG_omit_prototype_checks_for_leaf_maps;
(...skipping 2598 matching lines...) Expand 10 before | Expand all | Expand 10 after
6221 #undef WRITE_UINT32_FIELD 6227 #undef WRITE_UINT32_FIELD
6222 #undef READ_SHORT_FIELD 6228 #undef READ_SHORT_FIELD
6223 #undef WRITE_SHORT_FIELD 6229 #undef WRITE_SHORT_FIELD
6224 #undef READ_BYTE_FIELD 6230 #undef READ_BYTE_FIELD
6225 #undef WRITE_BYTE_FIELD 6231 #undef WRITE_BYTE_FIELD
6226 6232
6227 6233
6228 } } // namespace v8::internal 6234 } } // namespace v8::internal
6229 6235
6230 #endif // V8_OBJECTS_INL_H_ 6236 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698