| 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, function); | 1158 PatchGlobalProxy(object); |
| 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, function); | 1166 PatchGlobalProxy(object); |
| 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 Loading... |
| 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 |
| OLD | NEW |