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

Side by Side Diff: src/hydrogen.cc

Issue 15358005: Don't create new maps in CurrentMapForDeprecated. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/ast.h ('k') | src/objects.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 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 } 1825 }
1826 // Handle either undetectable or monomorphic, not both. 1826 // Handle either undetectable or monomorphic, not both.
1827 ASSERT(!types.Contains(CompareNilICStub::UNDETECTABLE) || 1827 ASSERT(!types.Contains(CompareNilICStub::UNDETECTABLE) ||
1828 !types.Contains(CompareNilICStub::MONOMORPHIC_MAP)); 1828 !types.Contains(CompareNilICStub::MONOMORPHIC_MAP));
1829 if (types.Contains(CompareNilICStub::UNDETECTABLE)) { 1829 if (types.Contains(CompareNilICStub::UNDETECTABLE)) {
1830 if (needs_or) if_nil.Or(); 1830 if (needs_or) if_nil.Or();
1831 if_nil.If<HIsUndetectableAndBranch>(value); 1831 if_nil.If<HIsUndetectableAndBranch>(value);
1832 } else { 1832 } else {
1833 if_nil.Then(); 1833 if_nil.Then();
1834 if_nil.Else(); 1834 if_nil.Else();
1835 if (types.Contains(CompareNilICStub::MONOMORPHIC_MAP)) { 1835 if (!map.is_null() && types.Contains(CompareNilICStub::MONOMORPHIC_MAP)) {
1836 BuildCheckNonSmi(value); 1836 BuildCheckNonSmi(value);
1837 // For ICs, the map checked below is a sentinel map that gets replaced by 1837 // For ICs, the map checked below is a sentinel map that gets replaced by
1838 // the monomorphic map when the code is used as a template to generate a 1838 // the monomorphic map when the code is used as a template to generate a
1839 // new IC. For optimized functions, there is no sentinel map, the map 1839 // new IC. For optimized functions, there is no sentinel map, the map
1840 // emitted below is the actual monomorphic map. 1840 // emitted below is the actual monomorphic map.
1841 BuildCheckMap(value, map); 1841 BuildCheckMap(value, map);
1842 } else { 1842 } else {
1843 if (kind == kNonStrictEquality) { 1843 if (kind == kNonStrictEquality) {
1844 if_nil.Deopt(); 1844 if_nil.Deopt();
1845 } 1845 }
(...skipping 10623 matching lines...) Expand 10 before | Expand all | Expand 10 after
12469 } 12469 }
12470 } 12470 }
12471 12471
12472 #ifdef DEBUG 12472 #ifdef DEBUG
12473 if (graph_ != NULL) graph_->Verify(false); // No full verify. 12473 if (graph_ != NULL) graph_->Verify(false); // No full verify.
12474 if (allocator_ != NULL) allocator_->Verify(); 12474 if (allocator_ != NULL) allocator_->Verify();
12475 #endif 12475 #endif
12476 } 12476 }
12477 12477
12478 } } // namespace v8::internal 12478 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698