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

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

Issue 6528013: Implement crankshaft support for pixel array stores. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 10 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 V(Return) \ 139 V(Return) \
140 V(ShiftI) \ 140 V(ShiftI) \
141 V(SmiTag) \ 141 V(SmiTag) \
142 V(SmiUntag) \ 142 V(SmiUntag) \
143 V(StackCheck) \ 143 V(StackCheck) \
144 V(StoreGlobal) \ 144 V(StoreGlobal) \
145 V(StoreKeyedFastElement) \ 145 V(StoreKeyedFastElement) \
146 V(StoreKeyedGeneric) \ 146 V(StoreKeyedGeneric) \
147 V(StoreNamedField) \ 147 V(StoreNamedField) \
148 V(StoreNamedGeneric) \ 148 V(StoreNamedGeneric) \
149 V(StorePixelArrayElement) \
149 V(StringLength) \ 150 V(StringLength) \
150 V(SubI) \ 151 V(SubI) \
151 V(TaggedToI) \ 152 V(TaggedToI) \
152 V(Throw) \ 153 V(Throw) \
153 V(Typeof) \ 154 V(Typeof) \
154 V(TypeofIs) \ 155 V(TypeofIs) \
155 V(TypeofIsAndBranch) \ 156 V(TypeofIsAndBranch) \
156 V(IsConstructCall) \ 157 V(IsConstructCall) \
157 V(IsConstructCallAndBranch) \ 158 V(IsConstructCallAndBranch) \
158 V(UnaryMathOperation) \ 159 V(UnaryMathOperation) \
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 public: 1536 public:
1536 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) 1537 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val)
1537 : LStoreKeyed(obj, key, val) {} 1538 : LStoreKeyed(obj, key, val) {}
1538 1539
1539 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement, 1540 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement,
1540 "store-keyed-fast-element") 1541 "store-keyed-fast-element")
1541 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1542 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1542 }; 1543 };
1543 1544
1544 1545
1546 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> {
1547 public:
1548 LStorePixelArrayElement(LOperand* external_pointer,
1549 LOperand* key,
1550 LOperand* val) {
1551 inputs_[0] = external_pointer;
1552 inputs_[1] = key;
1553 inputs_[2] = val;
1554 }
1555
1556 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement,
1557 "store-pixel-array-element")
1558 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement)
1559
1560 LOperand* external_pointer() { return inputs_[0]; }
1561 LOperand* key() { return inputs_[1]; }
1562 LOperand* value() { return inputs_[2]; }
1563 };
1564
1565
1545 class LStoreKeyedGeneric: public LStoreKeyed { 1566 class LStoreKeyedGeneric: public LStoreKeyed {
1546 public: 1567 public:
1547 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) 1568 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val)
1548 : LStoreKeyed(obj, key, val) { } 1569 : LStoreKeyed(obj, key, val) { }
1549 1570
1550 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1571 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1551 }; 1572 };
1552 1573
1553 1574
1554 class LStringLength: public LTemplateInstruction<1, 1, 0> { 1575 class LStringLength: public LTemplateInstruction<1, 1, 0> {
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1978 }; 1999 };
1979 2000
1980 #undef DECLARE_HYDROGEN_ACCESSOR 2001 #undef DECLARE_HYDROGEN_ACCESSOR
1981 #undef DECLARE_INSTRUCTION 2002 #undef DECLARE_INSTRUCTION
1982 #undef DECLARE_CONCRETE_INSTRUCTION 2003 #undef DECLARE_CONCRETE_INSTRUCTION
1983 2004
1984 } } // namespace v8::int 2005 } } // namespace v8::int
1985 2006
1986 #endif // V8_X64_LITHIUM_X64_H_ 2007 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698