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

Side by Side Diff: include/v8.h

Issue 2049903002: Revert of Move stack trace extraction code out of TickSample::Init (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | src/profiler/profile-generator.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 * Returns whether or not the associated function is called as a 1606 * Returns whether or not the associated function is called as a
1607 * constructor via "new". 1607 * constructor via "new".
1608 */ 1608 */
1609 bool IsConstructor() const; 1609 bool IsConstructor() const;
1610 }; 1610 };
1611 1611
1612 1612
1613 // A StateTag represents a possible state of the VM. 1613 // A StateTag represents a possible state of the VM.
1614 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; 1614 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE };
1615 1615
1616
1616 // A RegisterState represents the current state of registers used 1617 // A RegisterState represents the current state of registers used
1617 // by the sampling profiler API. 1618 // by the sampling profiler API.
1618 struct RegisterState { 1619 struct RegisterState {
1619 RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr) {} 1620 RegisterState() : pc(NULL), sp(NULL), fp(NULL) {}
1620 void* pc; // Instruction pointer. 1621 void* pc; // Instruction pointer.
1621 void* sp; // Stack pointer. 1622 void* sp; // Stack pointer.
1622 void* fp; // Frame pointer. 1623 void* fp; // Frame pointer.
1623 }; 1624 };
1624 1625
1626
1625 // The output structure filled up by GetStackSample API function. 1627 // The output structure filled up by GetStackSample API function.
1626 struct SampleInfo { 1628 struct SampleInfo {
1627 size_t frames_count; // Number of frames collected. 1629 size_t frames_count;
1628 StateTag vm_state; // Current VM state. 1630 StateTag vm_state;
1629 void* external_callback_entry; // External callback address if VM is
1630 // executing an external callback.
1631 }; 1631 };
1632 1632
1633 /** 1633 /**
1634 * A JSON Parser and Stringifier. 1634 * A JSON Parser and Stringifier.
1635 */ 1635 */
1636 class V8_EXPORT JSON { 1636 class V8_EXPORT JSON {
1637 public: 1637 public:
1638 /** 1638 /**
1639 * Tries to parse the string |json_string| and returns it as value if 1639 * Tries to parse the string |json_string| and returns it as value if
1640 * successful. 1640 * successful.
(...skipping 7137 matching lines...) Expand 10 before | Expand all | Expand 10 after
8778 */ 8778 */
8779 8779
8780 8780
8781 } // namespace v8 8781 } // namespace v8
8782 8782
8783 8783
8784 #undef TYPE_CHECK 8784 #undef TYPE_CHECK
8785 8785
8786 8786
8787 #endif // INCLUDE_V8_H_ 8787 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/profiler/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698