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

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

Issue 18154004: Replace custom builtin invocation instructions by a generic version (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 5 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 V(CmpObjectEqAndBranch) \ 85 V(CmpObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 86 V(CmpMapAndBranch) \
87 V(CmpT) \ 87 V(CmpT) \
88 V(ConstantD) \ 88 V(ConstantD) \
89 V(ConstantI) \ 89 V(ConstantI) \
90 V(ConstantS) \ 90 V(ConstantS) \
91 V(ConstantT) \ 91 V(ConstantT) \
92 V(Context) \ 92 V(Context) \
93 V(DebugBreak) \ 93 V(DebugBreak) \
94 V(DeclareGlobals) \ 94 V(DeclareGlobals) \
95 V(DeleteProperty) \
96 V(Deoptimize) \ 95 V(Deoptimize) \
97 V(DivI) \ 96 V(DivI) \
98 V(DoubleToI) \ 97 V(DoubleToI) \
99 V(DoubleToSmi) \ 98 V(DoubleToSmi) \
100 V(DummyUse) \ 99 V(DummyUse) \
101 V(ElementsKind) \ 100 V(ElementsKind) \
102 V(MapEnumLength) \ 101 V(MapEnumLength) \
103 V(FunctionLiteral) \ 102 V(FunctionLiteral) \
104 V(GetCachedArrayIndex) \ 103 V(GetCachedArrayIndex) \
105 V(GlobalObject) \ 104 V(GlobalObject) \
106 V(GlobalReceiver) \ 105 V(GlobalReceiver) \
107 V(Goto) \ 106 V(Goto) \
108 V(HasCachedArrayIndexAndBranch) \ 107 V(HasCachedArrayIndexAndBranch) \
109 V(HasInstanceTypeAndBranch) \ 108 V(HasInstanceTypeAndBranch) \
110 V(In) \
111 V(InstanceOf) \ 109 V(InstanceOf) \
112 V(InstanceOfKnownGlobal) \ 110 V(InstanceOfKnownGlobal) \
113 V(InstanceSize) \ 111 V(InstanceSize) \
114 V(InstructionGap) \ 112 V(InstructionGap) \
115 V(Integer32ToDouble) \ 113 V(Integer32ToDouble) \
116 V(Integer32ToSmi) \ 114 V(Integer32ToSmi) \
117 V(Uint32ToDouble) \ 115 V(Uint32ToDouble) \
118 V(InvokeFunction) \ 116 V(InvokeFunction) \
119 V(IsConstructCallAndBranch) \ 117 V(IsConstructCallAndBranch) \
120 V(IsObjectAndBranch) \ 118 V(IsObjectAndBranch) \
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 LOperand* left() { return inputs_[0]; } 1024 LOperand* left() { return inputs_[0]; }
1027 LOperand* right() { return inputs_[1]; } 1025 LOperand* right() { return inputs_[1]; }
1028 1026
1029 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1027 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1030 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1028 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1031 1029
1032 Token::Value op() const { return hydrogen()->token(); } 1030 Token::Value op() const { return hydrogen()->token(); }
1033 }; 1031 };
1034 1032
1035 1033
1036 class LIn: public LTemplateInstruction<1, 2, 0> {
1037 public:
1038 LIn(LOperand* key, LOperand* object) {
1039 inputs_[0] = key;
1040 inputs_[1] = object;
1041 }
1042
1043 LOperand* key() { return inputs_[0]; }
1044 LOperand* object() { return inputs_[1]; }
1045
1046 DECLARE_CONCRETE_INSTRUCTION(In, "in")
1047 };
1048
1049
1050 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { 1034 class LInstanceOf: public LTemplateInstruction<1, 2, 0> {
1051 public: 1035 public:
1052 LInstanceOf(LOperand* left, LOperand* right) { 1036 LInstanceOf(LOperand* left, LOperand* right) {
1053 inputs_[0] = left; 1037 inputs_[0] = left;
1054 inputs_[1] = right; 1038 inputs_[1] = right;
1055 } 1039 }
1056 1040
1057 LOperand* left() { return inputs_[0]; } 1041 LOperand* left() { return inputs_[0]; }
1058 LOperand* right() { return inputs_[1]; } 1042 LOperand* right() { return inputs_[1]; }
1059 1043
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 } 2458 }
2475 2459
2476 LOperand* temp() { return temps_[0]; } 2460 LOperand* temp() { return temps_[0]; }
2477 2461
2478 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, 2462 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
2479 "is-construct-call-and-branch") 2463 "is-construct-call-and-branch")
2480 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch) 2464 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch)
2481 }; 2465 };
2482 2466
2483 2467
2484 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
2485 public:
2486 LDeleteProperty(LOperand* obj, LOperand* key) {
2487 inputs_[0] = obj;
2488 inputs_[1] = key;
2489 }
2490
2491 LOperand* object() { return inputs_[0]; }
2492 LOperand* key() { return inputs_[1]; }
2493
2494 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
2495 };
2496
2497
2498 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { 2468 class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
2499 public: 2469 public:
2500 LOsrEntry() {} 2470 LOsrEntry() {}
2501 2471
2502 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 2472 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
2503 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") 2473 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
2504 }; 2474 };
2505 2475
2506 2476
2507 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2477 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2752 2722
2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2723 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2754 }; 2724 };
2755 2725
2756 #undef DECLARE_HYDROGEN_ACCESSOR 2726 #undef DECLARE_HYDROGEN_ACCESSOR
2757 #undef DECLARE_CONCRETE_INSTRUCTION 2727 #undef DECLARE_CONCRETE_INSTRUCTION
2758 2728
2759 } } // namespace v8::int 2729 } } // namespace v8::int
2760 2730
2761 #endif // V8_X64_LITHIUM_X64_H_ 2731 #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