OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 class CallIC: public IC { | 168 class CallIC: public IC { |
169 public: | 169 public: |
170 CallIC() : IC(EXTRA_CALL_FRAME) { ASSERT(target()->is_call_stub()); } | 170 CallIC() : IC(EXTRA_CALL_FRAME) { ASSERT(target()->is_call_stub()); } |
171 | 171 |
172 Object* LoadFunction(State state, Handle<Object> object, Handle<String> name); | 172 Object* LoadFunction(State state, Handle<Object> object, Handle<String> name); |
173 | 173 |
174 | 174 |
175 // Code generator routines. | 175 // Code generator routines. |
176 static void GenerateInitialize(MacroAssembler* masm, int argc); | 176 static void GenerateInitialize(MacroAssembler* masm, int argc); |
177 static void GeneratePreMonomorphic(MacroAssembler* masm, int argc); | |
178 static void GenerateMiss(MacroAssembler* masm, int argc); | 177 static void GenerateMiss(MacroAssembler* masm, int argc); |
179 static void GenerateMegamorphic(MacroAssembler* masm, int argc); | 178 static void GenerateMegamorphic(MacroAssembler* masm, int argc); |
180 static void GenerateNormal(MacroAssembler* masm, int argc); | 179 static void GenerateNormal(MacroAssembler* masm, int argc); |
181 | 180 |
182 private: | 181 private: |
183 static void Generate(MacroAssembler* masm, | 182 static void Generate(MacroAssembler* masm, |
184 int argc, | 183 int argc, |
185 const ExternalReference& f); | 184 const ExternalReference& f); |
186 | 185 |
187 // Update the inline cache and the global stub cache based on the | 186 // Update the inline cache and the global stub cache based on the |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 // version of keyed store. | 389 // version of keyed store. |
391 static bool PatchInlinedStore(Address address, Object* map); | 390 static bool PatchInlinedStore(Address address, Object* map); |
392 | 391 |
393 friend class IC; | 392 friend class IC; |
394 }; | 393 }; |
395 | 394 |
396 | 395 |
397 } } // namespace v8::internal | 396 } } // namespace v8::internal |
398 | 397 |
399 #endif // V8_IC_H_ | 398 #endif // V8_IC_H_ |
OLD | NEW |