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

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

Issue 134333007: Remove HCallGlobal and merge uses with HCallNamed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/lithium-x64.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 V(ApplyArguments) \ 47 V(ApplyArguments) \
48 V(ArgumentsElements) \ 48 V(ArgumentsElements) \
49 V(ArgumentsLength) \ 49 V(ArgumentsLength) \
50 V(ArithmeticD) \ 50 V(ArithmeticD) \
51 V(ArithmeticT) \ 51 V(ArithmeticT) \
52 V(BitI) \ 52 V(BitI) \
53 V(BoundsCheck) \ 53 V(BoundsCheck) \
54 V(Branch) \ 54 V(Branch) \
55 V(CallConstantFunction) \ 55 V(CallConstantFunction) \
56 V(CallFunction) \ 56 V(CallFunction) \
57 V(CallGlobal) \
58 V(CallKeyed) \ 57 V(CallKeyed) \
59 V(CallKnownGlobal) \ 58 V(CallKnownGlobal) \
60 V(CallNamed) \ 59 V(CallNamed) \
61 V(CallNew) \ 60 V(CallNew) \
62 V(CallNewArray) \ 61 V(CallNewArray) \
63 V(CallRuntime) \ 62 V(CallRuntime) \
64 V(CallStub) \ 63 V(CallStub) \
65 V(CheckInstanceType) \ 64 V(CheckInstanceType) \
66 V(CheckMaps) \ 65 V(CheckMaps) \
67 V(CheckMapValue) \ 66 V(CheckMapValue) \
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 1858
1860 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1859 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1861 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1860 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1862 1861
1863 LOperand* context() { return inputs_[0]; } 1862 LOperand* context() { return inputs_[0]; }
1864 LOperand* function() { return inputs_[1]; } 1863 LOperand* function() { return inputs_[1]; }
1865 int arity() const { return hydrogen()->argument_count() - 1; } 1864 int arity() const { return hydrogen()->argument_count() - 1; }
1866 }; 1865 };
1867 1866
1868 1867
1869 class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1870 public:
1871 explicit LCallGlobal(LOperand* context) {
1872 inputs_[0] = context;
1873 }
1874
1875 LOperand* context() { return inputs_[0]; }
1876
1877 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1878 DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1879
1880 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1881
1882 Handle<String> name() const {return hydrogen()->name(); }
1883 int arity() const { return hydrogen()->argument_count() - 1; }
1884 };
1885
1886
1887 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1868 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> {
1888 public: 1869 public:
1889 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") 1870 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
1890 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) 1871 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
1891 1872
1892 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1873 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1893 1874
1894 int arity() const { return hydrogen()->argument_count() - 1; } 1875 int arity() const { return hydrogen()->argument_count() - 1; }
1895 }; 1876 };
1896 1877
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 2773
2793 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2774 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2794 }; 2775 };
2795 2776
2796 #undef DECLARE_HYDROGEN_ACCESSOR 2777 #undef DECLARE_HYDROGEN_ACCESSOR
2797 #undef DECLARE_CONCRETE_INSTRUCTION 2778 #undef DECLARE_CONCRETE_INSTRUCTION
2798 2779
2799 } } // namespace v8::int 2780 } } // namespace v8::int
2800 2781
2801 #endif // V8_X64_LITHIUM_X64_H_ 2782 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698