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

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

Issue 186673004: MIPS: Push safepoint registers in deferred number-to-i/u only on-demand. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 9 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 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 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 inputs_[0] = value; 1907 inputs_[0] = value;
1908 } 1908 }
1909 1909
1910 LOperand* value() { return inputs_[0]; } 1910 LOperand* value() { return inputs_[0]; }
1911 1911
1912 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") 1912 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
1913 DECLARE_HYDROGEN_ACCESSOR(Change) 1913 DECLARE_HYDROGEN_ACCESSOR(Change)
1914 }; 1914 };
1915 1915
1916 1916
1917 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1917 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 2> {
1918 public: 1918 public:
1919 explicit LNumberTagI(LOperand* value) { 1919 LNumberTagI(LOperand* value, LOperand* temp1, LOperand* temp2) {
1920 inputs_[0] = value; 1920 inputs_[0] = value;
1921 temps_[0] = temp1;
1922 temps_[1] = temp2;
1921 } 1923 }
1922 1924
1923 LOperand* value() { return inputs_[0]; } 1925 LOperand* value() { return inputs_[0]; }
1926 LOperand* temp1() { return temps_[0]; }
1927 LOperand* temp2() { return temps_[1]; }
1924 1928
1925 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 1929 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1926 }; 1930 };
1927 1931
1928 1932
1929 class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1933 class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 2> {
1930 public: 1934 public:
1931 explicit LNumberTagU(LOperand* value) { 1935 LNumberTagU(LOperand* value, LOperand* temp1, LOperand* temp2) {
1932 inputs_[0] = value; 1936 inputs_[0] = value;
1937 temps_[0] = temp1;
1938 temps_[1] = temp2;
1933 } 1939 }
1934 1940
1935 LOperand* value() { return inputs_[0]; } 1941 LOperand* value() { return inputs_[0]; }
1942 LOperand* temp1() { return temps_[0]; }
1943 LOperand* temp2() { return temps_[1]; }
1936 1944
1937 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u") 1945 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u")
1938 }; 1946 };
1939 1947
1940 1948
1941 class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 2> { 1949 class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 2> {
1942 public: 1950 public:
1943 LNumberTagD(LOperand* value, LOperand* temp, LOperand* temp2) { 1951 LNumberTagD(LOperand* value, LOperand* temp, LOperand* temp2) {
1944 inputs_[0] = value; 1952 inputs_[0] = value;
1945 temps_[0] = temp; 1953 temps_[0] = temp;
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2708 2716
2709 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2717 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2710 }; 2718 };
2711 2719
2712 #undef DECLARE_HYDROGEN_ACCESSOR 2720 #undef DECLARE_HYDROGEN_ACCESSOR
2713 #undef DECLARE_CONCRETE_INSTRUCTION 2721 #undef DECLARE_CONCRETE_INSTRUCTION
2714 2722
2715 } } // namespace v8::internal 2723 } } // namespace v8::internal
2716 2724
2717 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2725 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698