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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 23890031: LLoadKeyed does not clobber double anymore. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 } 1613 }
1614 LOperand* elements() { return inputs_[0]; } 1614 LOperand* elements() { return inputs_[0]; }
1615 LOperand* key() { return inputs_[1]; } 1615 LOperand* key() { return inputs_[1]; }
1616 ElementsKind elements_kind() const { 1616 ElementsKind elements_kind() const {
1617 return hydrogen()->elements_kind(); 1617 return hydrogen()->elements_kind();
1618 } 1618 }
1619 bool is_external() const { 1619 bool is_external() const {
1620 return hydrogen()->is_external(); 1620 return hydrogen()->is_external();
1621 } 1621 }
1622 1622
1623 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE {
1624 return !CpuFeatures::IsSupported(SSE2) &&
1625 !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind());
1626 }
1627
1628 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1623 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1629 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1624 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1630 1625
1631 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1626 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1632 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1627 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1633 bool key_is_smi() { 1628 bool key_is_smi() {
1634 return hydrogen()->key()->representation().IsTagged(); 1629 return hydrogen()->key()->representation().IsTagged();
1635 } 1630 }
1636 }; 1631 };
1637 1632
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2913 2908
2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2909 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2915 }; 2910 };
2916 2911
2917 #undef DECLARE_HYDROGEN_ACCESSOR 2912 #undef DECLARE_HYDROGEN_ACCESSOR
2918 #undef DECLARE_CONCRETE_INSTRUCTION 2913 #undef DECLARE_CONCRETE_INSTRUCTION
2919 2914
2920 } } // namespace v8::internal 2915 } } // namespace v8::internal
2921 2916
2922 #endif // V8_IA32_LITHIUM_IA32_H_ 2917 #endif // V8_IA32_LITHIUM_IA32_H_
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