| OLD | NEW | 
|     1 // Copyright 2014 the V8 project authors. All rights reserved. |     1 // Copyright 2014 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |     5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 
|     6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |     6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 
|     7  |     7  | 
|     8 #include "src/crankshaft/hydrogen.h" |     8 #include "src/crankshaft/hydrogen.h" | 
|     9 #include "src/crankshaft/lithium.h" |     9 #include "src/crankshaft/lithium.h" | 
|    10 #include "src/crankshaft/lithium-allocator.h" |    10 #include "src/crankshaft/lithium-allocator.h" | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|    24   V(ApplyArguments)                          \ |    24   V(ApplyArguments)                          \ | 
|    25   V(ArgumentsElements)                       \ |    25   V(ArgumentsElements)                       \ | 
|    26   V(ArgumentsLength)                         \ |    26   V(ArgumentsLength)                         \ | 
|    27   V(ArithmeticD)                             \ |    27   V(ArithmeticD)                             \ | 
|    28   V(ArithmeticT)                             \ |    28   V(ArithmeticT)                             \ | 
|    29   V(BitI)                                    \ |    29   V(BitI)                                    \ | 
|    30   V(BoundsCheck)                             \ |    30   V(BoundsCheck)                             \ | 
|    31   V(Branch)                                  \ |    31   V(Branch)                                  \ | 
|    32   V(CallJSFunction)                          \ |    32   V(CallJSFunction)                          \ | 
|    33   V(CallWithDescriptor)                      \ |    33   V(CallWithDescriptor)                      \ | 
|    34   V(CallFunction)                            \ |  | 
|    35   V(CallNewArray)                            \ |    34   V(CallNewArray)                            \ | 
|    36   V(CallRuntime)                             \ |    35   V(CallRuntime)                             \ | 
|    37   V(CheckArrayBufferNotNeutered)             \ |    36   V(CheckArrayBufferNotNeutered)             \ | 
|    38   V(CheckInstanceType)                       \ |    37   V(CheckInstanceType)                       \ | 
|    39   V(CheckNonSmi)                             \ |    38   V(CheckNonSmi)                             \ | 
|    40   V(CheckMaps)                               \ |    39   V(CheckMaps)                               \ | 
|    41   V(CheckMapValue)                           \ |    40   V(CheckMapValue)                           \ | 
|    42   V(CheckSmi)                                \ |    41   V(CheckSmi)                                \ | 
|    43   V(CheckValue)                              \ |    42   V(CheckValue)                              \ | 
|    44   V(ClampDToUint8)                           \ |    43   V(ClampDToUint8)                           \ | 
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1729  |  1728  | 
|  1730   DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |  1729   DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 
|  1731   DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |  1730   DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 
|  1732  |  1731  | 
|  1733   void PrintDataTo(StringStream* stream) override; |  1732   void PrintDataTo(StringStream* stream) override; | 
|  1734  |  1733  | 
|  1735   int arity() const { return hydrogen()->argument_count() - 1; } |  1734   int arity() const { return hydrogen()->argument_count() - 1; } | 
|  1736 }; |  1735 }; | 
|  1737  |  1736  | 
|  1738  |  1737  | 
|  1739 class LCallFunction final : public LTemplateInstruction<1, 2, 2> { |  | 
|  1740  public: |  | 
|  1741   LCallFunction(LOperand* context, LOperand* function, LOperand* slot, |  | 
|  1742                 LOperand* vector) { |  | 
|  1743     inputs_[0] = context; |  | 
|  1744     inputs_[1] = function; |  | 
|  1745     temps_[0] = slot; |  | 
|  1746     temps_[1] = vector; |  | 
|  1747   } |  | 
|  1748  |  | 
|  1749   LOperand* context() { return inputs_[0]; } |  | 
|  1750   LOperand* function() { return inputs_[1]; } |  | 
|  1751   LOperand* temp_slot() { return temps_[0]; } |  | 
|  1752   LOperand* temp_vector() { return temps_[1]; } |  | 
|  1753  |  | 
|  1754   DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |  | 
|  1755   DECLARE_HYDROGEN_ACCESSOR(CallFunction) |  | 
|  1756  |  | 
|  1757   int arity() const { return hydrogen()->argument_count() - 1; } |  | 
|  1758   void PrintDataTo(StringStream* stream) override; |  | 
|  1759 }; |  | 
|  1760  |  | 
|  1761  |  | 
|  1762 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |  1738 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 
|  1763  public: |  1739  public: | 
|  1764   LCallNewArray(LOperand* context, LOperand* constructor) { |  1740   LCallNewArray(LOperand* context, LOperand* constructor) { | 
|  1765     inputs_[0] = context; |  1741     inputs_[0] = context; | 
|  1766     inputs_[1] = constructor; |  1742     inputs_[1] = constructor; | 
|  1767   } |  1743   } | 
|  1768  |  1744  | 
|  1769   LOperand* context() { return inputs_[0]; } |  1745   LOperand* context() { return inputs_[0]; } | 
|  1770   LOperand* constructor() { return inputs_[1]; } |  1746   LOperand* constructor() { return inputs_[1]; } | 
|  1771  |  1747  | 
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2596  |  2572  | 
|  2597   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |  2573   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 
|  2598 }; |  2574 }; | 
|  2599  |  2575  | 
|  2600 #undef DECLARE_HYDROGEN_ACCESSOR |  2576 #undef DECLARE_HYDROGEN_ACCESSOR | 
|  2601 #undef DECLARE_CONCRETE_INSTRUCTION |  2577 #undef DECLARE_CONCRETE_INSTRUCTION | 
|  2602 }  // namespace internal |  2578 }  // namespace internal | 
|  2603 }  // namespace v8 |  2579 }  // namespace v8 | 
|  2604  |  2580  | 
|  2605 #endif  // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |  2581 #endif  // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 
| OLD | NEW |