OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |