OLD | NEW |
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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 private: | 1497 private: |
1498 StackGuard* stack_guard_; | 1498 StackGuard* stack_guard_; |
1499 int intercept_mask_; | 1499 int intercept_mask_; |
1500 int intercepted_flags_; | 1500 int intercepted_flags_; |
1501 PostponeInterruptsScope* prev_; | 1501 PostponeInterruptsScope* prev_; |
1502 | 1502 |
1503 friend class StackGuard; | 1503 friend class StackGuard; |
1504 }; | 1504 }; |
1505 | 1505 |
1506 | 1506 |
1507 class CodeTracer FINAL : public Malloced { | 1507 class CodeTracer final : public Malloced { |
1508 public: | 1508 public: |
1509 explicit CodeTracer(int isolate_id) | 1509 explicit CodeTracer(int isolate_id) |
1510 : file_(NULL), | 1510 : file_(NULL), |
1511 scope_depth_(0) { | 1511 scope_depth_(0) { |
1512 if (!ShouldRedirect()) { | 1512 if (!ShouldRedirect()) { |
1513 file_ = stdout; | 1513 file_ = stdout; |
1514 return; | 1514 return; |
1515 } | 1515 } |
1516 | 1516 |
1517 if (FLAG_redirect_code_traces_to == NULL) { | 1517 if (FLAG_redirect_code_traces_to == NULL) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 } | 1568 } |
1569 | 1569 |
1570 EmbeddedVector<char, 128> filename_; | 1570 EmbeddedVector<char, 128> filename_; |
1571 FILE* file_; | 1571 FILE* file_; |
1572 int scope_depth_; | 1572 int scope_depth_; |
1573 }; | 1573 }; |
1574 | 1574 |
1575 } } // namespace v8::internal | 1575 } } // namespace v8::internal |
1576 | 1576 |
1577 #endif // V8_ISOLATE_H_ | 1577 #endif // V8_ISOLATE_H_ |
OLD | NEW |