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

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

Issue 22213002: Replace LoadNamedFieldPolymorphic with explicit branches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | src/arm/lithium-arm.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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 V(LazyBailout) \ 120 V(LazyBailout) \
121 V(LoadContextSlot) \ 121 V(LoadContextSlot) \
122 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
123 V(LoadFieldByIndex) \ 123 V(LoadFieldByIndex) \
124 V(LoadFunctionPrototype) \ 124 V(LoadFunctionPrototype) \
125 V(LoadGlobalCell) \ 125 V(LoadGlobalCell) \
126 V(LoadGlobalGeneric) \ 126 V(LoadGlobalGeneric) \
127 V(LoadKeyed) \ 127 V(LoadKeyed) \
128 V(LoadKeyedGeneric) \ 128 V(LoadKeyedGeneric) \
129 V(LoadNamedField) \ 129 V(LoadNamedField) \
130 V(LoadNamedFieldPolymorphic) \
131 V(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
132 V(MapEnumLength) \ 131 V(MapEnumLength) \
133 V(MathAbs) \ 132 V(MathAbs) \
134 V(MathCos) \ 133 V(MathCos) \
135 V(MathExp) \ 134 V(MathExp) \
136 V(MathFloor) \ 135 V(MathFloor) \
137 V(MathFloorOfDiv) \ 136 V(MathFloorOfDiv) \
138 V(MathLog) \ 137 V(MathLog) \
139 V(MathMinMax) \ 138 V(MathMinMax) \
140 V(MathPowHalf) \ 139 V(MathPowHalf) \
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 inputs_[0] = object; 1516 inputs_[0] = object;
1518 } 1517 }
1519 1518
1520 LOperand* object() { return inputs_[0]; } 1519 LOperand* object() { return inputs_[0]; }
1521 1520
1522 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1521 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1523 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1522 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1524 }; 1523 };
1525 1524
1526 1525
1527 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> {
1528 public:
1529 explicit LLoadNamedFieldPolymorphic(LOperand* object) {
1530 inputs_[0] = object;
1531 }
1532
1533 LOperand* object() { return inputs_[0]; }
1534
1535 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
1536 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
1537 };
1538
1539
1540 class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> { 1526 class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> {
1541 public: 1527 public:
1542 explicit LLoadNamedGeneric(LOperand* object) { 1528 explicit LLoadNamedGeneric(LOperand* object) {
1543 inputs_[0] = object; 1529 inputs_[0] = object;
1544 } 1530 }
1545 1531
1546 LOperand* object() { return inputs_[0]; } 1532 LOperand* object() { return inputs_[0]; }
1547 1533
1548 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") 1534 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1549 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) 1535 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2758 2744
2759 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2745 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2760 }; 2746 };
2761 2747
2762 #undef DECLARE_HYDROGEN_ACCESSOR 2748 #undef DECLARE_HYDROGEN_ACCESSOR
2763 #undef DECLARE_CONCRETE_INSTRUCTION 2749 #undef DECLARE_CONCRETE_INSTRUCTION
2764 2750
2765 } } // namespace v8::internal 2751 } } // namespace v8::internal
2766 2752
2767 #endif // V8_ARM_LITHIUM_ARM_H_ 2753 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698