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

Side by Side Diff: src/ia32/lithium-ia32.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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 V(InvokeFunction) \ 110 V(InvokeFunction) \
111 V(IsConstructCallAndBranch) \ 111 V(IsConstructCallAndBranch) \
112 V(IsNilAndBranch) \ 112 V(IsNilAndBranch) \
113 V(IsObjectAndBranch) \ 113 V(IsObjectAndBranch) \
114 V(IsStringAndBranch) \ 114 V(IsStringAndBranch) \
115 V(IsSmiAndBranch) \ 115 V(IsSmiAndBranch) \
116 V(IsUndetectableAndBranch) \ 116 V(IsUndetectableAndBranch) \
117 V(Label) \ 117 V(Label) \
118 V(LazyBailout) \ 118 V(LazyBailout) \
119 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
120 V(LoadElements) \
121 V(LoadExternalArrayPointer) \ 120 V(LoadExternalArrayPointer) \
122 V(LoadFunctionPrototype) \ 121 V(LoadFunctionPrototype) \
123 V(LoadGlobalCell) \ 122 V(LoadGlobalCell) \
124 V(LoadGlobalGeneric) \ 123 V(LoadGlobalGeneric) \
125 V(LoadKeyed) \ 124 V(LoadKeyed) \
126 V(LoadKeyedGeneric) \ 125 V(LoadKeyedGeneric) \
127 V(LoadNamedField) \ 126 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \ 127 V(LoadNamedFieldPolymorphic) \
129 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
130 V(MapEnumLength) \ 129 V(MapEnumLength) \
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 } 1544 }
1546 1545
1547 LOperand* function() { return inputs_[0]; } 1546 LOperand* function() { return inputs_[0]; }
1548 LOperand* temp() { return temps_[0]; } 1547 LOperand* temp() { return temps_[0]; }
1549 1548
1550 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1549 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1551 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1550 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1552 }; 1551 };
1553 1552
1554 1553
1555 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1556 public:
1557 explicit LLoadElements(LOperand* object) {
1558 inputs_[0] = object;
1559 }
1560
1561 LOperand* object() { return inputs_[0]; }
1562
1563 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1564 };
1565
1566
1567 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { 1554 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1568 public: 1555 public:
1569 explicit LLoadExternalArrayPointer(LOperand* object) { 1556 explicit LLoadExternalArrayPointer(LOperand* object) {
1570 inputs_[0] = object; 1557 inputs_[0] = object;
1571 } 1558 }
1572 1559
1573 LOperand* object() { return inputs_[0]; } 1560 LOperand* object() { return inputs_[0]; }
1574 1561
1575 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1562 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1576 "load-external-array-pointer") 1563 "load-external-array-pointer")
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 2979
2993 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2980 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2994 }; 2981 };
2995 2982
2996 #undef DECLARE_HYDROGEN_ACCESSOR 2983 #undef DECLARE_HYDROGEN_ACCESSOR
2997 #undef DECLARE_CONCRETE_INSTRUCTION 2984 #undef DECLARE_CONCRETE_INSTRUCTION
2998 2985
2999 } } // namespace v8::internal 2986 } } // namespace v8::internal
3000 2987
3001 #endif // V8_IA32_LITHIUM_IA32_H_ 2988 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« .gitignore ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698