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