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

Side by Side Diff: src/mips/ic-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/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 560
561 // Check that the value isn't a smi. 561 // Check that the value isn't a smi.
562 __ JumpIfSmi(a1, miss); 562 __ JumpIfSmi(a1, miss);
563 563
564 // Check that the value is a JSFunction. 564 // Check that the value is a JSFunction.
565 __ GetObjectType(a1, scratch, scratch); 565 __ GetObjectType(a1, scratch, scratch);
566 __ Branch(miss, ne, scratch, Operand(JS_FUNCTION_TYPE)); 566 __ Branch(miss, ne, scratch, Operand(JS_FUNCTION_TYPE));
567 567
568 // Invoke the function. 568 // Invoke the function.
569 ParameterCount actual(argc); 569 ParameterCount actual(argc);
570 __ InvokeFunction(a1, actual, JUMP_FUNCTION); 570 __ InvokeFunction(a1, actual, JUMP_FUNCTION,
571 NullCallWrapper(), CALL_AS_METHOD);
571 } 572 }
572 573
573 574
574 static void GenerateCallNormal(MacroAssembler* masm, int argc) { 575 static void GenerateCallNormal(MacroAssembler* masm, int argc) {
575 // ----------- S t a t e ------------- 576 // ----------- S t a t e -------------
576 // -- a2 : name 577 // -- a2 : name
577 // -- ra : return address 578 // -- ra : return address
578 // ----------------------------------- 579 // -----------------------------------
579 Label miss; 580 Label miss;
580 581
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch)); 1572 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch));
1572 patcher.masm()->andi(at, reg, kSmiTagMask); 1573 patcher.masm()->andi(at, reg, kSmiTagMask);
1573 patcher.ChangeBranchCondition(eq); 1574 patcher.ChangeBranchCondition(eq);
1574 } 1575 }
1575 } 1576 }
1576 1577
1577 1578
1578 } } // namespace v8::internal 1579 } } // namespace v8::internal
1579 1580
1580 #endif // V8_TARGET_ARCH_MIPS 1581 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698