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

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

Issue 132233012: Revert "Implement in-heap backing store for typed arrays." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 inputs_[0] = elements; 1533 inputs_[0] = elements;
1534 inputs_[1] = key; 1534 inputs_[1] = key;
1535 } 1535 }
1536 1536
1537 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1537 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1538 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1538 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1539 1539
1540 bool is_external() const { 1540 bool is_external() const {
1541 return hydrogen()->is_external(); 1541 return hydrogen()->is_external();
1542 } 1542 }
1543 bool is_fixed_typed_array() const {
1544 return hydrogen()->is_fixed_typed_array();
1545 }
1546 bool is_typed_elements() const {
1547 return is_external() || is_fixed_typed_array();
1548 }
1549 LOperand* elements() { return inputs_[0]; } 1543 LOperand* elements() { return inputs_[0]; }
1550 LOperand* key() { return inputs_[1]; } 1544 LOperand* key() { return inputs_[1]; }
1551 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1545 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1552 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1546 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1553 ElementsKind elements_kind() const { 1547 ElementsKind elements_kind() const {
1554 return hydrogen()->elements_kind(); 1548 return hydrogen()->elements_kind();
1555 } 1549 }
1556 }; 1550 };
1557 1551
1558 1552
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 2160
2167 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { 2161 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> {
2168 public: 2162 public:
2169 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2163 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2170 inputs_[0] = object; 2164 inputs_[0] = object;
2171 inputs_[1] = key; 2165 inputs_[1] = key;
2172 inputs_[2] = value; 2166 inputs_[2] = value;
2173 } 2167 }
2174 2168
2175 bool is_external() const { return hydrogen()->is_external(); } 2169 bool is_external() const { return hydrogen()->is_external(); }
2176 bool is_fixed_typed_array() const {
2177 return hydrogen()->is_fixed_typed_array();
2178 }
2179 bool is_typed_elements() const {
2180 return is_external() || is_fixed_typed_array();
2181 }
2182 LOperand* elements() { return inputs_[0]; } 2170 LOperand* elements() { return inputs_[0]; }
2183 LOperand* key() { return inputs_[1]; } 2171 LOperand* key() { return inputs_[1]; }
2184 LOperand* value() { return inputs_[2]; } 2172 LOperand* value() { return inputs_[2]; }
2185 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } 2173 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); }
2186 2174
2187 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2175 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2188 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2176 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2189 2177
2190 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2178 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2191 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2179 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 2762
2775 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2763 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2776 }; 2764 };
2777 2765
2778 #undef DECLARE_HYDROGEN_ACCESSOR 2766 #undef DECLARE_HYDROGEN_ACCESSOR
2779 #undef DECLARE_CONCRETE_INSTRUCTION 2767 #undef DECLARE_CONCRETE_INSTRUCTION
2780 2768
2781 } } // namespace v8::int 2769 } } // namespace v8::int
2782 2770
2783 #endif // V8_X64_LITHIUM_X64_H_ 2771 #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