| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1778   } | 1778   } | 
| 1779 | 1779 | 
| 1780   LOperand* function() { return inputs_[0]; } | 1780   LOperand* function() { return inputs_[0]; } | 
| 1781 | 1781 | 
| 1782   DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1782   DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 
| 1783   DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1783   DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 
| 1784 | 1784 | 
| 1785   virtual void PrintDataTo(StringStream* stream); | 1785   virtual void PrintDataTo(StringStream* stream); | 
| 1786 | 1786 | 
| 1787   int arity() const { return hydrogen()->argument_count() - 1; } | 1787   int arity() const { return hydrogen()->argument_count() - 1; } | 
| 1788   Handle<JSFunction> known_function() { return hydrogen()->known_function(); } |  | 
| 1789 }; | 1788 }; | 
| 1790 | 1789 | 
| 1791 | 1790 | 
| 1792 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1791 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 
| 1793  public: | 1792  public: | 
| 1794   explicit LCallKeyed(LOperand* key) { | 1793   explicit LCallKeyed(LOperand* key) { | 
| 1795     inputs_[0] = key; | 1794     inputs_[0] = key; | 
| 1796   } | 1795   } | 
| 1797 | 1796 | 
| 1798   DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1797   DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1844 }; | 1843 }; | 
| 1845 | 1844 | 
| 1846 | 1845 | 
| 1847 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> { | 1846 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> { | 
| 1848  public: | 1847  public: | 
| 1849   DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") | 1848   DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") | 
| 1850   DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) | 1849   DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) | 
| 1851 | 1850 | 
| 1852   virtual void PrintDataTo(StringStream* stream); | 1851   virtual void PrintDataTo(StringStream* stream); | 
| 1853 | 1852 | 
| 1854   Handle<JSFunction> target() const { return hydrogen()->target();  } |  | 
| 1855   int arity() const { return hydrogen()->argument_count() - 1;  } | 1853   int arity() const { return hydrogen()->argument_count() - 1;  } | 
| 1856 }; | 1854 }; | 
| 1857 | 1855 | 
| 1858 | 1856 | 
| 1859 class LCallNew: public LTemplateInstruction<1, 1, 0> { | 1857 class LCallNew: public LTemplateInstruction<1, 1, 0> { | 
| 1860  public: | 1858  public: | 
| 1861   explicit LCallNew(LOperand* constructor) { | 1859   explicit LCallNew(LOperand* constructor) { | 
| 1862     inputs_[0] = constructor; | 1860     inputs_[0] = constructor; | 
| 1863   } | 1861   } | 
| 1864 | 1862 | 
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2396  public: | 2394  public: | 
| 2397   DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | 2395   DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | 
| 2398   DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | 2396   DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | 
| 2399 }; | 2397 }; | 
| 2400 | 2398 | 
| 2401 | 2399 | 
| 2402 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { | 2400 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { | 
| 2403  public: | 2401  public: | 
| 2404   DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | 2402   DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | 
| 2405   DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | 2403   DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | 
| 2406 |  | 
| 2407   Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); } |  | 
| 2408 }; | 2404 }; | 
| 2409 | 2405 | 
| 2410 | 2406 | 
| 2411 class LToFastProperties: public LTemplateInstruction<1, 1, 0> { | 2407 class LToFastProperties: public LTemplateInstruction<1, 1, 0> { | 
| 2412  public: | 2408  public: | 
| 2413   explicit LToFastProperties(LOperand* value) { | 2409   explicit LToFastProperties(LOperand* value) { | 
| 2414     inputs_[0] = value; | 2410     inputs_[0] = value; | 
| 2415   } | 2411   } | 
| 2416 | 2412 | 
| 2417   LOperand* value() { return inputs_[0]; } | 2413   LOperand* value() { return inputs_[0]; } | 
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2749 | 2745 | 
| 2750   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2746   DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 
| 2751 }; | 2747 }; | 
| 2752 | 2748 | 
| 2753 #undef DECLARE_HYDROGEN_ACCESSOR | 2749 #undef DECLARE_HYDROGEN_ACCESSOR | 
| 2754 #undef DECLARE_CONCRETE_INSTRUCTION | 2750 #undef DECLARE_CONCRETE_INSTRUCTION | 
| 2755 | 2751 | 
| 2756 } }  // namespace v8::int | 2752 } }  // namespace v8::int | 
| 2757 | 2753 | 
| 2758 #endif  // V8_X64_LITHIUM_X64_H_ | 2754 #endif  // V8_X64_LITHIUM_X64_H_ | 
| OLD | NEW | 
|---|