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

Side by Side Diff: src/ic.h

Issue 502028: Streamline the calling convention of the call ICs by passing the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/ia32/virtual-frame-ia32.cc ('k') | src/ic.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 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 183
184 class CallIC: public IC { 184 class CallIC: public IC {
185 public: 185 public:
186 CallIC() : IC(EXTRA_CALL_FRAME) { ASSERT(target()->is_call_stub()); } 186 CallIC() : IC(EXTRA_CALL_FRAME) { ASSERT(target()->is_call_stub()); }
187 187
188 Object* LoadFunction(State state, Handle<Object> object, Handle<String> name); 188 Object* LoadFunction(State state, Handle<Object> object, Handle<String> name);
189 189
190 190
191 // Code generator routines. 191 // Code generator routines.
192 static void GenerateInitialize(MacroAssembler* masm, int argc); 192 static void GenerateInitialize(MacroAssembler* masm, int argc) {
193 GenerateMiss(masm, argc);
194 }
193 static void GenerateMiss(MacroAssembler* masm, int argc); 195 static void GenerateMiss(MacroAssembler* masm, int argc);
194 static void GenerateMegamorphic(MacroAssembler* masm, int argc); 196 static void GenerateMegamorphic(MacroAssembler* masm, int argc);
195 static void GenerateNormal(MacroAssembler* masm, int argc); 197 static void GenerateNormal(MacroAssembler* masm, int argc);
196 198
197 private: 199 private:
198 static void Generate(MacroAssembler* masm,
199 int argc,
200 const ExternalReference& f);
201
202 // Update the inline cache and the global stub cache based on the 200 // Update the inline cache and the global stub cache based on the
203 // lookup result. 201 // lookup result.
204 void UpdateCaches(LookupResult* lookup, 202 void UpdateCaches(LookupResult* lookup,
205 State state, 203 State state,
206 Handle<Object> object, 204 Handle<Object> object,
207 Handle<String> name); 205 Handle<String> name);
208 206
209 // Returns a JSFunction if the object can be called as a function, 207 // Returns a JSFunction if the object can be called as a function,
210 // and patches the stack to be ready for the call. 208 // and patches the stack to be ready for the call.
211 // Otherwise, it returns the undefined value. 209 // Otherwise, it returns the undefined value.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // The map is the new map that the inlined code should check against. 423 // The map is the new map that the inlined code should check against.
426 static bool PatchInlinedStore(Address address, Object* map); 424 static bool PatchInlinedStore(Address address, Object* map);
427 425
428 friend class IC; 426 friend class IC;
429 }; 427 };
430 428
431 429
432 } } // namespace v8::internal 430 } } // namespace v8::internal
433 431
434 #endif // V8_IC_H_ 432 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/virtual-frame-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698