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

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

Issue 6869005: Land Kevin's patch for supporting %_CallFunction in Crankshaft. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 V(DivI) \ 91 V(DivI) \
92 V(DoubleToI) \ 92 V(DoubleToI) \
93 V(ExternalArrayLength) \ 93 V(ExternalArrayLength) \
94 V(FixedArrayLength) \ 94 V(FixedArrayLength) \
95 V(FunctionLiteral) \ 95 V(FunctionLiteral) \
96 V(Gap) \ 96 V(Gap) \
97 V(GetCachedArrayIndex) \ 97 V(GetCachedArrayIndex) \
98 V(GlobalObject) \ 98 V(GlobalObject) \
99 V(GlobalReceiver) \ 99 V(GlobalReceiver) \
100 V(Goto) \ 100 V(Goto) \
101 V(HasCachedArrayIndex) \
102 V(HasCachedArrayIndexAndBranch) \
101 V(HasInstanceType) \ 103 V(HasInstanceType) \
102 V(HasInstanceTypeAndBranch) \ 104 V(HasInstanceTypeAndBranch) \
103 V(HasCachedArrayIndex) \
104 V(HasCachedArrayIndexAndBranch) \
105 V(InstanceOf) \ 105 V(InstanceOf) \
106 V(InstanceOfAndBranch) \ 106 V(InstanceOfAndBranch) \
107 V(InstanceOfKnownGlobal) \ 107 V(InstanceOfKnownGlobal) \
108 V(Integer32ToDouble) \ 108 V(Integer32ToDouble) \
109 V(InvokeFunction) \
109 V(IsNull) \ 110 V(IsNull) \
110 V(IsNullAndBranch) \ 111 V(IsNullAndBranch) \
111 V(IsObject) \ 112 V(IsObject) \
112 V(IsObjectAndBranch) \ 113 V(IsObjectAndBranch) \
113 V(IsSmi) \ 114 V(IsSmi) \
114 V(IsSmiAndBranch) \ 115 V(IsSmiAndBranch) \
115 V(JSArrayLength) \ 116 V(JSArrayLength) \
116 V(Label) \ 117 V(Label) \
117 V(LazyBailout) \ 118 V(LazyBailout) \
118 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") 1388 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
1388 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) 1389 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
1389 1390
1390 virtual void PrintDataTo(StringStream* stream); 1391 virtual void PrintDataTo(StringStream* stream);
1391 1392
1392 Handle<JSFunction> function() { return hydrogen()->function(); } 1393 Handle<JSFunction> function() { return hydrogen()->function(); }
1393 int arity() const { return hydrogen()->argument_count() - 1; } 1394 int arity() const { return hydrogen()->argument_count() - 1; }
1394 }; 1395 };
1395 1396
1396 1397
1398 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> {
1399 public:
1400 LInvokeFunction(LOperand* function) {
1401 inputs_[0] = function;
1402 }
1403
1404 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1405 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1406
1407 LOperand* function() { return inputs_[0]; }
1408
1409 virtual void PrintDataTo(StringStream* stream);
1410
1411 int arity() const { return hydrogen()->argument_count() - 1; }
1412 };
1413
1414
1397 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { 1415 class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1398 public: 1416 public:
1399 explicit LCallKeyed(LOperand* key) { 1417 explicit LCallKeyed(LOperand* key) {
1400 inputs_[0] = key; 1418 inputs_[0] = key;
1401 } 1419 }
1402 1420
1403 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") 1421 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1404 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) 1422 DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1405 1423
1406 LOperand* key() { return inputs_[0]; } 1424 LOperand* key() { return inputs_[0]; }
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2173 }; 2191 };
2174 2192
2175 #undef DECLARE_HYDROGEN_ACCESSOR 2193 #undef DECLARE_HYDROGEN_ACCESSOR
2176 #undef DECLARE_INSTRUCTION 2194 #undef DECLARE_INSTRUCTION
2177 #undef DECLARE_CONCRETE_INSTRUCTION 2195 #undef DECLARE_CONCRETE_INSTRUCTION
2178 2196
2179 } } // namespace v8::int 2197 } } // namespace v8::int
2180 2198
2181 #endif // V8_X64_LITHIUM_X64_H_ 2199 #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