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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") | 1407 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") |
1407 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) | 1408 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) |
1408 | 1409 |
1409 virtual void PrintDataTo(StringStream* stream); | 1410 virtual void PrintDataTo(StringStream* stream); |
1410 | 1411 |
1411 Handle<JSFunction> function() { return hydrogen()->function(); } | 1412 Handle<JSFunction> function() { return hydrogen()->function(); } |
1412 int arity() const { return hydrogen()->argument_count() - 1; } | 1413 int arity() const { return hydrogen()->argument_count() - 1; } |
1413 }; | 1414 }; |
1414 | 1415 |
1415 | 1416 |
| 1417 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> { |
| 1418 public: |
| 1419 LInvokeFunction(LOperand* function) { |
| 1420 inputs_[0] = function; |
| 1421 } |
| 1422 |
| 1423 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1424 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1425 |
| 1426 LOperand* function() { return inputs_[0]; } |
| 1427 |
| 1428 virtual void PrintDataTo(StringStream* stream); |
| 1429 |
| 1430 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1431 }; |
| 1432 |
| 1433 |
1416 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1434 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
1417 public: | 1435 public: |
1418 explicit LCallKeyed(LOperand* key) { | 1436 explicit LCallKeyed(LOperand* key) { |
1419 inputs_[0] = key; | 1437 inputs_[0] = key; |
1420 } | 1438 } |
1421 | 1439 |
1422 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1440 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
1423 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) | 1441 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) |
1424 | 1442 |
1425 virtual void PrintDataTo(StringStream* stream); | 1443 virtual void PrintDataTo(StringStream* stream); |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2208 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2191 }; | 2209 }; |
2192 | 2210 |
2193 #undef DECLARE_HYDROGEN_ACCESSOR | 2211 #undef DECLARE_HYDROGEN_ACCESSOR |
2194 #undef DECLARE_INSTRUCTION | 2212 #undef DECLARE_INSTRUCTION |
2195 #undef DECLARE_CONCRETE_INSTRUCTION | 2213 #undef DECLARE_CONCRETE_INSTRUCTION |
2196 | 2214 |
2197 } } // namespace v8::internal | 2215 } } // namespace v8::internal |
2198 | 2216 |
2199 #endif // V8_ARM_LITHIUM_ARM_H_ | 2217 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |