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

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

Issue 143633007: A64: Synchronize with r18764. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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/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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 V(Return) \ 152 V(Return) \
153 V(SeqStringGetChar) \ 153 V(SeqStringGetChar) \
154 V(SeqStringSetChar) \ 154 V(SeqStringSetChar) \
155 V(ShiftI) \ 155 V(ShiftI) \
156 V(SmiTag) \ 156 V(SmiTag) \
157 V(SmiUntag) \ 157 V(SmiUntag) \
158 V(StackCheck) \ 158 V(StackCheck) \
159 V(StoreCodeEntry) \ 159 V(StoreCodeEntry) \
160 V(StoreContextSlot) \ 160 V(StoreContextSlot) \
161 V(StoreGlobalCell) \ 161 V(StoreGlobalCell) \
162 V(StoreGlobalGeneric) \
163 V(StoreKeyed) \ 162 V(StoreKeyed) \
164 V(StoreKeyedGeneric) \ 163 V(StoreKeyedGeneric) \
165 V(StoreNamedField) \ 164 V(StoreNamedField) \
166 V(StoreNamedGeneric) \ 165 V(StoreNamedGeneric) \
167 V(StringAdd) \ 166 V(StringAdd) \
168 V(StringCharCodeAt) \ 167 V(StringCharCodeAt) \
169 V(StringCharFromCode) \ 168 V(StringCharFromCode) \
170 V(StringCompareAndBranch) \ 169 V(StringCompareAndBranch) \
171 V(SubI) \ 170 V(SubI) \
172 V(TaggedToI) \ 171 V(TaggedToI) \
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 } 1567 }
1569 1568
1570 LOperand* elements() { return inputs_[0]; } 1569 LOperand* elements() { return inputs_[0]; }
1571 LOperand* key() { return inputs_[1]; } 1570 LOperand* key() { return inputs_[1]; }
1572 ElementsKind elements_kind() const { 1571 ElementsKind elements_kind() const {
1573 return hydrogen()->elements_kind(); 1572 return hydrogen()->elements_kind();
1574 } 1573 }
1575 bool is_external() const { 1574 bool is_external() const {
1576 return hydrogen()->is_external(); 1575 return hydrogen()->is_external();
1577 } 1576 }
1577 bool is_fixed_typed_array() const {
1578 return hydrogen()->is_fixed_typed_array();
1579 }
1580 bool is_typed_elements() const {
1581 return is_external() || is_fixed_typed_array();
1582 }
1578 1583
1579 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1584 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1580 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1585 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1581 1586
1582 virtual void PrintDataTo(StringStream* stream); 1587 virtual void PrintDataTo(StringStream* stream);
1583 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1588 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1584 }; 1589 };
1585 1590
1586 1591
1587 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1592 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 } 1638 }
1634 1639
1635 LOperand* value() { return inputs_[0]; } 1640 LOperand* value() { return inputs_[0]; }
1636 LOperand* temp() { return temps_[0]; } 1641 LOperand* temp() { return temps_[0]; }
1637 1642
1638 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") 1643 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1639 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) 1644 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1640 }; 1645 };
1641 1646
1642 1647
1643 class LStoreGlobalGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> {
1644 public:
1645 LStoreGlobalGeneric(LOperand* context,
1646 LOperand* global_object,
1647 LOperand* value) {
1648 inputs_[0] = context;
1649 inputs_[1] = global_object;
1650 inputs_[2] = value;
1651 }
1652
1653 LOperand* context() { return inputs_[0]; }
1654 LOperand* global_object() { return inputs_[1]; }
1655 LOperand* value() { return inputs_[2]; }
1656
1657 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1658 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1659
1660 Handle<Object> name() const { return hydrogen()->name(); }
1661 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1662 };
1663
1664
1665 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1648 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1666 public: 1649 public:
1667 explicit LLoadContextSlot(LOperand* context) { 1650 explicit LLoadContextSlot(LOperand* context) {
1668 inputs_[0] = context; 1651 inputs_[0] = context;
1669 } 1652 }
1670 1653
1671 LOperand* context() { return inputs_[0]; } 1654 LOperand* context() { return inputs_[0]; }
1672 1655
1673 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1656 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1674 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1657 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 2183
2201 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { 2184 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> {
2202 public: 2185 public:
2203 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2186 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2204 inputs_[0] = object; 2187 inputs_[0] = object;
2205 inputs_[1] = key; 2188 inputs_[1] = key;
2206 inputs_[2] = value; 2189 inputs_[2] = value;
2207 } 2190 }
2208 2191
2209 bool is_external() const { return hydrogen()->is_external(); } 2192 bool is_external() const { return hydrogen()->is_external(); }
2193 bool is_fixed_typed_array() const {
2194 return hydrogen()->is_fixed_typed_array();
2195 }
2196 bool is_typed_elements() const {
2197 return is_external() || is_fixed_typed_array();
2198 }
2210 LOperand* elements() { return inputs_[0]; } 2199 LOperand* elements() { return inputs_[0]; }
2211 LOperand* key() { return inputs_[1]; } 2200 LOperand* key() { return inputs_[1]; }
2212 LOperand* value() { return inputs_[2]; } 2201 LOperand* value() { return inputs_[2]; }
2213 ElementsKind elements_kind() const { 2202 ElementsKind elements_kind() const {
2214 return hydrogen()->elements_kind(); 2203 return hydrogen()->elements_kind();
2215 } 2204 }
2216 2205
2217 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2206 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2218 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2207 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2219 2208
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2806 2795
2807 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2796 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2808 }; 2797 };
2809 2798
2810 #undef DECLARE_HYDROGEN_ACCESSOR 2799 #undef DECLARE_HYDROGEN_ACCESSOR
2811 #undef DECLARE_CONCRETE_INSTRUCTION 2800 #undef DECLARE_CONCRETE_INSTRUCTION
2812 2801
2813 } } // namespace v8::internal 2802 } } // namespace v8::internal
2814 2803
2815 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2804 #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