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

Side by Side Diff: src/mips/lithium-mips.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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 inputs_[0] = function; 1513 inputs_[0] = function;
1515 } 1514 }
1516 1515
1517 LOperand* function() { return inputs_[0]; } 1516 LOperand* function() { return inputs_[0]; }
1518 1517
1519 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1518 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1520 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1519 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1521 }; 1520 };
1522 1521
1523 1522
1524 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1525 public:
1526 explicit LLoadElements(LOperand* object) {
1527 inputs_[0] = object;
1528 }
1529
1530 LOperand* object() { return inputs_[0]; }
1531
1532 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1533 };
1534
1535
1536 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { 1523 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1537 public: 1524 public:
1538 explicit LLoadExternalArrayPointer(LOperand* object) { 1525 explicit LLoadExternalArrayPointer(LOperand* object) {
1539 inputs_[0] = object; 1526 inputs_[0] = object;
1540 } 1527 }
1541 1528
1542 LOperand* object() { return inputs_[0]; } 1529 LOperand* object() { return inputs_[0]; }
1543 1530
1544 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1531 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1545 "load-external-array-pointer") 1532 "load-external-array-pointer")
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2784
2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2785 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2799 }; 2786 };
2800 2787
2801 #undef DECLARE_HYDROGEN_ACCESSOR 2788 #undef DECLARE_HYDROGEN_ACCESSOR
2802 #undef DECLARE_CONCRETE_INSTRUCTION 2789 #undef DECLARE_CONCRETE_INSTRUCTION
2803 2790
2804 } } // namespace v8::internal 2791 } } // namespace v8::internal
2805 2792
2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2793 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« .gitignore ('K') | « 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