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

Side by Side Diff: src/stub-cache.h

Issue 3047027: Avoid GC when compiling CallIC stubs.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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/ic.cc ('k') | src/stub-cache.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-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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 // Support functions for IC stubs for interceptors. 330 // Support functions for IC stubs for interceptors.
331 Object* LoadPropertyWithInterceptorOnly(Arguments args); 331 Object* LoadPropertyWithInterceptorOnly(Arguments args);
332 Object* LoadPropertyWithInterceptorForLoad(Arguments args); 332 Object* LoadPropertyWithInterceptorForLoad(Arguments args);
333 Object* LoadPropertyWithInterceptorForCall(Arguments args); 333 Object* LoadPropertyWithInterceptorForCall(Arguments args);
334 Object* StoreInterceptorProperty(Arguments args); 334 Object* StoreInterceptorProperty(Arguments args);
335 Object* CallInterceptorProperty(Arguments args); 335 Object* CallInterceptorProperty(Arguments args);
336 Object* KeyedLoadPropertyWithInterceptor(Arguments args); 336 Object* KeyedLoadPropertyWithInterceptor(Arguments args);
337 337
338 338
339 // Support function for computing call IC miss stubs.
340 Handle<Code> ComputeCallMiss(int argc, Code::Kind kind);
341
342
343 // The stub compiler compiles stubs for the stub cache. 339 // The stub compiler compiles stubs for the stub cache.
344 class StubCompiler BASE_EMBEDDED { 340 class StubCompiler BASE_EMBEDDED {
345 public: 341 public:
346 enum CheckType { 342 enum CheckType {
347 RECEIVER_MAP_CHECK, 343 RECEIVER_MAP_CHECK,
348 STRING_CHECK, 344 STRING_CHECK,
349 NUMBER_CHECK, 345 NUMBER_CHECK,
350 BOOLEAN_CHECK 346 BOOLEAN_CHECK
351 }; 347 };
352 348
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 const ParameterCount& arguments() { return arguments_; } 677 const ParameterCount& arguments() { return arguments_; }
682 678
683 Object* GetCode(PropertyType type, String* name); 679 Object* GetCode(PropertyType type, String* name);
684 680
685 // Convenience function. Calls GetCode above passing 681 // Convenience function. Calls GetCode above passing
686 // CONSTANT_FUNCTION type and the name of the given function. 682 // CONSTANT_FUNCTION type and the name of the given function.
687 Object* GetCode(JSFunction* function); 683 Object* GetCode(JSFunction* function);
688 684
689 void GenerateNameCheck(String* name, Label* miss); 685 void GenerateNameCheck(String* name, Label* miss);
690 686
691 void GenerateMissBranch(); 687 // Generates a jump to CallIC miss stub. Returns Failure if the jump cannot
688 // be generated.
689 Object* GenerateMissBranch();
692 }; 690 };
693 691
694 692
695 class ConstructStubCompiler: public StubCompiler { 693 class ConstructStubCompiler: public StubCompiler {
696 public: 694 public:
697 explicit ConstructStubCompiler() {} 695 explicit ConstructStubCompiler() {}
698 696
699 Object* CompileConstructStub(SharedFunctionInfo* shared); 697 Object* CompileConstructStub(SharedFunctionInfo* shared);
700 698
701 private: 699 private:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 745
748 JSFunction* constant_function_; 746 JSFunction* constant_function_;
749 bool is_simple_api_call_; 747 bool is_simple_api_call_;
750 FunctionTemplateInfo* expected_receiver_type_; 748 FunctionTemplateInfo* expected_receiver_type_;
751 CallHandlerInfo* api_call_info_; 749 CallHandlerInfo* api_call_info_;
752 }; 750 };
753 751
754 } } // namespace v8::internal 752 } } // namespace v8::internal
755 753
756 #endif // V8_STUB_CACHE_H_ 754 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698