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

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

Issue 9370019: Implement inlined object allocation in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Vyacheslav Egorov. 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-arm.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 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 inputs_[0] = value; 1916 inputs_[0] = value;
1917 temps_[0] = temp; 1917 temps_[0] = temp;
1918 } 1918 }
1919 1919
1920 LOperand* unclamped() { return inputs_[0]; } 1920 LOperand* unclamped() { return inputs_[0]; }
1921 1921
1922 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 1922 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
1923 }; 1923 };
1924 1924
1925 1925
1926 class LAllocateObject: public LTemplateInstruction<1, 0, 0> { 1926 class LAllocateObject: public LTemplateInstruction<1, 0, 2> {
1927 public: 1927 public:
1928 LAllocateObject(LOperand* temp1, LOperand* temp2) {
1929 temps_[0] = temp1;
1930 temps_[1] = temp2;
1931 }
1932
1928 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") 1933 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
1929 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) 1934 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
1930 }; 1935 };
1931 1936
1932 1937
1933 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { 1938 class LFastLiteral: public LTemplateInstruction<1, 0, 0> {
1934 public: 1939 public:
1935 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") 1940 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
1936 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) 1941 DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
1937 }; 1942 };
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 2350
2346 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2351 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2347 }; 2352 };
2348 2353
2349 #undef DECLARE_HYDROGEN_ACCESSOR 2354 #undef DECLARE_HYDROGEN_ACCESSOR
2350 #undef DECLARE_CONCRETE_INSTRUCTION 2355 #undef DECLARE_CONCRETE_INSTRUCTION
2351 2356
2352 } } // namespace v8::internal 2357 } } // namespace v8::internal
2353 2358
2354 #endif // V8_ARM_LITHIUM_ARM_H_ 2359 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698