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

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 254783003: Convert function.name to API-style accessor and make CallApiGetterStub serializable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/arm64/code-stubs-arm64.cc ('k') | src/assembler.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698