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

Side by Side Diff: src/arm/macro-assembler-arm.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/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('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 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 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 ExternalReference::handle_scope_limit_address(isolate()), 2346 ExternalReference::handle_scope_limit_address(isolate()),
2347 next_address); 2347 next_address);
2348 const int kLevelOffset = AddressOffset( 2348 const int kLevelOffset = AddressOffset(
2349 ExternalReference::handle_scope_level_address(isolate()), 2349 ExternalReference::handle_scope_level_address(isolate()),
2350 next_address); 2350 next_address);
2351 2351
2352 ASSERT(function_address.is(r1) || function_address.is(r2)); 2352 ASSERT(function_address.is(r1) || function_address.is(r2));
2353 2353
2354 Label profiler_disabled; 2354 Label profiler_disabled;
2355 Label end_profiler_check; 2355 Label end_profiler_check;
2356 bool* is_profiling_flag = 2356 mov(r9, Operand(ExternalReference::is_profiling_address(isolate())));
2357 isolate()->cpu_profiler()->is_profiling_address();
2358 STATIC_ASSERT(sizeof(*is_profiling_flag) == 1);
2359 mov(r9, Operand(reinterpret_cast<int32_t>(is_profiling_flag)));
2360 ldrb(r9, MemOperand(r9, 0)); 2357 ldrb(r9, MemOperand(r9, 0));
2361 cmp(r9, Operand(0)); 2358 cmp(r9, Operand(0));
2362 b(eq, &profiler_disabled); 2359 b(eq, &profiler_disabled);
2363 2360
2364 // Additional parameter is the address of the actual callback. 2361 // Additional parameter is the address of the actual callback.
2365 mov(r3, Operand(thunk_ref)); 2362 mov(r3, Operand(thunk_ref));
2366 jmp(&end_profiler_check); 2363 jmp(&end_profiler_check);
2367 2364
2368 bind(&profiler_disabled); 2365 bind(&profiler_disabled);
2369 Move(r3, function_address); 2366 Move(r3, function_address);
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
4090 sub(result, result, Operand(dividend)); 4087 sub(result, result, Operand(dividend));
4091 } 4088 }
4092 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); 4089 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift()));
4093 add(result, result, Operand(dividend, LSR, 31)); 4090 add(result, result, Operand(dividend, LSR, 31));
4094 } 4091 }
4095 4092
4096 4093
4097 } } // namespace v8::internal 4094 } } // namespace v8::internal
4098 4095
4099 #endif // V8_TARGET_ARCH_ARM 4096 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698