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/mips/lithium-mips.h

Issue 22255005: MIPS: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 V(LazyBailout) \ 119 V(LazyBailout) \
120 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
121 V(LoadExternalArrayPointer) \ 121 V(LoadExternalArrayPointer) \
122 V(LoadFieldByIndex) \ 122 V(LoadFieldByIndex) \
123 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
124 V(LoadGlobalCell) \ 124 V(LoadGlobalCell) \
125 V(LoadGlobalGeneric) \ 125 V(LoadGlobalGeneric) \
126 V(LoadKeyed) \ 126 V(LoadKeyed) \
127 V(LoadKeyedGeneric) \ 127 V(LoadKeyedGeneric) \
128 V(LoadNamedField) \ 128 V(LoadNamedField) \
129 V(LoadNamedFieldPolymorphic) \
130 V(LoadNamedGeneric) \ 129 V(LoadNamedGeneric) \
131 V(MapEnumLength) \ 130 V(MapEnumLength) \
132 V(MathAbs) \ 131 V(MathAbs) \
133 V(MathCos) \ 132 V(MathCos) \
134 V(MathExp) \ 133 V(MathExp) \
135 V(MathFloor) \ 134 V(MathFloor) \
136 V(MathFloorOfDiv) \ 135 V(MathFloorOfDiv) \
137 V(MathLog) \ 136 V(MathLog) \
138 V(MathMinMax) \ 137 V(MathMinMax) \
139 V(MathPowHalf) \ 138 V(MathPowHalf) \
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 inputs_[0] = object; 1497 inputs_[0] = object;
1499 } 1498 }
1500 1499
1501 LOperand* object() { return inputs_[0]; } 1500 LOperand* object() { return inputs_[0]; }
1502 1501
1503 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1502 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1504 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1503 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1505 }; 1504 };
1506 1505
1507 1506
1508 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> {
1509 public:
1510 explicit LLoadNamedFieldPolymorphic(LOperand* object) {
1511 inputs_[0] = object;
1512 }
1513
1514 LOperand* object() { return inputs_[0]; }
1515
1516 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
1517 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
1518 };
1519
1520
1521 class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> { 1507 class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> {
1522 public: 1508 public:
1523 explicit LLoadNamedGeneric(LOperand* object) { 1509 explicit LLoadNamedGeneric(LOperand* object) {
1524 inputs_[0] = object; 1510 inputs_[0] = object;
1525 } 1511 }
1526 1512
1527 LOperand* object() { return inputs_[0]; } 1513 LOperand* object() { return inputs_[0]; }
1528 1514
1529 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") 1515 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1530 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) 1516 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 2721
2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2737 }; 2723 };
2738 2724
2739 #undef DECLARE_HYDROGEN_ACCESSOR 2725 #undef DECLARE_HYDROGEN_ACCESSOR
2740 #undef DECLARE_CONCRETE_INSTRUCTION 2726 #undef DECLARE_CONCRETE_INSTRUCTION
2741 2727
2742 } } // namespace v8::internal 2728 } } // namespace v8::internal
2743 2729
2744 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2730 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « 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