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

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

Issue 6961019: Prevent deopt on double value assignment to typed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more review feedback 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 | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.cc » ('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 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 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 1684
1685 // Sometimes truncating conversion from a tagged value to an int32. 1685 // Sometimes truncating conversion from a tagged value to an int32.
1686 class LDoubleToI: public LTemplateInstruction<1, 1, 1> { 1686 class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
1687 public: 1687 public:
1688 LDoubleToI(LOperand* value, LOperand* temp) { 1688 LDoubleToI(LOperand* value, LOperand* temp) {
1689 inputs_[0] = value; 1689 inputs_[0] = value;
1690 temps_[0] = temp; 1690 temps_[0] = temp;
1691 } 1691 }
1692 1692
1693 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") 1693 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
1694 DECLARE_HYDROGEN_ACCESSOR(Change) 1694 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
1695 1695
1696 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 1696 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1697 }; 1697 };
1698 1698
1699 1699
1700 // Truncating conversion from a tagged value to an int32. 1700 // Truncating conversion from a tagged value to an int32.
1701 class LTaggedToI: public LTemplateInstruction<1, 1, 1> { 1701 class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
1702 public: 1702 public:
1703 LTaggedToI(LOperand* value, LOperand* temp) { 1703 LTaggedToI(LOperand* value, LOperand* temp) {
1704 inputs_[0] = value; 1704 inputs_[0] = value;
1705 temps_[0] = temp; 1705 temps_[0] = temp;
1706 } 1706 }
1707 1707
1708 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") 1708 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
1709 DECLARE_HYDROGEN_ACCESSOR(Change) 1709 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
1710 1710
1711 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 1711 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1712 }; 1712 };
1713 1713
1714 1714
1715 class LSmiTag: public LTemplateInstruction<1, 1, 0> { 1715 class LSmiTag: public LTemplateInstruction<1, 1, 0> {
1716 public: 1716 public:
1717 explicit LSmiTag(LOperand* value) { 1717 explicit LSmiTag(LOperand* value) {
1718 inputs_[0] = value; 1718 inputs_[0] = value;
1719 } 1719 }
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 2387
2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2389 }; 2389 };
2390 2390
2391 #undef DECLARE_HYDROGEN_ACCESSOR 2391 #undef DECLARE_HYDROGEN_ACCESSOR
2392 #undef DECLARE_CONCRETE_INSTRUCTION 2392 #undef DECLARE_CONCRETE_INSTRUCTION
2393 2393
2394 } } // namespace v8::internal 2394 } } // namespace v8::internal
2395 2395
2396 #endif // V8_IA32_LITHIUM_IA32_H_ 2396 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698