OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top()); | 47 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top()); |
48 } | 48 } |
49 | 49 |
50 | 50 |
51 bool Isolate::IsCodePreAgingActive() { | 51 bool Isolate::IsCodePreAgingActive() { |
52 return FLAG_optimize_for_size && FLAG_age_code && !IsDebuggerActive(); | 52 return FLAG_optimize_for_size && FLAG_age_code && !IsDebuggerActive(); |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 bool Isolate::IsDebuggerActive() { | 56 bool Isolate::IsDebuggerActive() { |
57 #ifdef ENABLE_DEBUGGER_SUPPORT | |
58 if (!NoBarrier_Load(&debugger_initialized_)) return false; | 57 if (!NoBarrier_Load(&debugger_initialized_)) return false; |
59 return debugger()->IsDebuggerActive(); | 58 return debugger()->IsDebuggerActive(); |
60 #else | |
61 return false; | |
62 #endif | |
63 } | 59 } |
64 | 60 |
65 | 61 |
66 bool Isolate::DebuggerHasBreakPoints() { | 62 bool Isolate::DebuggerHasBreakPoints() { |
67 #ifdef ENABLE_DEBUGGER_SUPPORT | |
68 return debug()->has_break_points(); | 63 return debug()->has_break_points(); |
69 #else | |
70 return false; | |
71 #endif | |
72 } | 64 } |
73 | 65 |
74 | 66 |
75 RandomNumberGenerator* Isolate::random_number_generator() { | 67 RandomNumberGenerator* Isolate::random_number_generator() { |
76 if (random_number_generator_ == NULL) { | 68 if (random_number_generator_ == NULL) { |
77 random_number_generator_ = new RandomNumberGenerator; | 69 random_number_generator_ = new RandomNumberGenerator; |
78 } | 70 } |
79 return random_number_generator_; | 71 return random_number_generator_; |
80 } | 72 } |
81 | 73 |
82 } } // namespace v8::internal | 74 } } // namespace v8::internal |
83 | 75 |
84 #endif // V8_ISOLATE_INL_H_ | 76 #endif // V8_ISOLATE_INL_H_ |
OLD | NEW |