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

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

Issue 111613003: Load the global proxy from the context of the target function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: don't embed global object or receiver in hydrogen Created 7 years 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
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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver( 1147 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver(
1148 Handle<JSFunction> function) { 1148 Handle<JSFunction> function) {
1149 ParameterCount expected(function); 1149 ParameterCount expected(function);
1150 __ InvokeFunction(function, expected, arguments(), 1150 __ InvokeFunction(function, expected, arguments(),
1151 JUMP_FUNCTION, NullCallWrapper(), call_kind()); 1151 JUMP_FUNCTION, NullCallWrapper(), call_kind());
1152 } 1152 }
1153 1153
1154 1154
1155 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, 1155 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
1156 Handle<JSFunction> function) { 1156 Handle<JSFunction> function) {
1157 PatchGlobalProxy(object); 1157 PatchGlobalProxy(object, function);
1158 GenerateJumpFunctionIgnoreReceiver(function); 1158 GenerateJumpFunctionIgnoreReceiver(function);
1159 } 1159 }
1160 1160
1161 1161
1162 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, 1162 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
1163 Register actual_closure, 1163 Register actual_closure,
1164 Handle<JSFunction> function) { 1164 Handle<JSFunction> function) {
1165 PatchGlobalProxy(object); 1165 PatchGlobalProxy(object, function);
1166 ParameterCount expected(function); 1166 ParameterCount expected(function);
1167 __ InvokeFunction(actual_closure, expected, arguments(), 1167 __ InvokeFunction(actual_closure, expected, arguments(),
1168 JUMP_FUNCTION, NullCallWrapper(), call_kind()); 1168 JUMP_FUNCTION, NullCallWrapper(), call_kind());
1169 } 1169 }
1170 1170
1171 1171
1172 Handle<Code> CallStubCompiler::CompileCallConstant( 1172 Handle<Code> CallStubCompiler::CompileCallConstant(
1173 Handle<Object> object, 1173 Handle<Object> object,
1174 Handle<JSObject> holder, 1174 Handle<JSObject> holder,
1175 Handle<Name> name, 1175 Handle<Name> name,
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 Handle<FunctionTemplateInfo>( 1900 Handle<FunctionTemplateInfo>(
1901 FunctionTemplateInfo::cast(signature->receiver())); 1901 FunctionTemplateInfo::cast(signature->receiver()));
1902 } 1902 }
1903 } 1903 }
1904 1904
1905 is_simple_api_call_ = true; 1905 is_simple_api_call_ = true;
1906 } 1906 }
1907 1907
1908 1908
1909 } } // namespace v8::internal 1909 } } // namespace v8::internal
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/stub-cache.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698