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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
339 // The stub compiler compiles stubs for the stub cache. | 343 // The stub compiler compiles stubs for the stub cache. |
340 class StubCompiler BASE_EMBEDDED { | 344 class StubCompiler BASE_EMBEDDED { |
341 public: | 345 public: |
342 enum CheckType { | 346 enum CheckType { |
343 RECEIVER_MAP_CHECK, | 347 RECEIVER_MAP_CHECK, |
344 STRING_CHECK, | 348 STRING_CHECK, |
345 NUMBER_CHECK, | 349 NUMBER_CHECK, |
346 BOOLEAN_CHECK | 350 BOOLEAN_CHECK |
347 }; | 351 }; |
348 | 352 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 const ParameterCount& arguments() { return arguments_; } | 681 const ParameterCount& arguments() { return arguments_; } |
678 | 682 |
679 Object* GetCode(PropertyType type, String* name); | 683 Object* GetCode(PropertyType type, String* name); |
680 | 684 |
681 // Convenience function. Calls GetCode above passing | 685 // Convenience function. Calls GetCode above passing |
682 // CONSTANT_FUNCTION type and the name of the given function. | 686 // CONSTANT_FUNCTION type and the name of the given function. |
683 Object* GetCode(JSFunction* function); | 687 Object* GetCode(JSFunction* function); |
684 | 688 |
685 void GenerateNameCheck(String* name, Label* miss); | 689 void GenerateNameCheck(String* name, Label* miss); |
686 | 690 |
687 // Generates a jump to CallIC miss stub. Returns Failure if the jump cannot | 691 void GenerateMissBranch(); |
688 // be generated. | |
689 Object* GenerateMissBranch(); | |
690 }; | 692 }; |
691 | 693 |
692 | 694 |
693 class ConstructStubCompiler: public StubCompiler { | 695 class ConstructStubCompiler: public StubCompiler { |
694 public: | 696 public: |
695 explicit ConstructStubCompiler() {} | 697 explicit ConstructStubCompiler() {} |
696 | 698 |
697 Object* CompileConstructStub(SharedFunctionInfo* shared); | 699 Object* CompileConstructStub(SharedFunctionInfo* shared); |
698 | 700 |
699 private: | 701 private: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 | 747 |
746 JSFunction* constant_function_; | 748 JSFunction* constant_function_; |
747 bool is_simple_api_call_; | 749 bool is_simple_api_call_; |
748 FunctionTemplateInfo* expected_receiver_type_; | 750 FunctionTemplateInfo* expected_receiver_type_; |
749 CallHandlerInfo* api_call_info_; | 751 CallHandlerInfo* api_call_info_; |
750 }; | 752 }; |
751 | 753 |
752 } } // namespace v8::internal | 754 } } // namespace v8::internal |
753 | 755 |
754 #endif // V8_STUB_CACHE_H_ | 756 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |