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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 V(GlobalReceiver) \ 100 V(GlobalReceiver) \
101 V(Goto) \ 101 V(Goto) \
102 V(HasCachedArrayIndex) \ 102 V(HasCachedArrayIndex) \
103 V(HasCachedArrayIndexAndBranch) \ 103 V(HasCachedArrayIndexAndBranch) \
104 V(HasInstanceType) \ 104 V(HasInstanceType) \
105 V(HasInstanceTypeAndBranch) \ 105 V(HasInstanceTypeAndBranch) \
106 V(InstanceOf) \ 106 V(InstanceOf) \
107 V(InstanceOfAndBranch) \ 107 V(InstanceOfAndBranch) \
108 V(InstanceOfKnownGlobal) \ 108 V(InstanceOfKnownGlobal) \
109 V(Integer32ToDouble) \ 109 V(Integer32ToDouble) \
110 V(InvokeFunction) \
110 V(IsNull) \ 111 V(IsNull) \
111 V(IsNullAndBranch) \ 112 V(IsNullAndBranch) \
112 V(IsObject) \ 113 V(IsObject) \
113 V(IsObjectAndBranch) \ 114 V(IsObjectAndBranch) \
114 V(IsSmi) \ 115 V(IsSmi) \
115 V(IsSmiAndBranch) \ 116 V(IsSmiAndBranch) \
116 V(IsConstructCall) \ 117 V(IsConstructCall) \
117 V(IsConstructCallAndBranch) \ 118 V(IsConstructCallAndBranch) \
118 V(JSArrayLength) \ 119 V(JSArrayLength) \
119 V(Label) \ 120 V(Label) \
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") 1446 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
1446 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) 1447 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
1447 1448
1448 virtual void PrintDataTo(StringStream* stream); 1449 virtual void PrintDataTo(StringStream* stream);
1449 1450
1450 Handle<JSFunction> function() { return hydrogen()->function(); } 1451 Handle<JSFunction> function() { return hydrogen()->function(); }
1451 int arity() const { return hydrogen()->argument_count() - 1; } 1452 int arity() const { return hydrogen()->argument_count() - 1; }
1452 }; 1453 };
1453 1454
1454 1455
1456 class LInvokeFunction: public LTemplateInstruction<1, 2, 0> {
1457 public:
1458 LInvokeFunction(LOperand* context, LOperand* function) {
1459 inputs_[0] = context;
1460 inputs_[1] = function;
1461 }
1462
1463 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1464 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1465
1466 LOperand* context() { return inputs_[0]; }
1467 LOperand* function() { return inputs_[1]; }
1468
1469 virtual void PrintDataTo(StringStream* stream);
1470
1471 int arity() const { return hydrogen()->argument_count() - 1; }
1472 };
1473
1474
1455 class LCallKeyed: public LTemplateInstruction<1, 2, 0> { 1475 class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
1456 public: 1476 public:
1457 LCallKeyed(LOperand* context, LOperand* key) { 1477 LCallKeyed(LOperand* context, LOperand* key) {
1458 inputs_[0] = context; 1478 inputs_[0] = context;
1459 inputs_[1] = key; 1479 inputs_[1] = key;
1460 } 1480 }
1461 1481
1462 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") 1482 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1463 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) 1483 DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1464 1484
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2267 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2248 }; 2268 };
2249 2269
2250 #undef DECLARE_HYDROGEN_ACCESSOR 2270 #undef DECLARE_HYDROGEN_ACCESSOR
2251 #undef DECLARE_INSTRUCTION 2271 #undef DECLARE_INSTRUCTION
2252 #undef DECLARE_CONCRETE_INSTRUCTION 2272 #undef DECLARE_CONCRETE_INSTRUCTION
2253 2273
2254 } } // namespace v8::internal 2274 } } // namespace v8::internal
2255 2275
2256 #endif // V8_IA32_LITHIUM_IA32_H_ 2276 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698