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

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

Issue 21014003: Optionally use 31-bits SMI value for 64-bit system (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 temps_[0] = temp; 1919 temps_[0] = temp;
1920 } 1920 }
1921 1921
1922 LOperand* value() { return inputs_[0]; } 1922 LOperand* value() { return inputs_[0]; }
1923 LOperand* temp() { return temps_[0]; } 1923 LOperand* temp() { return temps_[0]; }
1924 1924
1925 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 1925 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
1926 }; 1926 };
1927 1927
1928 1928
1929 #if !V8_USE_31_BITS_SMI_VALUE
1929 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { 1930 class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
1930 public: 1931 public:
1931 explicit LNumberTagI(LOperand* value) { 1932 explicit LNumberTagI(LOperand* value) {
1932 inputs_[0] = value; 1933 inputs_[0] = value;
1933 } 1934 }
1934 1935
1935 LOperand* value() { return inputs_[0]; } 1936 LOperand* value() { return inputs_[0]; }
1936 1937
1937 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 1938 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1938 }; 1939 };
1940 #else
1941 class LNumberTagI: public LTemplateInstruction<1, 1, 1> {
1942 public:
1943 explicit LNumberTagI(LOperand* value, LOperand* temp) {
1944 inputs_[0] = value;
1945 temps_[0] = temp;
1946 }
1947
1948 LOperand* value() { return inputs_[0]; }
1949 LOperand* temp() { return temps_[0]; }
1950
1951 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1952 };
1953 #endif
1939 1954
1940 1955
1941 class LNumberTagU: public LTemplateInstruction<1, 1, 1> { 1956 class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
1942 public: 1957 public:
1943 explicit LNumberTagU(LOperand* value, LOperand* temp) { 1958 explicit LNumberTagU(LOperand* value, LOperand* temp) {
1944 inputs_[0] = value; 1959 inputs_[0] = value;
1945 temps_[0] = temp; 1960 temps_[0] = temp;
1946 } 1961 }
1947 1962
1948 LOperand* value() { return inputs_[0]; } 1963 LOperand* value() { return inputs_[0]; }
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 2721
2707 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2708 }; 2723 };
2709 2724
2710 #undef DECLARE_HYDROGEN_ACCESSOR 2725 #undef DECLARE_HYDROGEN_ACCESSOR
2711 #undef DECLARE_CONCRETE_INSTRUCTION 2726 #undef DECLARE_CONCRETE_INSTRUCTION
2712 2727
2713 } } // namespace v8::int 2728 } } // namespace v8::int
2714 2729
2715 #endif // V8_X64_LITHIUM_X64_H_ 2730 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698