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

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

Issue 6815029: Merge (7180:7265] from bleeding_edge to the experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 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/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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 V(CallGlobal) \ 63 V(CallGlobal) \
64 V(CallKeyed) \ 64 V(CallKeyed) \
65 V(CallKnownGlobal) \ 65 V(CallKnownGlobal) \
66 V(CallNamed) \ 66 V(CallNamed) \
67 V(CallNew) \ 67 V(CallNew) \
68 V(CallRuntime) \ 68 V(CallRuntime) \
69 V(CallStub) \ 69 V(CallStub) \
70 V(CheckFunction) \ 70 V(CheckFunction) \
71 V(CheckInstanceType) \ 71 V(CheckInstanceType) \
72 V(CheckMap) \ 72 V(CheckMap) \
73 V(CheckNonSmi) \
73 V(CheckPrototypeMaps) \ 74 V(CheckPrototypeMaps) \
74 V(CheckSmi) \ 75 V(CheckSmi) \
75 V(ClassOfTest) \ 76 V(ClassOfTest) \
76 V(ClassOfTestAndBranch) \ 77 V(ClassOfTestAndBranch) \
77 V(CmpID) \ 78 V(CmpID) \
78 V(CmpIDAndBranch) \ 79 V(CmpIDAndBranch) \
79 V(CmpJSObjectEq) \ 80 V(CmpJSObjectEq) \
80 V(CmpJSObjectEqAndBranch) \ 81 V(CmpJSObjectEqAndBranch) \
81 V(CmpMapAndBranch) \ 82 V(CmpMapAndBranch) \
82 V(CmpT) \ 83 V(CmpT) \
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") 1795 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
1795 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) 1796 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
1796 1797
1797 Handle<JSObject> prototype() const { return hydrogen()->prototype(); } 1798 Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
1798 Handle<JSObject> holder() const { return hydrogen()->holder(); } 1799 Handle<JSObject> holder() const { return hydrogen()->holder(); }
1799 }; 1800 };
1800 1801
1801 1802
1802 class LCheckSmi: public LTemplateInstruction<0, 1, 0> { 1803 class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
1803 public: 1804 public:
1804 LCheckSmi(LOperand* value, Condition condition) 1805 explicit LCheckSmi(LOperand* value) {
1805 : condition_(condition) {
1806 inputs_[0] = value; 1806 inputs_[0] = value;
1807 } 1807 }
1808 1808
1809 Condition condition() const { return condition_; } 1809 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
1810
1811 virtual void CompileToNative(LCodeGen* generator);
1812 virtual const char* Mnemonic() const {
1813 return (condition_ == zero) ? "check-non-smi" : "check-smi";
1814 }
1815
1816 private:
1817 Condition condition_;
1818 }; 1810 };
1819 1811
1820 1812
1813 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
1814 public:
1815 explicit LCheckNonSmi(LOperand* value) {
1816 inputs_[0] = value;
1817 }
1818
1819 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
1820 };
1821
1822
1821 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { 1823 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
1822 public: 1824 public:
1823 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") 1825 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1824 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) 1826 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1825 }; 1827 };
1826 1828
1827 1829
1828 class LObjectLiteral: public LTemplateInstruction<1, 1, 0> { 1830 class LObjectLiteral: public LTemplateInstruction<1, 1, 0> {
1829 public: 1831 public:
1830 explicit LObjectLiteral(LOperand* context) { 1832 explicit LObjectLiteral(LOperand* context) {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2161 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2160 }; 2162 };
2161 2163
2162 #undef DECLARE_HYDROGEN_ACCESSOR 2164 #undef DECLARE_HYDROGEN_ACCESSOR
2163 #undef DECLARE_INSTRUCTION 2165 #undef DECLARE_INSTRUCTION
2164 #undef DECLARE_CONCRETE_INSTRUCTION 2166 #undef DECLARE_CONCRETE_INSTRUCTION
2165 2167
2166 } } // namespace v8::internal 2168 } } // namespace v8::internal
2167 2169
2168 #endif // V8_IA32_LITHIUM_IA32_H_ 2170 #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