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

Side by Side Diff: src/platform-macos.cc

Issue 150158: Fix presubmit error. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 thread_state_flavor_t flavor = x86_THREAD_STATE64; 506 thread_state_flavor_t flavor = x86_THREAD_STATE64;
507 x86_thread_state64_t state; 507 x86_thread_state64_t state;
508 mach_msg_type_number_t count = x86_THREAD_STATE64_COUNT; 508 mach_msg_type_number_t count = x86_THREAD_STATE64_COUNT;
509 #elif V8_HOST_ARCH_IA32 509 #elif V8_HOST_ARCH_IA32
510 thread_state_flavor_t flavor = i386_THREAD_STATE; 510 thread_state_flavor_t flavor = i386_THREAD_STATE;
511 i386_thread_state_t state; 511 i386_thread_state_t state;
512 mach_msg_type_number_t count = i386_THREAD_STATE_COUNT; 512 mach_msg_type_number_t count = i386_THREAD_STATE_COUNT;
513 #else 513 #else
514 #error Unsupported Mac OS X host architecture. 514 #error Unsupported Mac OS X host architecture.
515 #endif // V8_TARGET_ARCH_IA32 515 #endif // V8_TARGET_ARCH_IA32
516 if (KERN_SUCCESS == thread_get_state(profiled_thread_, 516 if (thread_get_state(profiled_thread_,
517 flavor, 517 flavor,
518 (natural_t*)&state, 518 reinterpret_cast<natural_t*>(&state),
519 &count)) { 519 &count) == KERN_SUCCESS) {
520 #if V8_HOST_ARCH_X64 520 #if V8_HOST_ARCH_X64
521 UNIMPLEMENTED(); 521 UNIMPLEMENTED();
522 sample.pc = 0; 522 sample.pc = 0;
523 sample.sp = 0; 523 sample.sp = 0;
524 sample.fp = 0; 524 sample.fp = 0;
525 #elif V8_HOST_ARCH_IA32 525 #elif V8_HOST_ARCH_IA32
526 #if __DARWIN_UNIX03 526 #if __DARWIN_UNIX03
527 sample.pc = state.__eip; 527 sample.pc = state.__eip;
528 sample.sp = state.__esp; 528 sample.sp = state.__esp;
529 sample.fp = state.__ebp; 529 sample.fp = state.__ebp;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 605
606 // Deallocate Mach port for thread. 606 // Deallocate Mach port for thread.
607 if (IsProfiling()) { 607 if (IsProfiling()) {
608 mach_port_deallocate(data_->task_self_, data_->profiled_thread_); 608 mach_port_deallocate(data_->task_self_, data_->profiled_thread_);
609 } 609 }
610 } 610 }
611 611
612 #endif // ENABLE_LOGGING_AND_PROFILING 612 #endif // ENABLE_LOGGING_AND_PROFILING
613 613
614 } } // namespace v8::internal 614 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698