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

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

Issue 146213004: A64: Synchronize with r16849. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 V(InstanceOfKnownGlobal) \ 107 V(InstanceOfKnownGlobal) \
108 V(InstanceSize) \ 108 V(InstanceSize) \
109 V(InstructionGap) \ 109 V(InstructionGap) \
110 V(Integer32ToDouble) \ 110 V(Integer32ToDouble) \
111 V(Integer32ToSmi) \ 111 V(Integer32ToSmi) \
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(IsNumberAndBranch) \
118 V(IsUndetectableAndBranch) \ 117 V(IsUndetectableAndBranch) \
119 V(Label) \ 118 V(Label) \
120 V(LazyBailout) \ 119 V(LazyBailout) \
121 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
122 V(LoadExternalArrayPointer) \ 121 V(LoadExternalArrayPointer) \
122 V(LoadRoot) \
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(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
131 V(MapEnumLength) \ 131 V(MapEnumLength) \
132 V(MathAbs) \ 132 V(MathAbs) \
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 876
877 LOperand* value() { return inputs_[0]; } 877 LOperand* value() { return inputs_[0]; }
878 878
879 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 879 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
880 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 880 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
881 881
882 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 882 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
883 }; 883 };
884 884
885 885
886 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> {
887 public:
888 explicit LIsNumberAndBranch(LOperand* value) {
889 inputs_[0] = value;
890 }
891
892 LOperand* value() { return inputs_[0]; }
893
894 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
895 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
896 };
897
898
899 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { 886 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> {
900 public: 887 public:
901 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 888 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
902 inputs_[0] = value; 889 inputs_[0] = value;
903 temps_[0] = temp; 890 temps_[0] = temp;
904 } 891 }
905 892
906 LOperand* value() { return inputs_[0]; } 893 LOperand* value() { return inputs_[0]; }
907 LOperand* temp() { return temps_[0]; } 894 LOperand* temp() { return temps_[0]; }
908 895
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 public: 1239 public:
1253 explicit LCmpMapAndBranch(LOperand* value) { 1240 explicit LCmpMapAndBranch(LOperand* value) {
1254 inputs_[0] = value; 1241 inputs_[0] = value;
1255 } 1242 }
1256 1243
1257 LOperand* value() { return inputs_[0]; } 1244 LOperand* value() { return inputs_[0]; }
1258 1245
1259 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1246 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1260 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1247 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1261 1248
1262 Handle<Map> map() const { return hydrogen()->map(); } 1249 Handle<Map> map() const { return hydrogen()->map().handle(); }
1263 }; 1250 };
1264 1251
1265 1252
1266 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1253 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1267 public: 1254 public:
1268 explicit LMapEnumLength(LOperand* value) { 1255 explicit LMapEnumLength(LOperand* value) {
1269 inputs_[0] = value; 1256 inputs_[0] = value;
1270 } 1257 }
1271 1258
1272 LOperand* value() { return inputs_[0]; } 1259 LOperand* value() { return inputs_[0]; }
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 inputs_[0] = function; 1515 inputs_[0] = function;
1529 } 1516 }
1530 1517
1531 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1518 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1532 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1519 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1533 1520
1534 LOperand* function() { return inputs_[0]; } 1521 LOperand* function() { return inputs_[0]; }
1535 }; 1522 };
1536 1523
1537 1524
1525 class LLoadRoot V8_FINAL : public LTemplateInstruction<1, 0, 0> {
1526 public:
1527 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1528 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1529
1530 Heap::RootListIndex index() const { return hydrogen()->index(); }
1531 };
1532
1533
1538 class LLoadExternalArrayPointer V8_FINAL 1534 class LLoadExternalArrayPointer V8_FINAL
1539 : public LTemplateInstruction<1, 1, 0> { 1535 : public LTemplateInstruction<1, 1, 0> {
1540 public: 1536 public:
1541 explicit LLoadExternalArrayPointer(LOperand* object) { 1537 explicit LLoadExternalArrayPointer(LOperand* object) {
1542 inputs_[0] = object; 1538 inputs_[0] = object;
1543 } 1539 }
1544 1540
1545 LOperand* object() { return inputs_[0]; } 1541 LOperand* object() { return inputs_[0]; }
1546 1542
1547 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1543 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 2715
2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2716 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2721 }; 2717 };
2722 2718
2723 #undef DECLARE_HYDROGEN_ACCESSOR 2719 #undef DECLARE_HYDROGEN_ACCESSOR
2724 #undef DECLARE_CONCRETE_INSTRUCTION 2720 #undef DECLARE_CONCRETE_INSTRUCTION
2725 2721
2726 } } // namespace v8::int 2722 } } // namespace v8::int
2727 2723
2728 #endif // V8_X64_LITHIUM_X64_H_ 2724 #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