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

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

Issue 104013008: Reland v8:18458 "Load the global proxy from the context of the target function." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/spaces.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 ExtraICState extra_state, 905 ExtraICState extra_state,
906 InlineCacheHolderFlag cache_holder = OWN_MAP); 906 InlineCacheHolderFlag cache_holder = OWN_MAP);
907 907
908 Handle<Code> CompileCallField(Handle<JSObject> object, 908 Handle<Code> CompileCallField(Handle<JSObject> object,
909 Handle<JSObject> holder, 909 Handle<JSObject> holder,
910 PropertyIndex index, 910 PropertyIndex index,
911 Handle<Name> name); 911 Handle<Name> name);
912 912
913 // Patch the global proxy over the global object if the global object is the 913 // Patch the global proxy over the global object if the global object is the
914 // receiver. 914 // receiver.
915 void PatchGlobalProxy(Handle<Object> object); 915 static void FetchGlobalProxy(MacroAssembler* masm,
916 Register target,
917 Register function);
918 void PatchGlobalProxy(Handle<Object> object, Register function);
919 void PatchGlobalProxy(Handle<Object> object, Handle<JSFunction> function);
916 920
917 // Returns the register containing the holder of |name|. 921 // Returns the register containing the holder of |name|.
918 Register HandlerFrontendHeader(Handle<Object> object, 922 Register HandlerFrontendHeader(Handle<Object> object,
919 Handle<JSObject> holder, 923 Handle<JSObject> holder,
920 Handle<Name> name, 924 Handle<Name> name,
921 CheckType check, 925 CheckType check,
922 Label* miss); 926 Label* miss);
923 void HandlerFrontendFooter(Label* miss); 927 void HandlerFrontendFooter(Label* miss);
924 928
925 void GenerateJumpFunctionIgnoreReceiver(Handle<JSFunction> function); 929 void GenerateJumpFunctionIgnoreReceiver(Handle<JSFunction> function);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 Handle<JSFunction> constant_function_; 1062 Handle<JSFunction> constant_function_;
1059 bool is_simple_api_call_; 1063 bool is_simple_api_call_;
1060 Handle<FunctionTemplateInfo> expected_receiver_type_; 1064 Handle<FunctionTemplateInfo> expected_receiver_type_;
1061 Handle<CallHandlerInfo> api_call_info_; 1065 Handle<CallHandlerInfo> api_call_info_;
1062 }; 1066 };
1063 1067
1064 1068
1065 } } // namespace v8::internal 1069 } } // namespace v8::internal
1066 1070
1067 #endif // V8_STUB_CACHE_H_ 1071 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698