Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: src/x64/lithium-x64.h

Issue 14403015: Disallow dereferencing deferred handles when generating optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
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_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698