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

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

Issue 24134004: MIPS: Add HLoadRoot hydrogen instruction. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 3 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
« 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 V(InvokeFunction) \ 112 V(InvokeFunction) \
113 V(IsConstructCallAndBranch) \ 113 V(IsConstructCallAndBranch) \
114 V(IsObjectAndBranch) \ 114 V(IsObjectAndBranch) \
115 V(IsStringAndBranch) \ 115 V(IsStringAndBranch) \
116 V(IsSmiAndBranch) \ 116 V(IsSmiAndBranch) \
117 V(IsUndetectableAndBranch) \ 117 V(IsUndetectableAndBranch) \
118 V(Label) \ 118 V(Label) \
119 V(LazyBailout) \ 119 V(LazyBailout) \
120 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
121 V(LoadExternalArrayPointer) \ 121 V(LoadExternalArrayPointer) \
122 V(LoadRoot) \
122 V(LoadFieldByIndex) \ 123 V(LoadFieldByIndex) \
123 V(LoadFunctionPrototype) \ 124 V(LoadFunctionPrototype) \
124 V(LoadGlobalCell) \ 125 V(LoadGlobalCell) \
125 V(LoadGlobalGeneric) \ 126 V(LoadGlobalGeneric) \
126 V(LoadKeyed) \ 127 V(LoadKeyed) \
127 V(LoadKeyedGeneric) \ 128 V(LoadKeyedGeneric) \
128 V(LoadNamedField) \ 129 V(LoadNamedField) \
129 V(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
130 V(MapEnumLength) \ 131 V(MapEnumLength) \
131 V(MathAbs) \ 132 V(MathAbs) \
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 inputs_[0] = function; 1553 inputs_[0] = function;
1553 } 1554 }
1554 1555
1555 LOperand* function() { return inputs_[0]; } 1556 LOperand* function() { return inputs_[0]; }
1556 1557
1557 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1558 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1558 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1559 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1559 }; 1560 };
1560 1561
1561 1562
1563 class LLoadRoot V8_FINAL : public LTemplateInstruction<1, 0, 0> {
1564 public:
1565 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1566 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1567
1568 Heap::RootListIndex index() const { return hydrogen()->index(); }
1569 };
1570
1571
1562 class LLoadExternalArrayPointer V8_FINAL 1572 class LLoadExternalArrayPointer V8_FINAL
1563 : public LTemplateInstruction<1, 1, 0> { 1573 : public LTemplateInstruction<1, 1, 0> {
1564 public: 1574 public:
1565 explicit LLoadExternalArrayPointer(LOperand* object) { 1575 explicit LLoadExternalArrayPointer(LOperand* object) {
1566 inputs_[0] = object; 1576 inputs_[0] = object;
1567 } 1577 }
1568 1578
1569 LOperand* object() { return inputs_[0]; } 1579 LOperand* object() { return inputs_[0]; }
1570 1580
1571 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1581 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 2767
2758 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2768 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2759 }; 2769 };
2760 2770
2761 #undef DECLARE_HYDROGEN_ACCESSOR 2771 #undef DECLARE_HYDROGEN_ACCESSOR
2762 #undef DECLARE_CONCRETE_INSTRUCTION 2772 #undef DECLARE_CONCRETE_INSTRUCTION
2763 2773
2764 } } // namespace v8::internal 2774 } } // namespace v8::internal
2765 2775
2766 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2776 #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