| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") | 1387 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") |
| 1387 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) | 1388 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) |
| 1388 | 1389 |
| 1389 virtual void PrintDataTo(StringStream* stream); | 1390 virtual void PrintDataTo(StringStream* stream); |
| 1390 | 1391 |
| 1391 Handle<JSFunction> function() { return hydrogen()->function(); } | 1392 Handle<JSFunction> function() { return hydrogen()->function(); } |
| 1392 int arity() const { return hydrogen()->argument_count() - 1; } | 1393 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1393 }; | 1394 }; |
| 1394 | 1395 |
| 1395 | 1396 |
| 1397 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> { |
| 1398 public: |
| 1399 LInvokeFunction(LOperand* function) { |
| 1400 inputs_[0] = function; |
| 1401 } |
| 1402 |
| 1403 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1404 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1405 |
| 1406 LOperand* function() { return inputs_[0]; } |
| 1407 |
| 1408 virtual void PrintDataTo(StringStream* stream); |
| 1409 |
| 1410 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1411 }; |
| 1412 |
| 1413 |
| 1396 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1414 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
| 1397 public: | 1415 public: |
| 1398 explicit LCallKeyed(LOperand* key) { | 1416 explicit LCallKeyed(LOperand* key) { |
| 1399 inputs_[0] = key; | 1417 inputs_[0] = key; |
| 1400 } | 1418 } |
| 1401 | 1419 |
| 1402 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1420 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
| 1403 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) | 1421 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) |
| 1404 | 1422 |
| 1405 LOperand* key() { return inputs_[0]; } | 1423 LOperand* key() { return inputs_[0]; } |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2156 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2174 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2157 }; | 2175 }; |
| 2158 | 2176 |
| 2159 #undef DECLARE_HYDROGEN_ACCESSOR | 2177 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2160 #undef DECLARE_INSTRUCTION | 2178 #undef DECLARE_INSTRUCTION |
| 2161 #undef DECLARE_CONCRETE_INSTRUCTION | 2179 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2162 | 2180 |
| 2163 } } // namespace v8::int | 2181 } } // namespace v8::int |
| 2164 | 2182 |
| 2165 #endif // V8_X64_LITHIUM_X64_H_ | 2183 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |