| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 // Exit the internal frame. | 1073 // Exit the internal frame. |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 // Restore the function to x1, and the flag to x4. | 1076 // Restore the function to x1, and the flag to x4. |
| 1077 __ Peek(x1, Operand(x0, LSL, kXRegSizeInBytesLog2)); | 1077 __ Peek(x1, Operand(x0, LSL, kXRegSizeInBytesLog2)); |
| 1078 __ Mov(x4, 0); | 1078 __ Mov(x4, 0); |
| 1079 __ B(&patch_receiver); | 1079 __ B(&patch_receiver); |
| 1080 | 1080 |
| 1081 __ Bind(&use_global_receiver); | 1081 __ Bind(&use_global_receiver); |
| 1082 __ Ldr(x2, GlobalObjectMemOperand()); | 1082 __ Ldr(x2, GlobalObjectMemOperand()); |
| 1083 __ Ldr(x2, FieldMemOperand(x2, GlobalObject::kGlobalReceiverOffset)); |
| 1083 | 1084 |
| 1084 __ Bind(&patch_receiver); | 1085 __ Bind(&patch_receiver); |
| 1085 __ Sub(x10, x0, 1); | 1086 __ Sub(x10, x0, 1); |
| 1086 __ Poke(x2, Operand(x10, LSL, kXRegSizeInBytesLog2)); | 1087 __ Poke(x2, Operand(x10, LSL, kXRegSizeInBytesLog2)); |
| 1087 | 1088 |
| 1088 __ B(&shift_arguments); | 1089 __ B(&shift_arguments); |
| 1089 } | 1090 } |
| 1090 | 1091 |
| 1091 // 3b. Check for function proxy. | 1092 // 3b. Check for function proxy. |
| 1092 __ Bind(&slow); | 1093 __ Bind(&slow); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 __ Bind(&dont_adapt_arguments); | 1474 __ Bind(&dont_adapt_arguments); |
| 1474 __ Jump(x3); | 1475 __ Jump(x3); |
| 1475 } | 1476 } |
| 1476 | 1477 |
| 1477 | 1478 |
| 1478 #undef __ | 1479 #undef __ |
| 1479 | 1480 |
| 1480 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
| 1481 | 1482 |
| 1482 #endif // V8_TARGET_ARCH_ARM | 1483 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |