| 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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 // versions of GCC. See V8 issue 122 for details. | 1453 // versions of GCC. See V8 issue 122 for details. |
| 1454 class SaveContext BASE_EMBEDDED { | 1454 class SaveContext BASE_EMBEDDED { |
| 1455 public: | 1455 public: |
| 1456 explicit SaveContext(Isolate* isolate); | 1456 explicit SaveContext(Isolate* isolate); |
| 1457 ~SaveContext(); | 1457 ~SaveContext(); |
| 1458 | 1458 |
| 1459 Handle<Context> context() { return context_; } | 1459 Handle<Context> context() { return context_; } |
| 1460 SaveContext* prev() { return prev_; } | 1460 SaveContext* prev() { return prev_; } |
| 1461 | 1461 |
| 1462 // Returns true if this save context is below a given JavaScript frame. | 1462 // Returns true if this save context is below a given JavaScript frame. |
| 1463 bool IsBelowFrame(JavaScriptFrame* frame) { | 1463 bool IsBelowFrame(StandardFrame* frame) { |
| 1464 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); | 1464 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 private: | 1467 private: |
| 1468 Isolate* isolate_; | 1468 Isolate* isolate_; |
| 1469 Handle<Context> context_; | 1469 Handle<Context> context_; |
| 1470 SaveContext* prev_; | 1470 SaveContext* prev_; |
| 1471 Address c_entry_fp_; | 1471 Address c_entry_fp_; |
| 1472 }; | 1472 }; |
| 1473 | 1473 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 | 1640 |
| 1641 EmbeddedVector<char, 128> filename_; | 1641 EmbeddedVector<char, 128> filename_; |
| 1642 FILE* file_; | 1642 FILE* file_; |
| 1643 int scope_depth_; | 1643 int scope_depth_; |
| 1644 }; | 1644 }; |
| 1645 | 1645 |
| 1646 } // namespace internal | 1646 } // namespace internal |
| 1647 } // namespace v8 | 1647 } // namespace v8 |
| 1648 | 1648 |
| 1649 #endif // V8_ISOLATE_H_ | 1649 #endif // V8_ISOLATE_H_ |
| OLD | NEW |