| 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 | 1118 |
| 1119 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, | 1119 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, |
| 1120 bool is_construct) { | 1120 bool is_construct) { |
| 1121 // Called from Generate_JS_Entry | 1121 // Called from Generate_JS_Entry |
| 1122 // r0: code entry | 1122 // r0: code entry |
| 1123 // r1: function | 1123 // r1: function |
| 1124 // r2: receiver | 1124 // r2: receiver |
| 1125 // r3: argc | 1125 // r3: argc |
| 1126 // r4: argv | 1126 // r4: argv |
| 1127 // r5-r7, cp may be clobbered | 1127 // r5-r7, cp may be clobbered |
| 1128 ProfileEntryHookStub::MaybeCallEntryHook(masm); |
| 1128 | 1129 |
| 1129 // Clear the context before we push it when entering the internal frame. | 1130 // Clear the context before we push it when entering the internal frame. |
| 1130 __ mov(cp, Operand::Zero()); | 1131 __ mov(cp, Operand::Zero()); |
| 1131 | 1132 |
| 1132 // Enter an internal frame. | 1133 // Enter an internal frame. |
| 1133 { | 1134 { |
| 1134 FrameScope scope(masm, StackFrame::INTERNAL); | 1135 FrameScope scope(masm, StackFrame::INTERNAL); |
| 1135 | 1136 |
| 1136 // Set up the context from the function argument. | 1137 // Set up the context from the function argument. |
| 1137 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); | 1138 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1883 __ bind(&dont_adapt_arguments); | 1884 __ bind(&dont_adapt_arguments); |
| 1884 __ Jump(r3); | 1885 __ Jump(r3); |
| 1885 } | 1886 } |
| 1886 | 1887 |
| 1887 | 1888 |
| 1888 #undef __ | 1889 #undef __ |
| 1889 | 1890 |
| 1890 } } // namespace v8::internal | 1891 } } // namespace v8::internal |
| 1891 | 1892 |
| 1892 #endif // V8_TARGET_ARCH_ARM | 1893 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |