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

Side by Side Diff: src/arm/ic-arm.cc

Issue 7086029: Fix a number of IC stubs to correctly set the call kind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Load global object from rsi on x64. 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // Check that the value isn't a smi. 550 // Check that the value isn't a smi.
551 __ tst(r1, Operand(kSmiTagMask)); 551 __ tst(r1, Operand(kSmiTagMask));
552 __ b(eq, miss); 552 __ b(eq, miss);
553 553
554 // Check that the value is a JSFunction. 554 // Check that the value is a JSFunction.
555 __ CompareObjectType(r1, scratch, scratch, JS_FUNCTION_TYPE); 555 __ CompareObjectType(r1, scratch, scratch, JS_FUNCTION_TYPE);
556 __ b(ne, miss); 556 __ b(ne, miss);
557 557
558 // Invoke the function. 558 // Invoke the function.
559 ParameterCount actual(argc); 559 ParameterCount actual(argc);
560 __ InvokeFunction(r1, actual, JUMP_FUNCTION); 560 __ InvokeFunction(r1, actual, JUMP_FUNCTION,
561 NullCallWrapper(), CALL_AS_METHOD);
561 } 562 }
562 563
563 564
564 static void GenerateCallNormal(MacroAssembler* masm, int argc) { 565 static void GenerateCallNormal(MacroAssembler* masm, int argc) {
565 // ----------- S t a t e ------------- 566 // ----------- S t a t e -------------
566 // -- r2 : name 567 // -- r2 : name
567 // -- lr : return address 568 // -- lr : return address
568 // ----------------------------------- 569 // -----------------------------------
569 Label miss; 570 Label miss;
570 571
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 Register reg = Assembler::GetRn(instr_at_patch); 1554 Register reg = Assembler::GetRn(instr_at_patch);
1554 patcher.masm()->tst(reg, Operand(kSmiTagMask)); 1555 patcher.masm()->tst(reg, Operand(kSmiTagMask));
1555 patcher.EmitCondition(eq); 1556 patcher.EmitCondition(eq);
1556 } 1557 }
1557 } 1558 }
1558 1559
1559 1560
1560 } } // namespace v8::internal 1561 } } // namespace v8::internal
1561 1562
1562 #endif // V8_TARGET_ARCH_ARM 1563 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698