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

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

Issue 14305011: MIPS: Disallow dereferencing deferred handles when generating optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 } 1794 }
1795 1795
1796 LOperand* function() { return inputs_[0]; } 1796 LOperand* function() { return inputs_[0]; }
1797 1797
1798 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1798 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1799 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1799 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1800 1800
1801 virtual void PrintDataTo(StringStream* stream); 1801 virtual void PrintDataTo(StringStream* stream);
1802 1802
1803 int arity() const { return hydrogen()->argument_count() - 1; } 1803 int arity() const { return hydrogen()->argument_count() - 1; }
1804 Handle<JSFunction> known_function() { return hydrogen()->known_function(); }
1805 }; 1804 };
1806 1805
1807 1806
1808 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { 1807 class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1809 public: 1808 public:
1810 explicit LCallKeyed(LOperand* key) { 1809 explicit LCallKeyed(LOperand* key) {
1811 inputs_[0] = key; 1810 inputs_[0] = key;
1812 } 1811 }
1813 1812
1814 LOperand* key() { return inputs_[0]; } 1813 LOperand* key() { return inputs_[0]; }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 }; 1861 };
1863 1862
1864 1863
1865 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> { 1864 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
1866 public: 1865 public:
1867 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") 1866 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
1868 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) 1867 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
1869 1868
1870 virtual void PrintDataTo(StringStream* stream); 1869 virtual void PrintDataTo(StringStream* stream);
1871 1870
1872 Handle<JSFunction> target() const { return hydrogen()->target(); }
1873 int arity() const { return hydrogen()->argument_count() - 1; } 1871 int arity() const { return hydrogen()->argument_count() - 1; }
1874 }; 1872 };
1875 1873
1876 1874
1877 class LCallNew: public LTemplateInstruction<1, 1, 0> { 1875 class LCallNew: public LTemplateInstruction<1, 1, 0> {
1878 public: 1876 public:
1879 explicit LCallNew(LOperand* constructor) { 1877 explicit LCallNew(LOperand* constructor) {
1880 inputs_[0] = constructor; 1878 inputs_[0] = constructor;
1881 } 1879 }
1882 1880
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 public: 2431 public:
2434 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 2432 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2435 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 2433 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2436 }; 2434 };
2437 2435
2438 2436
2439 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { 2437 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
2440 public: 2438 public:
2441 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") 2439 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
2442 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) 2440 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
2443
2444 Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
2445 }; 2441 };
2446 2442
2447 2443
2448 class LToFastProperties: public LTemplateInstruction<1, 1, 0> { 2444 class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
2449 public: 2445 public:
2450 explicit LToFastProperties(LOperand* value) { 2446 explicit LToFastProperties(LOperand* value) {
2451 inputs_[0] = value; 2447 inputs_[0] = value;
2452 } 2448 }
2453 2449
2454 LOperand* value() { return inputs_[0]; } 2450 LOperand* value() { return inputs_[0]; }
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 2791
2796 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2792 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2797 }; 2793 };
2798 2794
2799 #undef DECLARE_HYDROGEN_ACCESSOR 2795 #undef DECLARE_HYDROGEN_ACCESSOR
2800 #undef DECLARE_CONCRETE_INSTRUCTION 2796 #undef DECLARE_CONCRETE_INSTRUCTION
2801 2797
2802 } } // namespace v8::internal 2798 } } // namespace v8::internal
2803 2799
2804 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2800 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698