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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 ExternalReference::handle_scope_limit_address(isolate()), | 1676 ExternalReference::handle_scope_limit_address(isolate()), |
1677 next_address); | 1677 next_address); |
1678 const int kLevelOffset = AddressOffset( | 1678 const int kLevelOffset = AddressOffset( |
1679 ExternalReference::handle_scope_level_address(isolate()), | 1679 ExternalReference::handle_scope_level_address(isolate()), |
1680 next_address); | 1680 next_address); |
1681 | 1681 |
1682 ASSERT(function_address.is(x1) || function_address.is(x2)); | 1682 ASSERT(function_address.is(x1) || function_address.is(x2)); |
1683 | 1683 |
1684 Label profiler_disabled; | 1684 Label profiler_disabled; |
1685 Label end_profiler_check; | 1685 Label end_profiler_check; |
1686 bool* is_profiling_flag = isolate()->cpu_profiler()->is_profiling_address(); | 1686 Mov(x10, ExternalReference::is_profiling_address(isolate())); |
1687 STATIC_ASSERT(sizeof(*is_profiling_flag) == 1); | |
1688 Mov(x10, reinterpret_cast<uintptr_t>(is_profiling_flag)); | |
1689 Ldrb(w10, MemOperand(x10)); | 1687 Ldrb(w10, MemOperand(x10)); |
1690 Cbz(w10, &profiler_disabled); | 1688 Cbz(w10, &profiler_disabled); |
1691 Mov(x3, thunk_ref); | 1689 Mov(x3, thunk_ref); |
1692 B(&end_profiler_check); | 1690 B(&end_profiler_check); |
1693 | 1691 |
1694 Bind(&profiler_disabled); | 1692 Bind(&profiler_disabled); |
1695 Mov(x3, function_address); | 1693 Mov(x3, function_address); |
1696 Bind(&end_profiler_check); | 1694 Bind(&end_profiler_check); |
1697 | 1695 |
1698 // Save the callee-save registers we are going to use. | 1696 // Save the callee-save registers we are going to use. |
(...skipping 3545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5244 } | 5242 } |
5245 } | 5243 } |
5246 | 5244 |
5247 | 5245 |
5248 #undef __ | 5246 #undef __ |
5249 | 5247 |
5250 | 5248 |
5251 } } // namespace v8::internal | 5249 } } // namespace v8::internal |
5252 | 5250 |
5253 #endif // V8_TARGET_ARCH_ARM64 | 5251 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |