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

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

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/stub-cache.h ('k') | src/v8globals.h » ('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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver( 1148 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver(
1149 Handle<JSFunction> function) { 1149 Handle<JSFunction> function) {
1150 ParameterCount expected(function); 1150 ParameterCount expected(function);
1151 __ InvokeFunction(function, expected, arguments(), 1151 __ InvokeFunction(function, expected, arguments(),
1152 JUMP_FUNCTION, NullCallWrapper(), call_kind()); 1152 JUMP_FUNCTION, NullCallWrapper(), call_kind());
1153 } 1153 }
1154 1154
1155 1155
1156 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, 1156 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
1157 Handle<JSFunction> function) { 1157 Handle<JSFunction> function) {
1158 PatchGlobalProxy(object); 1158 PatchGlobalProxy(object, function);
1159 GenerateJumpFunctionIgnoreReceiver(function); 1159 GenerateJumpFunctionIgnoreReceiver(function);
1160 } 1160 }
1161 1161
1162 1162
1163 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, 1163 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
1164 Register actual_closure, 1164 Register actual_closure,
1165 Handle<JSFunction> function) { 1165 Handle<JSFunction> function) {
1166 PatchGlobalProxy(object); 1166 PatchGlobalProxy(object, function);
1167 ParameterCount expected(function); 1167 ParameterCount expected(function);
1168 __ InvokeFunction(actual_closure, expected, arguments(), 1168 __ InvokeFunction(actual_closure, expected, arguments(),
1169 JUMP_FUNCTION, NullCallWrapper(), call_kind()); 1169 JUMP_FUNCTION, NullCallWrapper(), call_kind());
1170 } 1170 }
1171 1171
1172 1172
1173 Handle<Code> CallStubCompiler::CompileCallConstant( 1173 Handle<Code> CallStubCompiler::CompileCallConstant(
1174 Handle<Object> object, 1174 Handle<Object> object,
1175 Handle<JSObject> holder, 1175 Handle<JSObject> holder,
1176 Handle<Name> name, 1176 Handle<Name> name,
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 Handle<FunctionTemplateInfo>( 1901 Handle<FunctionTemplateInfo>(
1902 FunctionTemplateInfo::cast(signature->receiver())); 1902 FunctionTemplateInfo::cast(signature->receiver()));
1903 } 1903 }
1904 } 1904 }
1905 1905
1906 is_simple_api_call_ = true; 1906 is_simple_api_call_ = true;
1907 } 1907 }
1908 1908
1909 1909
1910 } } // namespace v8::internal 1910 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698