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

Side by Side Diff: src/profile-generator.cc

Issue 1539033: Fix build problems on Windows 64-bit by casting. (Closed)
Patch Set: Created 10 years, 8 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 | « src/liveedit.cc ('k') | src/runtime.cc » ('j') | src/runtime.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return true; 320 return true;
321 } 321 }
322 322
323 323
324 bool CpuProfilesCollection::StartProfiling(String* title, unsigned uid) { 324 bool CpuProfilesCollection::StartProfiling(String* title, unsigned uid) {
325 return StartProfiling(GetName(title), uid); 325 return StartProfiling(GetName(title), uid);
326 } 326 }
327 327
328 328
329 CpuProfile* CpuProfilesCollection::StopProfiling(const char* title) { 329 CpuProfile* CpuProfilesCollection::StopProfiling(const char* title) {
330 const int title_len = strlen(title); 330 const int title_len = StrLength(title);
331 CpuProfile* profile = NULL; 331 CpuProfile* profile = NULL;
332 current_profiles_semaphore_->Wait(); 332 current_profiles_semaphore_->Wait();
333 for (int i = current_profiles_.length() - 1; i >= 0; --i) { 333 for (int i = current_profiles_.length() - 1; i >= 0; --i) {
334 if (title_len == 0 || strcmp(current_profiles_[i]->title(), title) == 0) { 334 if (title_len == 0 || strcmp(current_profiles_[i]->title(), title) == 0) {
335 profile = current_profiles_.Remove(i); 335 profile = current_profiles_.Remove(i);
336 break; 336 break;
337 } 337 }
338 } 338 }
339 current_profiles_semaphore_->Signal(); 339 current_profiles_semaphore_->Signal();
340 340
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 // Put VM state as the topmost entry. 516 // Put VM state as the topmost entry.
517 *entry++ = EntryForVMState(sample.state); 517 *entry++ = EntryForVMState(sample.state);
518 } 518 }
519 519
520 profiles_->AddPathToCurrentProfiles(entries); 520 profiles_->AddPathToCurrentProfiles(entries);
521 } 521 }
522 522
523 } } // namespace v8::internal 523 } } // namespace v8::internal
524 524
525 #endif // ENABLE_CPP_PROFILES_PROCESSOR 525 #endif // ENABLE_CPP_PROFILES_PROCESSOR
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/runtime.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698