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

Side by Side Diff: src/platform.h

Issue 13873009: Remove code that analyzes tos values from tickprocessor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // the thread that created it. 735 // the thread that created it.
736 736
737 // TickSample captures the information collected for each sample. 737 // TickSample captures the information collected for each sample.
738 class TickSample { 738 class TickSample {
739 public: 739 public:
740 TickSample() 740 TickSample()
741 : state(OTHER), 741 : state(OTHER),
742 pc(NULL), 742 pc(NULL),
743 sp(NULL), 743 sp(NULL),
744 fp(NULL), 744 fp(NULL),
745 tos(NULL), 745 external_callback(NULL),
746 frames_count(0), 746 frames_count(0) {}
747 has_external_callback(false) {}
748 StateTag state; // The state of the VM. 747 StateTag state; // The state of the VM.
749 Address pc; // Instruction pointer. 748 Address pc; // Instruction pointer.
750 Address sp; // Stack pointer. 749 Address sp; // Stack pointer.
751 Address fp; // Frame pointer. 750 Address fp; // Frame pointer.
752 union { 751 Address external_callback;
753 Address tos; // Top stack value (*sp).
754 Address external_callback;
755 };
756 static const int kMaxFramesCount = 64; 752 static const int kMaxFramesCount = 64;
757 Address stack[kMaxFramesCount]; // Call stack. 753 Address stack[kMaxFramesCount]; // Call stack.
758 int frames_count : 8; // Number of captured frames. 754 int frames_count : 8; // Number of captured frames.
759 bool has_external_callback : 1;
760 }; 755 };
761 756
762 class Sampler { 757 class Sampler {
763 public: 758 public:
764 // Initialize sampler. 759 // Initialize sampler.
765 Sampler(Isolate* isolate, int interval); 760 Sampler(Isolate* isolate, int interval);
766 virtual ~Sampler(); 761 virtual ~Sampler();
767 762
768 int interval() const { return interval_; } 763 int interval() const { return interval_; }
769 764
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 Atomic32 active_; 808 Atomic32 active_;
814 PlatformData* data_; // Platform specific data. 809 PlatformData* data_; // Platform specific data.
815 int samples_taken_; // Counts stack samples taken. 810 int samples_taken_; // Counts stack samples taken.
816 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 811 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
817 }; 812 };
818 813
819 814
820 } } // namespace v8::internal 815 } } // namespace v8::internal
821 816
822 #endif // V8_PLATFORM_H_ 817 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/profile-generator.cc » ('j') | test/cctest/test-cpu-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698