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

Side by Side Diff: src/ic.h

Issue 149674: X64: Enable inline caching for calls, with some stubs stubbed out. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | « no previous file | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698