OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 F(SetValueOf, 2, 1) \ | 113 F(SetValueOf, 2, 1) \ |
114 F(StringCharCodeAt, 2, 1) \ | 114 F(StringCharCodeAt, 2, 1) \ |
115 F(StringCharFromCode, 1, 1) \ | 115 F(StringCharFromCode, 1, 1) \ |
116 F(StringCharAt, 2, 1) \ | 116 F(StringCharAt, 2, 1) \ |
117 F(ObjectEquals, 2, 1) \ | 117 F(ObjectEquals, 2, 1) \ |
118 F(Log, 3, 1) \ | 118 F(Log, 3, 1) \ |
119 F(RandomHeapNumber, 0, 1) \ | 119 F(RandomHeapNumber, 0, 1) \ |
120 F(IsObject, 1, 1) \ | 120 F(IsObject, 1, 1) \ |
121 F(IsFunction, 1, 1) \ | 121 F(IsFunction, 1, 1) \ |
122 F(IsUndetectableObject, 1, 1) \ | 122 F(IsUndetectableObject, 1, 1) \ |
| 123 F(IsSpecObject, 1, 1) \ |
123 F(StringAdd, 2, 1) \ | 124 F(StringAdd, 2, 1) \ |
124 F(SubString, 3, 1) \ | 125 F(SubString, 3, 1) \ |
125 F(StringCompare, 2, 1) \ | 126 F(StringCompare, 2, 1) \ |
126 F(RegExpExec, 4, 1) \ | 127 F(RegExpExec, 4, 1) \ |
127 F(RegExpConstructResult, 3, 1) \ | 128 F(RegExpConstructResult, 3, 1) \ |
128 F(GetFromCache, 2, 1) \ | 129 F(GetFromCache, 2, 1) \ |
129 F(NumberToString, 1, 1) \ | 130 F(NumberToString, 1, 1) \ |
130 F(SwapElements, 3, 1) \ | 131 F(SwapElements, 3, 1) \ |
131 F(MathPow, 2, 1) \ | 132 F(MathPow, 2, 1) \ |
132 F(MathSin, 1, 1) \ | 133 F(MathSin, 1, 1) \ |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 static CodeGenerator* Current() { | 174 static CodeGenerator* Current() { |
174 ASSERT(top_ != NULL); | 175 ASSERT(top_ != NULL); |
175 return top_; | 176 return top_; |
176 } | 177 } |
177 | 178 |
178 private: | 179 private: |
179 static CodeGenerator* top_; | 180 static CodeGenerator* top_; |
180 CodeGenerator* previous_; | 181 CodeGenerator* previous_; |
181 }; | 182 }; |
182 | 183 |
183 | |
184 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 | 184 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 |
185 | 185 |
186 // State of used registers in a virtual frame. | 186 // State of used registers in a virtual frame. |
187 class FrameRegisterState { | 187 class FrameRegisterState { |
188 public: | 188 public: |
189 // Captures the current state of the given frame. | 189 // Captures the current state of the given frame. |
190 explicit FrameRegisterState(VirtualFrame* frame); | 190 explicit FrameRegisterState(VirtualFrame* frame); |
191 | 191 |
192 // Saves the state in the stack. | 192 // Saves the state in the stack. |
193 void Save(MacroAssembler* masm) const; | 193 void Save(MacroAssembler* masm) const; |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 StringCharFromCodeGenerator char_from_code_generator_; | 888 StringCharFromCodeGenerator char_from_code_generator_; |
889 | 889 |
890 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); | 890 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); |
891 }; | 891 }; |
892 | 892 |
893 | 893 |
894 } // namespace internal | 894 } // namespace internal |
895 } // namespace v8 | 895 } // namespace v8 |
896 | 896 |
897 #endif // V8_CODEGEN_H_ | 897 #endif // V8_CODEGEN_H_ |
OLD | NEW |