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/debug.h

Issue 332673002: Introduce intrinsic to expose debug state to generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/collection.js ('k') | src/hydrogen.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 #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"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 inline bool has_break_points() const { return has_break_points_; } 498 inline bool has_break_points() const { return has_break_points_; }
499 inline bool in_debug_scope() const { 499 inline bool in_debug_scope() const {
500 return thread_local_.current_debug_scope_ != NULL; 500 return thread_local_.current_debug_scope_ != NULL;
501 } 501 }
502 void set_disable_break(bool v) { break_disabled_ = v; } 502 void set_disable_break(bool v) { break_disabled_ = v; }
503 503
504 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; } 504 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; }
505 int break_id() { return thread_local_.break_id_; } 505 int break_id() { return thread_local_.break_id_; }
506 506
507 // Support for embedding into generated code. 507 // Support for embedding into generated code.
508 Address is_active_address() {
509 return reinterpret_cast<Address>(&is_active_);
510 }
511
508 Address after_break_target_address() { 512 Address after_break_target_address() {
509 return reinterpret_cast<Address>(&after_break_target_); 513 return reinterpret_cast<Address>(&after_break_target_);
510 } 514 }
511 515
512 Address restarter_frame_function_pointer_address() { 516 Address restarter_frame_function_pointer_address() {
513 Object*** address = &thread_local_.restarter_frame_function_pointer_; 517 Object*** address = &thread_local_.restarter_frame_function_pointer_;
514 return reinterpret_cast<Address>(address); 518 return reinterpret_cast<Address>(address);
515 } 519 }
516 520
517 Address step_in_fp_addr() { 521 Address step_in_fp_addr() {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 // several frames above. 769 // several frames above.
766 // There is no calling conventions here, because it never actually gets 770 // There is no calling conventions here, because it never actually gets
767 // called, it only gets returned to. 771 // called, it only gets returned to.
768 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); 772 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm);
769 }; 773 };
770 774
771 775
772 } } // namespace v8::internal 776 } } // namespace v8::internal
773 777
774 #endif // V8_DEBUG_H_ 778 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/collection.js ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698