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 3970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |