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

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

Issue 6471025: X64: Add DoCallNamed, DoContext, DoCallGlobal, and DoLoadFunctionPrototype li... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 V(CmpID) \ 77 V(CmpID) \
78 V(CmpIDAndBranch) \ 78 V(CmpIDAndBranch) \
79 V(CmpJSObjectEq) \ 79 V(CmpJSObjectEq) \
80 V(CmpJSObjectEqAndBranch) \ 80 V(CmpJSObjectEqAndBranch) \
81 V(CmpMapAndBranch) \ 81 V(CmpMapAndBranch) \
82 V(CmpT) \ 82 V(CmpT) \
83 V(CmpTAndBranch) \ 83 V(CmpTAndBranch) \
84 V(ConstantD) \ 84 V(ConstantD) \
85 V(ConstantI) \ 85 V(ConstantI) \
86 V(ConstantT) \ 86 V(ConstantT) \
87 V(Context) \
87 V(DeleteProperty) \ 88 V(DeleteProperty) \
88 V(Deoptimize) \ 89 V(Deoptimize) \
89 V(DivI) \ 90 V(DivI) \
90 V(DoubleToI) \ 91 V(DoubleToI) \
91 V(FunctionLiteral) \ 92 V(FunctionLiteral) \
92 V(Gap) \ 93 V(Gap) \
93 V(GlobalObject) \ 94 V(GlobalObject) \
94 V(GlobalReceiver) \ 95 V(GlobalReceiver) \
95 V(Goto) \ 96 V(Goto) \
96 V(FixedArrayLength) \ 97 V(FixedArrayLength) \
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 1110 }
1110 1111
1111 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") 1112 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1112 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) 1113 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1113 1114
1114 LOperand* object() { return inputs_[0]; } 1115 LOperand* object() { return inputs_[0]; }
1115 Handle<Object> name() const { return hydrogen()->name(); } 1116 Handle<Object> name() const { return hydrogen()->name(); }
1116 }; 1117 };
1117 1118
1118 1119
1119 class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> { 1120 class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 0> {
1120 public: 1121 public:
1121 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { 1122 explicit LLoadFunctionPrototype(LOperand* function) {
1122 inputs_[0] = function; 1123 inputs_[0] = function;
1123 temps_[0] = temp;
1124 } 1124 }
1125 1125
1126 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1126 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1127 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1127 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1128 1128
1129 LOperand* function() { return inputs_[0]; } 1129 LOperand* function() { return inputs_[0]; }
1130 }; 1130 };
1131 1131
1132 1132
1133 class LLoadElements: public LTemplateInstruction<1, 1, 0> { 1133 class LLoadElements: public LTemplateInstruction<1, 1, 0> {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 class LPushArgument: public LTemplateInstruction<0, 1, 0> { 1207 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1208 public: 1208 public:
1209 explicit LPushArgument(LOperand* value) { 1209 explicit LPushArgument(LOperand* value) {
1210 inputs_[0] = value; 1210 inputs_[0] = value;
1211 } 1211 }
1212 1212
1213 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") 1213 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1214 }; 1214 };
1215 1215
1216 1216
1217 class LContext: public LTemplateInstruction<1, 0, 0> {
1218 public:
1219 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1220 };
1221
1222
1217 class LGlobalObject: public LTemplateInstruction<1, 0, 0> { 1223 class LGlobalObject: public LTemplateInstruction<1, 0, 0> {
1218 public: 1224 public:
1219 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object") 1225 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
1220 }; 1226 };
1221 1227
1222 1228
1223 class LGlobalReceiver: public LTemplateInstruction<1, 0, 0> { 1229 class LGlobalReceiver: public LTemplateInstruction<1, 0, 0> {
1224 public: 1230 public:
1225 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver") 1231 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
1226 }; 1232 };
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1922 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1917 }; 1923 };
1918 1924
1919 #undef DECLARE_HYDROGEN_ACCESSOR 1925 #undef DECLARE_HYDROGEN_ACCESSOR
1920 #undef DECLARE_INSTRUCTION 1926 #undef DECLARE_INSTRUCTION
1921 #undef DECLARE_CONCRETE_INSTRUCTION 1927 #undef DECLARE_CONCRETE_INSTRUCTION
1922 1928
1923 } } // namespace v8::int 1929 } } // namespace v8::int
1924 1930
1925 #endif // V8_X64_LITHIUM_X64_H_ 1931 #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