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

Side by Side Diff: src/globals.h

Issue 596533002: Initial implementation of GetStackSample sampling profiler API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix ARM32 build. Created 6 years, 2 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/api.cc ('k') | src/sampler.h » ('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 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 9
10 #include "src/base/build_config.h" 10 #include "src/base/build_config.h"
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 540
541 // AccessorCallback 541 // AccessorCallback
542 struct AccessorDescriptor { 542 struct AccessorDescriptor {
543 Object* (*getter)(Isolate* isolate, Object* object, void* data); 543 Object* (*getter)(Isolate* isolate, Object* object, void* data);
544 Object* (*setter)( 544 Object* (*setter)(
545 Isolate* isolate, JSObject* object, Object* value, void* data); 545 Isolate* isolate, JSObject* object, Object* value, void* data);
546 void* data; 546 void* data;
547 }; 547 };
548 548
549 549
550 // Logging and profiling. A StateTag represents a possible state of
551 // the VM. The logger maintains a stack of these. Creating a VMState
552 // object enters a state by pushing on the stack, and destroying a
553 // VMState object leaves a state by popping the current state from the
554 // stack.
555
556 enum StateTag {
557 JS,
558 GC,
559 COMPILER,
560 OTHER,
561 EXTERNAL,
562 IDLE
563 };
564
565
566 // ----------------------------------------------------------------------------- 550 // -----------------------------------------------------------------------------
567 // Macros 551 // Macros
568 552
569 // Testers for test. 553 // Testers for test.
570 554
571 #define HAS_SMI_TAG(value) \ 555 #define HAS_SMI_TAG(value) \
572 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) 556 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag)
573 557
574 #define HAS_FAILURE_TAG(value) \ 558 #define HAS_FAILURE_TAG(value) \
575 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag) 559 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag)
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 785
802 inline bool IsConciseMethod(FunctionKind kind) { 786 inline bool IsConciseMethod(FunctionKind kind) {
803 DCHECK(IsValidFunctionKind(kind)); 787 DCHECK(IsValidFunctionKind(kind));
804 return kind & FunctionKind::kConciseMethod; 788 return kind & FunctionKind::kConciseMethod;
805 } 789 }
806 } } // namespace v8::internal 790 } } // namespace v8::internal
807 791
808 namespace i = v8::internal; 792 namespace i = v8::internal;
809 793
810 #endif // V8_GLOBALS_H_ 794 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698