| 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 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 // versions of GCC. See V8 issue 122 for details. | 1460 // versions of GCC. See V8 issue 122 for details. |
| 1461 class SaveContext BASE_EMBEDDED { | 1461 class SaveContext BASE_EMBEDDED { |
| 1462 public: | 1462 public: |
| 1463 explicit SaveContext(Isolate* isolate); | 1463 explicit SaveContext(Isolate* isolate); |
| 1464 ~SaveContext(); | 1464 ~SaveContext(); |
| 1465 | 1465 |
| 1466 Handle<Context> context() { return context_; } | 1466 Handle<Context> context() { return context_; } |
| 1467 SaveContext* prev() { return prev_; } | 1467 SaveContext* prev() { return prev_; } |
| 1468 | 1468 |
| 1469 // Returns true if this save context is below a given JavaScript frame. | 1469 // Returns true if this save context is below a given JavaScript frame. |
| 1470 bool IsBelowFrame(JavaScriptFrame* frame) { | 1470 bool IsBelowFrame(StandardFrame* frame) { |
| 1471 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); | 1471 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); |
| 1472 } | 1472 } |
| 1473 | 1473 |
| 1474 private: | 1474 private: |
| 1475 Isolate* isolate_; | 1475 Isolate* isolate_; |
| 1476 Handle<Context> context_; | 1476 Handle<Context> context_; |
| 1477 SaveContext* prev_; | 1477 SaveContext* prev_; |
| 1478 Address c_entry_fp_; | 1478 Address c_entry_fp_; |
| 1479 }; | 1479 }; |
| 1480 | 1480 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 | 1647 |
| 1648 EmbeddedVector<char, 128> filename_; | 1648 EmbeddedVector<char, 128> filename_; |
| 1649 FILE* file_; | 1649 FILE* file_; |
| 1650 int scope_depth_; | 1650 int scope_depth_; |
| 1651 }; | 1651 }; |
| 1652 | 1652 |
| 1653 } // namespace internal | 1653 } // namespace internal |
| 1654 } // namespace v8 | 1654 } // namespace v8 |
| 1655 | 1655 |
| 1656 #endif // V8_ISOLATE_H_ | 1656 #endif // V8_ISOLATE_H_ |
| OLD | NEW |