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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 10538002: Skip canonicalization of packed arrays in HStoreKeyedFastDoubleElement (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
« src/hydrogen-instructions.h ('K') | « src/hydrogen-instructions.h ('k') | 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 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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 return left(); 2182 return left();
2183 } 2183 }
2184 return NULL; 2184 return NULL;
2185 } 2185 }
2186 2186
2187 2187
2188 bool HStoreKeyedFastDoubleElement::NeedsCanonicalization() { 2188 bool HStoreKeyedFastDoubleElement::NeedsCanonicalization() {
2189 // If value was loaded from unboxed double backing store or 2189 // If value was loaded from unboxed double backing store or
2190 // converted from an integer then we don't have to canonicalize it. 2190 // converted from an integer then we don't have to canonicalize it.
2191 if (value()->IsLoadKeyedFastDoubleElement() || 2191 if (value()->IsLoadKeyedFastDoubleElement() ||
2192 SkipCanonicalization::decode(bit_field_) ||
2192 (value()->IsChange() && HChange::cast(value())->from().IsInteger32())) { 2193 (value()->IsChange() && HChange::cast(value())->from().IsInteger32())) {
2193 return false; 2194 return false;
2194 } 2195 }
2195 return true; 2196 return true;
2196 } 2197 }
2197 2198
2198 2199
2199 #define H_CONSTANT_INT32(val) \ 2200 #define H_CONSTANT_INT32(val) \
2200 new(zone) HConstant(FACTORY->NewNumberFromInt(val, TENURED), \ 2201 new(zone) HConstant(FACTORY->NewNumberFromInt(val, TENURED), \
2201 Representation::Integer32()) 2202 Representation::Integer32())
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 2452
2452 2453
2453 void HCheckPrototypeMaps::Verify() { 2454 void HCheckPrototypeMaps::Verify() {
2454 HInstruction::Verify(); 2455 HInstruction::Verify();
2455 ASSERT(HasNoUses()); 2456 ASSERT(HasNoUses());
2456 } 2457 }
2457 2458
2458 #endif 2459 #endif
2459 2460
2460 } } // namespace v8::internal 2461 } } // namespace v8::internal
OLDNEW
« src/hydrogen-instructions.h ('K') | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698