OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 705 |
706 Handle<Code> CompileStoreField(Handle<JSObject> object, | 706 Handle<Code> CompileStoreField(Handle<JSObject> object, |
707 int index, | 707 int index, |
708 Handle<Map> transition, | 708 Handle<Map> transition, |
709 Handle<String> name); | 709 Handle<String> name); |
710 | 710 |
711 Handle<Code> CompileStoreCallback(Handle<JSObject> object, | 711 Handle<Code> CompileStoreCallback(Handle<JSObject> object, |
712 Handle<AccessorInfo> callback, | 712 Handle<AccessorInfo> callback, |
713 Handle<String> name); | 713 Handle<String> name); |
714 | 714 |
715 MUST_USE_RESULT MaybeObject* CompileStoreCallback(JSObject* object, | |
716 AccessorInfo* callback, | |
717 String* name); | |
718 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, | 715 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, |
719 Handle<String> name); | 716 Handle<String> name); |
720 | 717 |
721 MUST_USE_RESULT MaybeObject* CompileStoreInterceptor(JSObject* object, | |
722 String* name); | |
723 | |
724 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, | 718 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, |
725 Handle<JSGlobalPropertyCell> holder, | 719 Handle<JSGlobalPropertyCell> holder, |
726 Handle<String> name); | 720 Handle<String> name); |
727 | 721 |
728 private: | 722 private: |
729 MaybeObject* TryGetCode(PropertyType type, String* name); | |
730 | |
731 Handle<Code> GetCode(PropertyType type, Handle<String> name); | 723 Handle<Code> GetCode(PropertyType type, Handle<String> name); |
732 | 724 |
733 StrictModeFlag strict_mode_; | 725 StrictModeFlag strict_mode_; |
734 }; | 726 }; |
735 | 727 |
736 | 728 |
737 class KeyedStoreStubCompiler: public StubCompiler { | 729 class KeyedStoreStubCompiler: public StubCompiler { |
738 public: | 730 public: |
739 KeyedStoreStubCompiler(Isolate* isolate, StrictModeFlag strict_mode) | 731 KeyedStoreStubCompiler(Isolate* isolate, StrictModeFlag strict_mode) |
740 : StubCompiler(isolate), strict_mode_(strict_mode) { } | 732 : StubCompiler(isolate), strict_mode_(strict_mode) { } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 JSFunction* constant_function_; | 944 JSFunction* constant_function_; |
953 bool is_simple_api_call_; | 945 bool is_simple_api_call_; |
954 FunctionTemplateInfo* expected_receiver_type_; | 946 FunctionTemplateInfo* expected_receiver_type_; |
955 CallHandlerInfo* api_call_info_; | 947 CallHandlerInfo* api_call_info_; |
956 }; | 948 }; |
957 | 949 |
958 | 950 |
959 } } // namespace v8::internal | 951 } } // namespace v8::internal |
960 | 952 |
961 #endif // V8_STUB_CACHE_H_ | 953 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |