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 <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 SaveContext* prev() { return prev_; } | 1490 SaveContext* prev() { return prev_; } |
1491 | 1491 |
1492 // Returns true if this save context is below a given JavaScript frame. | 1492 // Returns true if this save context is below a given JavaScript frame. |
1493 bool IsBelowFrame(StandardFrame* frame) { | 1493 bool IsBelowFrame(StandardFrame* frame) { |
1494 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); | 1494 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); |
1495 } | 1495 } |
1496 | 1496 |
1497 Isolate* isolate() { return isolate_; } | 1497 Isolate* isolate() { return isolate_; } |
1498 | 1498 |
1499 private: | 1499 private: |
1500 Isolate* isolate_; | 1500 Isolate* const isolate_; |
1501 Handle<Context> context_; | 1501 Handle<Context> context_; |
1502 SaveContext* prev_; | 1502 SaveContext* const prev_; |
1503 Address c_entry_fp_; | 1503 Address c_entry_fp_; |
1504 }; | 1504 }; |
1505 | 1505 |
1506 | 1506 |
1507 class AssertNoContextChange BASE_EMBEDDED { | 1507 class AssertNoContextChange BASE_EMBEDDED { |
1508 #ifdef DEBUG | 1508 #ifdef DEBUG |
1509 public: | 1509 public: |
1510 explicit AssertNoContextChange(Isolate* isolate); | 1510 explicit AssertNoContextChange(Isolate* isolate); |
1511 ~AssertNoContextChange() { | 1511 ~AssertNoContextChange() { |
1512 DCHECK(isolate_->context() == *context_); | 1512 DCHECK(isolate_->context() == *context_); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 | 1672 |
1673 EmbeddedVector<char, 128> filename_; | 1673 EmbeddedVector<char, 128> filename_; |
1674 FILE* file_; | 1674 FILE* file_; |
1675 int scope_depth_; | 1675 int scope_depth_; |
1676 }; | 1676 }; |
1677 | 1677 |
1678 } // namespace internal | 1678 } // namespace internal |
1679 } // namespace v8 | 1679 } // namespace v8 |
1680 | 1680 |
1681 #endif // V8_ISOLATE_H_ | 1681 #endif // V8_ISOLATE_H_ |
OLD | NEW |