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

Side by Side Diff: src/hydrogen.cc

Issue 16099006: Fix the hole loading optimization. (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/arm/lithium-codegen-arm.cc ('k') | src/hydrogen-instructions.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 3970 matching lines...) Expand 10 before | Expand all | Expand 10 after
3981 } 3981 }
3982 3982
3983 HInferRepresentation rep(this); 3983 HInferRepresentation rep(this);
3984 rep.Analyze(); 3984 rep.Analyze();
3985 3985
3986 // Remove HSimulate instructions that have turned out not to be needed 3986 // Remove HSimulate instructions that have turned out not to be needed
3987 // after all by folding them into the following HSimulate. 3987 // after all by folding them into the following HSimulate.
3988 // This must happen after inferring representations. 3988 // This must happen after inferring representations.
3989 MergeRemovableSimulates(); 3989 MergeRemovableSimulates();
3990 3990
3991 InsertRepresentationChanges();
3991 MarkDeoptimizeOnUndefined(); 3992 MarkDeoptimizeOnUndefined();
3992 InsertRepresentationChanges();
3993 3993
3994 InitializeInferredTypes(); 3994 InitializeInferredTypes();
3995 3995
3996 // Must be performed before canonicalization to ensure that Canonicalize 3996 // Must be performed before canonicalization to ensure that Canonicalize
3997 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with 3997 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with
3998 // zero. 3998 // zero.
3999 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations(); 3999 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations();
4000 4000
4001 if (FLAG_use_canonicalizing) Canonicalize(); 4001 if (FLAG_use_canonicalizing) Canonicalize();
4002 4002
(...skipping 7464 matching lines...) Expand 10 before | Expand all | Expand 10 after
11467 } 11467 }
11468 } 11468 }
11469 11469
11470 #ifdef DEBUG 11470 #ifdef DEBUG
11471 if (graph_ != NULL) graph_->Verify(false); // No full verify. 11471 if (graph_ != NULL) graph_->Verify(false); // No full verify.
11472 if (allocator_ != NULL) allocator_->Verify(); 11472 if (allocator_ != NULL) allocator_->Verify();
11473 #endif 11473 #endif
11474 } 11474 }
11475 11475
11476 } } // namespace v8::internal 11476 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698