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

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

Issue 19962005: Cosmetic changes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-mips.h ('k') | no next file » | 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 22 matching lines...) Expand all
33 #include "lithium.h" 33 #include "lithium.h"
34 #include "safepoint-table.h" 34 #include "safepoint-table.h"
35 #include "utils.h" 35 #include "utils.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 // Forward declarations. 40 // Forward declarations.
41 class LCodeGen; 41 class LCodeGen;
42 42
43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \
44 V(ControlInstruction) \
45 V(Call) \
46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V)
47
48
49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
50 V(AccessArgumentsAt) \ 44 V(AccessArgumentsAt) \
51 V(AddI) \ 45 V(AddI) \
52 V(Allocate) \ 46 V(Allocate) \
53 V(ApplyArguments) \ 47 V(ApplyArguments) \
54 V(ArgumentsElements) \ 48 V(ArgumentsElements) \
55 V(ArgumentsLength) \ 49 V(ArgumentsLength) \
56 V(ArithmeticD) \ 50 V(ArithmeticD) \
57 V(ArithmeticT) \ 51 V(ArithmeticT) \
58 V(BitI) \ 52 V(BitI) \
59 V(BitNotI) \ 53 V(BitNotI) \
60 V(BoundsCheck) \ 54 V(BoundsCheck) \
61 V(Branch) \ 55 V(Branch) \
62 V(CallConstantFunction) \ 56 V(CallConstantFunction) \
63 V(CallFunction) \ 57 V(CallFunction) \
64 V(CallGlobal) \ 58 V(CallGlobal) \
65 V(CallKeyed) \ 59 V(CallKeyed) \
66 V(CallKnownGlobal) \ 60 V(CallKnownGlobal) \
67 V(CallNamed) \ 61 V(CallNamed) \
68 V(CallNew) \ 62 V(CallNew) \
69 V(CallNewArray) \ 63 V(CallNewArray) \
70 V(CallRuntime) \ 64 V(CallRuntime) \
71 V(CallStub) \ 65 V(CallStub) \
72 V(CheckFunction) \ 66 V(CheckFunction) \
73 V(CheckInstanceType) \ 67 V(CheckInstanceType) \
74 V(CheckMaps) \ 68 V(CheckMaps) \
69 V(CheckMapValue) \
75 V(CheckNonSmi) \ 70 V(CheckNonSmi) \
76 V(CheckPrototypeMaps) \ 71 V(CheckPrototypeMaps) \
77 V(CheckSmi) \ 72 V(CheckSmi) \
78 V(ClampDToUint8) \ 73 V(ClampDToUint8) \
79 V(ClampIToUint8) \ 74 V(ClampIToUint8) \
80 V(ClampTToUint8) \ 75 V(ClampTToUint8) \
81 V(ClassOfTestAndBranch) \ 76 V(ClassOfTestAndBranch) \
82 V(CmpConstantEqAndBranch) \ 77 V(CmpConstantEqAndBranch) \
83 V(CompareNumericAndBranch) \ 78 V(CompareNumericAndBranch) \
84 V(CmpObjectEqAndBranch) \ 79 V(CmpObjectEqAndBranch) \
85 V(CmpMapAndBranch) \ 80 V(CmpMapAndBranch) \
86 V(CmpT) \ 81 V(CmpT) \
87 V(ConstantD) \ 82 V(ConstantD) \
88 V(ConstantI) \ 83 V(ConstantI) \
89 V(ConstantS) \ 84 V(ConstantS) \
90 V(ConstantT) \ 85 V(ConstantT) \
91 V(Context) \ 86 V(Context) \
87 V(DateField) \
92 V(DebugBreak) \ 88 V(DebugBreak) \
93 V(DeclareGlobals) \ 89 V(DeclareGlobals) \
94 V(Deoptimize) \ 90 V(Deoptimize) \
95 V(DivI) \ 91 V(DivI) \
96 V(DoubleToI) \ 92 V(DoubleToI) \
97 V(DoubleToSmi) \ 93 V(DoubleToSmi) \
94 V(Drop) \
98 V(DummyUse) \ 95 V(DummyUse) \
99 V(ElementsKind) \ 96 V(ElementsKind) \
100 V(MapEnumLength) \ 97 V(ForInCacheArray) \
98 V(ForInPrepareMap) \
101 V(FunctionLiteral) \ 99 V(FunctionLiteral) \
102 V(GetCachedArrayIndex) \ 100 V(GetCachedArrayIndex) \
103 V(GlobalObject) \ 101 V(GlobalObject) \
104 V(GlobalReceiver) \ 102 V(GlobalReceiver) \
105 V(Goto) \ 103 V(Goto) \
106 V(HasCachedArrayIndexAndBranch) \ 104 V(HasCachedArrayIndexAndBranch) \
107 V(HasInstanceTypeAndBranch) \ 105 V(HasInstanceTypeAndBranch) \
106 V(InnerAllocatedObject) \
108 V(InstanceOf) \ 107 V(InstanceOf) \
109 V(InstanceOfKnownGlobal) \ 108 V(InstanceOfKnownGlobal) \
110 V(InstanceSize) \ 109 V(InstanceSize) \
111 V(InstructionGap) \ 110 V(InstructionGap) \
112 V(Integer32ToDouble) \ 111 V(Integer32ToDouble) \
113 V(Integer32ToSmi) \ 112 V(Integer32ToSmi) \
114 V(Uint32ToDouble) \
115 V(InvokeFunction) \ 113 V(InvokeFunction) \
116 V(IsConstructCallAndBranch) \ 114 V(IsConstructCallAndBranch) \
117 V(IsObjectAndBranch) \ 115 V(IsObjectAndBranch) \
118 V(IsStringAndBranch) \ 116 V(IsStringAndBranch) \
119 V(IsSmiAndBranch) \ 117 V(IsSmiAndBranch) \
120 V(IsNumberAndBranch) \ 118 V(IsNumberAndBranch) \
121 V(IsUndetectableAndBranch) \ 119 V(IsUndetectableAndBranch) \
122 V(Label) \ 120 V(Label) \
123 V(LazyBailout) \ 121 V(LazyBailout) \
124 V(LinkObjectInList) \ 122 V(LinkObjectInList) \
125 V(LoadContextSlot) \ 123 V(LoadContextSlot) \
126 V(LoadExternalArrayPointer) \ 124 V(LoadExternalArrayPointer) \
125 V(LoadFieldByIndex) \
127 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
128 V(LoadGlobalCell) \ 127 V(LoadGlobalCell) \
129 V(LoadGlobalGeneric) \ 128 V(LoadGlobalGeneric) \
130 V(LoadKeyed) \ 129 V(LoadKeyed) \
131 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
132 V(LoadNamedField) \ 131 V(LoadNamedField) \
133 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
134 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
134 V(MapEnumLength) \
135 V(MathAbs) \ 135 V(MathAbs) \
136 V(MathCos) \ 136 V(MathCos) \
137 V(MathExp) \ 137 V(MathExp) \
138 V(MathFloor) \ 138 V(MathFloor) \
139 V(MathFloorOfDiv) \ 139 V(MathFloorOfDiv) \
140 V(MathLog) \ 140 V(MathLog) \
141 V(MathMinMax) \ 141 V(MathMinMax) \
142 V(MathPowHalf) \ 142 V(MathPowHalf) \
143 V(MathRound) \ 143 V(MathRound) \
144 V(MathSin) \ 144 V(MathSin) \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 V(StringLength) \ 177 V(StringLength) \
178 V(SubI) \ 178 V(SubI) \
179 V(TaggedToI) \ 179 V(TaggedToI) \
180 V(ThisFunction) \ 180 V(ThisFunction) \
181 V(Throw) \ 181 V(Throw) \
182 V(ToFastProperties) \ 182 V(ToFastProperties) \
183 V(TransitionElementsKind) \ 183 V(TransitionElementsKind) \
184 V(TrapAllocationMemento) \ 184 V(TrapAllocationMemento) \
185 V(Typeof) \ 185 V(Typeof) \
186 V(TypeofIsAndBranch) \ 186 V(TypeofIsAndBranch) \
187 V(Uint32ToDouble) \
187 V(UnknownOSRValue) \ 188 V(UnknownOSRValue) \
188 V(ValueOf) \ 189 V(ValueOf) \
189 V(ForInPrepareMap) \ 190 V(WrapReceiver)
190 V(ForInCacheArray) \
191 V(CheckMapValue) \
192 V(LoadFieldByIndex) \
193 V(DateField) \
194 V(WrapReceiver) \
195 V(Drop) \
196 V(InnerAllocatedObject)
197 191
198 192
199 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 193 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
200 virtual Opcode opcode() const { return LInstruction::k##type; } \ 194 virtual Opcode opcode() const { return LInstruction::k##type; } \
201 virtual void CompileToNative(LCodeGen* generator); \ 195 virtual void CompileToNative(LCodeGen* generator); \
202 virtual const char* Mnemonic() const { return mnemonic; } \ 196 virtual const char* Mnemonic() const { return mnemonic; } \
203 static L##type* cast(LInstruction* instr) { \ 197 static L##type* cast(LInstruction* instr) { \
204 ASSERT(instr->Is##type()); \ 198 ASSERT(instr->Is##type()); \
205 return reinterpret_cast<L##type*>(instr); \ 199 return reinterpret_cast<L##type*>(instr); \
206 } 200 }
(...skipping 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 2720
2727 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2721 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2728 }; 2722 };
2729 2723
2730 #undef DECLARE_HYDROGEN_ACCESSOR 2724 #undef DECLARE_HYDROGEN_ACCESSOR
2731 #undef DECLARE_CONCRETE_INSTRUCTION 2725 #undef DECLARE_CONCRETE_INSTRUCTION
2732 2726
2733 } } // namespace v8::int 2727 } } // namespace v8::int
2734 2728
2735 #endif // V8_X64_LITHIUM_X64_H_ 2729 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698