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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 7006021: MIPS: port Fix a number of IC stubs to correctly set the call kind. (Closed)
Patch Set: Created 9 years, 6 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
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4692 matching lines...) Expand 10 before | Expand all | Expand 10 after
4703 __ Branch(&slow, ne, a2, Operand(JS_FUNCTION_TYPE)); 4703 __ Branch(&slow, ne, a2, Operand(JS_FUNCTION_TYPE));
4704 4704
4705 // Fast-case: Invoke the function now. 4705 // Fast-case: Invoke the function now.
4706 // a1: pushed function 4706 // a1: pushed function
4707 ParameterCount actual(argc_); 4707 ParameterCount actual(argc_);
4708 4708
4709 if (ReceiverMightBeImplicit()) { 4709 if (ReceiverMightBeImplicit()) {
4710 Label call_as_function; 4710 Label call_as_function;
4711 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 4711 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
4712 __ Branch(&call_as_function, eq, t0, Operand(at)); 4712 __ Branch(&call_as_function, eq, t0, Operand(at));
4713 __ InvokeFunction(a1, actual, JUMP_FUNCTION); 4713 __ InvokeFunction(a1,
4714 actual,
4715 JUMP_FUNCTION,
4716 NullCallWrapper(),
4717 CALL_AS_METHOD);
4714 __ bind(&call_as_function); 4718 __ bind(&call_as_function);
4715 } 4719 }
4716 __ InvokeFunction(a1, 4720 __ InvokeFunction(a1,
4717 actual, 4721 actual,
4718 JUMP_FUNCTION, 4722 JUMP_FUNCTION,
4719 NullCallWrapper(), 4723 NullCallWrapper(),
4720 CALL_AS_FUNCTION); 4724 CALL_AS_FUNCTION);
4721 4725
4722 // Slow-case: Non-function called. 4726 // Slow-case: Non-function called.
4723 __ bind(&slow); 4727 __ bind(&slow);
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
6665 __ mov(result, zero_reg); 6669 __ mov(result, zero_reg);
6666 __ Ret(); 6670 __ Ret();
6667 } 6671 }
6668 6672
6669 6673
6670 #undef __ 6674 #undef __
6671 6675
6672 } } // namespace v8::internal 6676 } } // namespace v8::internal
6673 6677
6674 #endif // V8_TARGET_ARCH_MIPS 6678 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698