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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver( | 1284 void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver( |
1285 Handle<JSFunction> function) { | 1285 Handle<JSFunction> function) { |
1286 ParameterCount expected(function); | 1286 ParameterCount expected(function); |
1287 __ InvokeFunction(function, expected, arguments(), | 1287 __ InvokeFunction(function, expected, arguments(), |
1288 JUMP_FUNCTION, NullCallWrapper(), call_kind()); | 1288 JUMP_FUNCTION, NullCallWrapper(), call_kind()); |
1289 } | 1289 } |
1290 | 1290 |
1291 | 1291 |
1292 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, | 1292 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, |
1293 Handle<JSFunction> function) { | 1293 Handle<JSFunction> function) { |
1294 PatchGlobalProxy(object, function); | 1294 PatchImplicitReceiver(object); |
1295 GenerateJumpFunctionIgnoreReceiver(function); | 1295 GenerateJumpFunctionIgnoreReceiver(function); |
1296 } | 1296 } |
1297 | 1297 |
1298 | 1298 |
1299 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, | 1299 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, |
1300 Register actual_closure, | 1300 Register actual_closure, |
1301 Handle<JSFunction> function) { | 1301 Handle<JSFunction> function) { |
1302 PatchGlobalProxy(object, function); | 1302 PatchImplicitReceiver(object); |
1303 ParameterCount expected(function); | 1303 ParameterCount expected(function); |
1304 __ InvokeFunction(actual_closure, expected, arguments(), | 1304 __ InvokeFunction(actual_closure, expected, arguments(), |
1305 JUMP_FUNCTION, NullCallWrapper(), call_kind()); | 1305 JUMP_FUNCTION, NullCallWrapper(), call_kind()); |
1306 } | 1306 } |
1307 | 1307 |
1308 | 1308 |
1309 Handle<Code> CallStubCompiler::CompileCallConstant( | 1309 Handle<Code> CallStubCompiler::CompileCallConstant( |
1310 Handle<Object> object, | 1310 Handle<Object> object, |
1311 Handle<JSObject> holder, | 1311 Handle<JSObject> holder, |
1312 Handle<Name> name, | 1312 Handle<Name> name, |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2041 Handle<FunctionTemplateInfo>( | 2041 Handle<FunctionTemplateInfo>( |
2042 FunctionTemplateInfo::cast(signature->receiver())); | 2042 FunctionTemplateInfo::cast(signature->receiver())); |
2043 } | 2043 } |
2044 } | 2044 } |
2045 | 2045 |
2046 is_simple_api_call_ = true; | 2046 is_simple_api_call_ = true; |
2047 } | 2047 } |
2048 | 2048 |
2049 | 2049 |
2050 } } // namespace v8::internal | 2050 } } // namespace v8::internal |
OLD | NEW |