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/ia32/lithium-ia32.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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 V(LazyBailout) \ 121 V(LazyBailout) \
122 V(LoadContextSlot) \ 122 V(LoadContextSlot) \
123 V(LoadExternalArrayPointer) \ 123 V(LoadExternalArrayPointer) \
124 V(LoadFieldByIndex) \ 124 V(LoadFieldByIndex) \
125 V(LoadFunctionPrototype) \ 125 V(LoadFunctionPrototype) \
126 V(LoadGlobalCell) \ 126 V(LoadGlobalCell) \
127 V(LoadGlobalGeneric) \ 127 V(LoadGlobalGeneric) \
128 V(LoadKeyed) \ 128 V(LoadKeyed) \
129 V(LoadKeyedGeneric) \ 129 V(LoadKeyedGeneric) \
130 V(LoadNamedField) \ 130 V(LoadNamedField) \
131 V(LoadNamedFieldPolymorphic) \
132 V(LoadNamedGeneric) \ 131 V(LoadNamedGeneric) \
133 V(MapEnumLength) \ 132 V(MapEnumLength) \
134 V(MathAbs) \ 133 V(MathAbs) \
135 V(MathCos) \ 134 V(MathCos) \
136 V(MathExp) \ 135 V(MathExp) \
137 V(MathFloor) \ 136 V(MathFloor) \
138 V(MathFloorOfDiv) \ 137 V(MathFloorOfDiv) \
139 V(MathLog) \ 138 V(MathLog) \
140 V(MathMinMax) \ 139 V(MathMinMax) \
141 V(MathPowHalf) \ 140 V(MathPowHalf) \
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 !hydrogen()->representation().IsDouble(); 1514 !hydrogen()->representation().IsDouble();
1516 } 1515 }
1517 1516
1518 LOperand* object() { return inputs_[0]; } 1517 LOperand* object() { return inputs_[0]; }
1519 1518
1520 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1519 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1521 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1520 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1522 }; 1521 };
1523 1522
1524 1523
1525 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> {
1526 public:
1527 LLoadNamedFieldPolymorphic(LOperand* context, LOperand* object) {
1528 inputs_[0] = context;
1529 inputs_[1] = object;
1530 }
1531
1532 LOperand* context() { return inputs_[0]; }
1533 LOperand* object() { return inputs_[1]; }
1534
1535 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
1536 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
1537 };
1538
1539
1540 class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> { 1524 class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
1541 public: 1525 public:
1542 LLoadNamedGeneric(LOperand* context, LOperand* object) { 1526 LLoadNamedGeneric(LOperand* context, LOperand* object) {
1543 inputs_[0] = context; 1527 inputs_[0] = context;
1544 inputs_[1] = object; 1528 inputs_[1] = object;
1545 } 1529 }
1546 1530
1547 LOperand* context() { return inputs_[0]; } 1531 LOperand* context() { return inputs_[0]; }
1548 LOperand* object() { return inputs_[1]; } 1532 LOperand* object() { return inputs_[1]; }
1549 1533
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2899 2883
2900 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2884 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2901 }; 2885 };
2902 2886
2903 #undef DECLARE_HYDROGEN_ACCESSOR 2887 #undef DECLARE_HYDROGEN_ACCESSOR
2904 #undef DECLARE_CONCRETE_INSTRUCTION 2888 #undef DECLARE_CONCRETE_INSTRUCTION
2905 2889
2906 } } // namespace v8::internal 2890 } } // namespace v8::internal
2907 2891
2908 #endif // V8_IA32_LITHIUM_IA32_H_ 2892 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « 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