| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |