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

Side by Side Diff: src/debug.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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 | 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 // 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_DEBUG_H_ 5 #ifndef V8_DEBUG_H_
6 #define V8_DEBUG_H_ 6 #define V8_DEBUG_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler.h" 10 #include "src/assembler.h"
11 #include "src/base/platform/platform.h"
11 #include "src/execution.h" 12 #include "src/execution.h"
12 #include "src/factory.h" 13 #include "src/factory.h"
13 #include "src/flags.h" 14 #include "src/flags.h"
14 #include "src/frames-inl.h" 15 #include "src/frames-inl.h"
15 #include "src/hashmap.h" 16 #include "src/hashmap.h"
16 #include "src/liveedit.h" 17 #include "src/liveedit.h"
17 #include "src/platform.h"
18 #include "src/string-stream.h" 18 #include "src/string-stream.h"
19 #include "src/v8threads.h" 19 #include "src/v8threads.h"
20 20
21 #include "include/v8-debug.h" 21 #include "include/v8-debug.h"
22 22
23 namespace v8 { 23 namespace v8 {
24 namespace internal { 24 namespace internal {
25 25
26 26
27 // Forward declarations. 27 // Forward declarations.
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 class LockingCommandMessageQueue BASE_EMBEDDED { 321 class LockingCommandMessageQueue BASE_EMBEDDED {
322 public: 322 public:
323 LockingCommandMessageQueue(Logger* logger, int size); 323 LockingCommandMessageQueue(Logger* logger, int size);
324 bool IsEmpty() const; 324 bool IsEmpty() const;
325 CommandMessage Get(); 325 CommandMessage Get();
326 void Put(const CommandMessage& message); 326 void Put(const CommandMessage& message);
327 void Clear(); 327 void Clear();
328 private: 328 private:
329 Logger* logger_; 329 Logger* logger_;
330 CommandMessageQueue queue_; 330 CommandMessageQueue queue_;
331 mutable Mutex mutex_; 331 mutable base::Mutex mutex_;
332 DISALLOW_COPY_AND_ASSIGN(LockingCommandMessageQueue); 332 DISALLOW_COPY_AND_ASSIGN(LockingCommandMessageQueue);
333 }; 333 };
334 334
335 335
336 class PromiseOnStack { 336 class PromiseOnStack {
337 public: 337 public:
338 PromiseOnStack(Isolate* isolate, 338 PromiseOnStack(Isolate* isolate,
339 PromiseOnStack* prev, 339 PromiseOnStack* prev,
340 Handle<JSFunction> getter); 340 Handle<JSFunction> getter);
341 ~PromiseOnStack(); 341 ~PromiseOnStack();
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 void ThreadInit(); 574 void ThreadInit();
575 575
576 // Global handles. 576 // Global handles.
577 Handle<Context> debug_context_; 577 Handle<Context> debug_context_;
578 Handle<Object> event_listener_; 578 Handle<Object> event_listener_;
579 Handle<Object> event_listener_data_; 579 Handle<Object> event_listener_data_;
580 580
581 v8::Debug::MessageHandler message_handler_; 581 v8::Debug::MessageHandler message_handler_;
582 582
583 static const int kQueueInitialSize = 4; 583 static const int kQueueInitialSize = 4;
584 Semaphore command_received_; // Signaled for each command received. 584 base::Semaphore command_received_; // Signaled for each command received.
585 LockingCommandMessageQueue command_queue_; 585 LockingCommandMessageQueue command_queue_;
586 LockingCommandMessageQueue event_command_queue_; 586 LockingCommandMessageQueue event_command_queue_;
587 587
588 bool is_active_; 588 bool is_active_;
589 bool is_suppressed_; 589 bool is_suppressed_;
590 bool live_edit_enabled_; 590 bool live_edit_enabled_;
591 bool has_break_points_; 591 bool has_break_points_;
592 bool break_disabled_; 592 bool break_disabled_;
593 bool break_on_exception_; 593 bool break_on_exception_;
594 bool break_on_uncaught_exception_; 594 bool break_on_uncaught_exception_;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 // several frames above. 754 // several frames above.
755 // There is no calling conventions here, because it never actually gets 755 // There is no calling conventions here, because it never actually gets
756 // called, it only gets returned to. 756 // called, it only gets returned to.
757 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); 757 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm);
758 }; 758 };
759 759
760 760
761 } } // namespace v8::internal 761 } } // namespace v8::internal
762 762
763 #endif // V8_DEBUG_H_ 763 #endif // V8_DEBUG_H_
OLDNEW
« src/base/macros.h ('K') | « src/date.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698