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

Side by Side Diff: src/isolate-inl.h

Issue 265593004: Always initialize the debugger eagerly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/isolate.cc ('k') | src/liveedit.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_ISOLATE_INL_H_ 5 #ifndef V8_ISOLATE_INL_H_
6 #define V8_ISOLATE_INL_H_ 6 #define V8_ISOLATE_INL_H_
7 7
8 #include "debug.h" 8 #include "debug.h"
9 #include "isolate.h" 9 #include "isolate.h"
10 #include "utils/random-number-generator.h" 10 #include "utils/random-number-generator.h"
(...skipping 13 matching lines...) Expand all
24 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top()); 24 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top());
25 } 25 }
26 26
27 27
28 bool Isolate::IsCodePreAgingActive() { 28 bool Isolate::IsCodePreAgingActive() {
29 return FLAG_optimize_for_size && FLAG_age_code && !IsDebuggerActive(); 29 return FLAG_optimize_for_size && FLAG_age_code && !IsDebuggerActive();
30 } 30 }
31 31
32 32
33 bool Isolate::IsDebuggerActive() { 33 bool Isolate::IsDebuggerActive() {
34 if (!NoBarrier_Load(&debugger_initialized_)) return false;
35 return debugger()->IsDebuggerActive(); 34 return debugger()->IsDebuggerActive();
36 } 35 }
37 36
38 37
39 bool Isolate::DebuggerHasBreakPoints() { 38 bool Isolate::DebuggerHasBreakPoints() {
40 return debug()->has_break_points(); 39 return debug()->has_break_points();
41 } 40 }
42 41
43 42
44 RandomNumberGenerator* Isolate::random_number_generator() { 43 RandomNumberGenerator* Isolate::random_number_generator() {
45 if (random_number_generator_ == NULL) { 44 if (random_number_generator_ == NULL) {
46 random_number_generator_ = new RandomNumberGenerator; 45 random_number_generator_ = new RandomNumberGenerator;
47 } 46 }
48 return random_number_generator_; 47 return random_number_generator_;
49 } 48 }
50 49
51 } } // namespace v8::internal 50 } } // namespace v8::internal
52 51
53 #endif // V8_ISOLATE_INL_H_ 52 #endif // V8_ISOLATE_INL_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698