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

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

Issue 148453009: Both HGlobalObject and HGlobalReceiver can be replaced with HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 V(DoubleToI) \ 91 V(DoubleToI) \
92 V(DoubleToSmi) \ 92 V(DoubleToSmi) \
93 V(Drop) \ 93 V(Drop) \
94 V(Dummy) \ 94 V(Dummy) \
95 V(DummyUse) \ 95 V(DummyUse) \
96 V(ElementsKind) \ 96 V(ElementsKind) \
97 V(ForInCacheArray) \ 97 V(ForInCacheArray) \
98 V(ForInPrepareMap) \ 98 V(ForInPrepareMap) \
99 V(FunctionLiteral) \ 99 V(FunctionLiteral) \
100 V(GetCachedArrayIndex) \ 100 V(GetCachedArrayIndex) \
101 V(GlobalObject) \
102 V(GlobalReceiver) \
103 V(Goto) \ 101 V(Goto) \
104 V(HasCachedArrayIndexAndBranch) \ 102 V(HasCachedArrayIndexAndBranch) \
105 V(HasInstanceTypeAndBranch) \ 103 V(HasInstanceTypeAndBranch) \
106 V(InnerAllocatedObject) \ 104 V(InnerAllocatedObject) \
107 V(InstanceOf) \ 105 V(InstanceOf) \
108 V(InstanceOfKnownGlobal) \ 106 V(InstanceOfKnownGlobal) \
109 V(InstructionGap) \ 107 V(InstructionGap) \
110 V(Integer32ToDouble) \ 108 V(Integer32ToDouble) \
111 V(Integer32ToSmi) \ 109 V(Integer32ToSmi) \
112 V(InvokeFunction) \ 110 V(InvokeFunction) \
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 inputs_[0] = context; 1781 inputs_[0] = context;
1784 } 1782 }
1785 1783
1786 LOperand* context() { return inputs_[0]; } 1784 LOperand* context() { return inputs_[0]; }
1787 1785
1788 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") 1786 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
1789 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) 1787 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
1790 }; 1788 };
1791 1789
1792 1790
1793 class LGlobalObject V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1794 public:
1795 explicit LGlobalObject(LOperand* context) {
1796 inputs_[0] = context;
1797 }
1798
1799 LOperand* context() { return inputs_[0]; }
1800
1801 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
1802 };
1803
1804
1805 class LGlobalReceiver V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1806 public:
1807 explicit LGlobalReceiver(LOperand* global_object) {
1808 inputs_[0] = global_object;
1809 }
1810
1811 LOperand* global() { return inputs_[0]; }
1812
1813 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
1814 };
1815
1816
1817 class LCallJSFunction V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1791 class LCallJSFunction V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1818 public: 1792 public:
1819 explicit LCallJSFunction(LOperand* function) { 1793 explicit LCallJSFunction(LOperand* function) {
1820 inputs_[0] = function; 1794 inputs_[0] = function;
1821 } 1795 }
1822 1796
1823 LOperand* function() { return inputs_[0]; } 1797 LOperand* function() { return inputs_[0]; }
1824 1798
1825 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") 1799 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
1826 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1800 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2826 2800
2827 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2828 }; 2802 };
2829 2803
2830 #undef DECLARE_HYDROGEN_ACCESSOR 2804 #undef DECLARE_HYDROGEN_ACCESSOR
2831 #undef DECLARE_CONCRETE_INSTRUCTION 2805 #undef DECLARE_CONCRETE_INSTRUCTION
2832 2806
2833 } } // namespace v8::internal 2807 } } // namespace v8::internal
2834 2808
2835 #endif // V8_IA32_LITHIUM_IA32_H_ 2809 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698