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

Side by Side Diff: src/hydrogen.cc

Issue 7003088: Fix bogus unreachable in debug code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after
3889 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS: 3889 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
3890 case JSObject::EXTERNAL_INT_ELEMENTS: 3890 case JSObject::EXTERNAL_INT_ELEMENTS:
3891 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: { 3891 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: {
3892 HToInt32* floor_val = new(zone()) HToInt32(val); 3892 HToInt32* floor_val = new(zone()) HToInt32(val);
3893 AddInstruction(floor_val); 3893 AddInstruction(floor_val);
3894 val = floor_val; 3894 val = floor_val;
3895 break; 3895 break;
3896 } 3896 }
3897 case JSObject::EXTERNAL_FLOAT_ELEMENTS: 3897 case JSObject::EXTERNAL_FLOAT_ELEMENTS:
3898 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: 3898 case JSObject::EXTERNAL_DOUBLE_ELEMENTS:
3899 break;
3900
3899 case JSObject::FAST_ELEMENTS: 3901 case JSObject::FAST_ELEMENTS:
3900 case JSObject::FAST_DOUBLE_ELEMENTS: 3902 case JSObject::FAST_DOUBLE_ELEMENTS:
3901 case JSObject::DICTIONARY_ELEMENTS: 3903 case JSObject::DICTIONARY_ELEMENTS:
3902 UNREACHABLE(); 3904 UNREACHABLE();
3903 break; 3905 break;
3904 } 3906 }
3905 return new(zone()) HStoreKeyedSpecializedArrayElement( 3907 return new(zone()) HStoreKeyedSpecializedArrayElement(
3906 external_elements, 3908 external_elements,
3907 checked_key, 3909 checked_key,
3908 val, 3910 val,
(...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after
6398 } 6400 }
6399 } 6401 }
6400 6402
6401 #ifdef DEBUG 6403 #ifdef DEBUG
6402 if (graph_ != NULL) graph_->Verify(); 6404 if (graph_ != NULL) graph_->Verify();
6403 if (allocator_ != NULL) allocator_->Verify(); 6405 if (allocator_ != NULL) allocator_->Verify();
6404 #endif 6406 #endif
6405 } 6407 }
6406 6408
6407 } } // namespace v8::internal 6409 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698