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

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

Issue 9569008: MIPS: Implement inlined object allocation in Crankshaft. (Closed)
Patch Set: Created 8 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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 inputs_[0] = value; 1915 inputs_[0] = value;
1916 temps_[0] = temp; 1916 temps_[0] = temp;
1917 } 1917 }
1918 1918
1919 LOperand* unclamped() { return inputs_[0]; } 1919 LOperand* unclamped() { return inputs_[0]; }
1920 1920
1921 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 1921 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
1922 }; 1922 };
1923 1923
1924 1924
1925 class LAllocateObject: public LTemplateInstruction<1, 0, 0> { 1925 class LAllocateObject: public LTemplateInstruction<1, 0, 2> {
1926 public: 1926 public:
1927 LAllocateObject(LOperand* temp1, LOperand* temp2) {
1928 temps_[0] = temp1;
1929 temps_[1] = temp2;
1930 }
1931
1927 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") 1932 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
1928 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) 1933 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
1929 }; 1934 };
1930 1935
1931 1936
1932 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { 1937 class LFastLiteral: public LTemplateInstruction<1, 0, 0> {
1933 public: 1938 public:
1934 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") 1939 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
1935 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) 1940 DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
1936 }; 1941 };
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 2353
2349 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2354 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2350 }; 2355 };
2351 2356
2352 #undef DECLARE_HYDROGEN_ACCESSOR 2357 #undef DECLARE_HYDROGEN_ACCESSOR
2353 #undef DECLARE_CONCRETE_INSTRUCTION 2358 #undef DECLARE_CONCRETE_INSTRUCTION
2354 2359
2355 } } // namespace v8::internal 2360 } } // namespace v8::internal
2356 2361
2357 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2362 #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