OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 V(GlobalReceiver) \ | 99 V(GlobalReceiver) \ |
100 V(Goto) \ | 100 V(Goto) \ |
101 V(HasCachedArrayIndex) \ | 101 V(HasCachedArrayIndex) \ |
102 V(HasCachedArrayIndexAndBranch) \ | 102 V(HasCachedArrayIndexAndBranch) \ |
103 V(HasInstanceType) \ | 103 V(HasInstanceType) \ |
104 V(HasInstanceTypeAndBranch) \ | 104 V(HasInstanceTypeAndBranch) \ |
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 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") | 1406 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") |
1406 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) | 1407 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) |
1407 | 1408 |
1408 virtual void PrintDataTo(StringStream* stream); | 1409 virtual void PrintDataTo(StringStream* stream); |
1409 | 1410 |
1410 Handle<JSFunction> function() { return hydrogen()->function(); } | 1411 Handle<JSFunction> function() { return hydrogen()->function(); } |
1411 int arity() const { return hydrogen()->argument_count() - 1; } | 1412 int arity() const { return hydrogen()->argument_count() - 1; } |
1412 }; | 1413 }; |
1413 | 1414 |
1414 | 1415 |
| 1416 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> { |
| 1417 public: |
| 1418 LInvokeFunction(LOperand* function) { |
| 1419 inputs_[0] = function; |
| 1420 } |
| 1421 |
| 1422 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1423 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1424 |
| 1425 LOperand* function() { return inputs_[0]; } |
| 1426 |
| 1427 virtual void PrintDataTo(StringStream* stream); |
| 1428 |
| 1429 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1430 }; |
| 1431 |
| 1432 |
1415 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1433 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
1416 public: | 1434 public: |
1417 explicit LCallKeyed(LOperand* key) { | 1435 explicit LCallKeyed(LOperand* key) { |
1418 inputs_[0] = key; | 1436 inputs_[0] = key; |
1419 } | 1437 } |
1420 | 1438 |
1421 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1439 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
1422 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) | 1440 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) |
1423 | 1441 |
1424 virtual void PrintDataTo(StringStream* stream); | 1442 virtual void PrintDataTo(StringStream* stream); |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2191 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2174 }; | 2192 }; |
2175 | 2193 |
2176 #undef DECLARE_HYDROGEN_ACCESSOR | 2194 #undef DECLARE_HYDROGEN_ACCESSOR |
2177 #undef DECLARE_INSTRUCTION | 2195 #undef DECLARE_INSTRUCTION |
2178 #undef DECLARE_CONCRETE_INSTRUCTION | 2196 #undef DECLARE_CONCRETE_INSTRUCTION |
2179 | 2197 |
2180 } } // namespace v8::internal | 2198 } } // namespace v8::internal |
2181 | 2199 |
2182 #endif // V8_ARM_LITHIUM_ARM_H_ | 2200 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |