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

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

Issue 23601038: Add HLoadRoot hydrogen instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(IsNumberAndBranch) \ 117 V(IsNumberAndBranch) \
118 V(IsUndetectableAndBranch) \ 118 V(IsUndetectableAndBranch) \
119 V(Label) \ 119 V(Label) \
120 V(LazyBailout) \ 120 V(LazyBailout) \
121 V(LoadContextSlot) \ 121 V(LoadContextSlot) \
122 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
123 V(LoadRoot) \
123 V(LoadFieldByIndex) \ 124 V(LoadFieldByIndex) \
124 V(LoadFunctionPrototype) \ 125 V(LoadFunctionPrototype) \
125 V(LoadGlobalCell) \ 126 V(LoadGlobalCell) \
126 V(LoadGlobalGeneric) \ 127 V(LoadGlobalGeneric) \
127 V(LoadKeyed) \ 128 V(LoadKeyed) \
128 V(LoadKeyedGeneric) \ 129 V(LoadKeyedGeneric) \
129 V(LoadNamedField) \ 130 V(LoadNamedField) \
130 V(LoadNamedGeneric) \ 131 V(LoadNamedGeneric) \
131 V(MapEnumLength) \ 132 V(MapEnumLength) \
132 V(MathAbs) \ 133 V(MathAbs) \
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 inputs_[0] = function; 1529 inputs_[0] = function;
1529 } 1530 }
1530 1531
1531 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1532 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1532 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1533 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1533 1534
1534 LOperand* function() { return inputs_[0]; } 1535 LOperand* function() { return inputs_[0]; }
1535 }; 1536 };
1536 1537
1537 1538
1539 class LLoadRoot V8_FINAL : public LTemplateInstruction<1, 0, 0> {
1540 public:
1541 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1542 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1543
1544 Heap::RootListIndex index() const { return hydrogen()->index(); }
1545 };
1546
1547
1538 class LLoadExternalArrayPointer V8_FINAL 1548 class LLoadExternalArrayPointer V8_FINAL
1539 : public LTemplateInstruction<1, 1, 0> { 1549 : public LTemplateInstruction<1, 1, 0> {
1540 public: 1550 public:
1541 explicit LLoadExternalArrayPointer(LOperand* object) { 1551 explicit LLoadExternalArrayPointer(LOperand* object) {
1542 inputs_[0] = object; 1552 inputs_[0] = object;
1543 } 1553 }
1544 1554
1545 LOperand* object() { return inputs_[0]; } 1555 LOperand* object() { return inputs_[0]; }
1546 1556
1547 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1557 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 2729
2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2730 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2721 }; 2731 };
2722 2732
2723 #undef DECLARE_HYDROGEN_ACCESSOR 2733 #undef DECLARE_HYDROGEN_ACCESSOR
2724 #undef DECLARE_CONCRETE_INSTRUCTION 2734 #undef DECLARE_CONCRETE_INSTRUCTION
2725 2735
2726 } } // namespace v8::int 2736 } } // namespace v8::int
2727 2737
2728 #endif // V8_X64_LITHIUM_X64_H_ 2738 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698