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

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

Issue 14556020: Remove HLoadElements instruction and replace with use of more general HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 V(InvokeFunction) \ 115 V(InvokeFunction) \
116 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
117 V(IsNilAndBranch) \ 117 V(IsNilAndBranch) \
118 V(IsObjectAndBranch) \ 118 V(IsObjectAndBranch) \
119 V(IsStringAndBranch) \ 119 V(IsStringAndBranch) \
120 V(IsSmiAndBranch) \ 120 V(IsSmiAndBranch) \
121 V(IsUndetectableAndBranch) \ 121 V(IsUndetectableAndBranch) \
122 V(Label) \ 122 V(Label) \
123 V(LazyBailout) \ 123 V(LazyBailout) \
124 V(LoadContextSlot) \ 124 V(LoadContextSlot) \
125 V(LoadElements) \
126 V(LoadExternalArrayPointer) \ 125 V(LoadExternalArrayPointer) \
127 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
128 V(LoadGlobalCell) \ 127 V(LoadGlobalCell) \
129 V(LoadGlobalGeneric) \ 128 V(LoadGlobalGeneric) \
130 V(LoadKeyed) \ 129 V(LoadKeyed) \
131 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
132 V(LoadNamedField) \ 131 V(LoadNamedField) \
133 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
134 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
135 V(MapEnumLength) \ 134 V(MapEnumLength) \
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 inputs_[0] = function; 1566 inputs_[0] = function;
1568 } 1567 }
1569 1568
1570 LOperand* function() { return inputs_[0]; } 1569 LOperand* function() { return inputs_[0]; }
1571 1570
1572 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1571 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1573 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1572 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1574 }; 1573 };
1575 1574
1576 1575
1577 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1578 public:
1579 explicit LLoadElements(LOperand* object) {
1580 inputs_[0] = object;
1581 }
1582
1583 LOperand* object() { return inputs_[0]; }
1584
1585 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1586 };
1587
1588
1589 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { 1576 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1590 public: 1577 public:
1591 explicit LLoadExternalArrayPointer(LOperand* object) { 1578 explicit LLoadExternalArrayPointer(LOperand* object) {
1592 inputs_[0] = object; 1579 inputs_[0] = object;
1593 } 1580 }
1594 1581
1595 LOperand* object() { return inputs_[0]; } 1582 LOperand* object() { return inputs_[0]; }
1596 1583
1597 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1584 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1598 "load-external-array-pointer") 1585 "load-external-array-pointer")
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 2848
2862 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2849 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2863 }; 2850 };
2864 2851
2865 #undef DECLARE_HYDROGEN_ACCESSOR 2852 #undef DECLARE_HYDROGEN_ACCESSOR
2866 #undef DECLARE_CONCRETE_INSTRUCTION 2853 #undef DECLARE_CONCRETE_INSTRUCTION
2867 2854
2868 } } // namespace v8::internal 2855 } } // namespace v8::internal
2869 2856
2870 #endif // V8_ARM_LITHIUM_ARM_H_ 2857 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« .gitignore ('K') | « .gitignore ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698