| 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 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, | 1462 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, |
| 1463 const char*); | 1463 const char*); |
| 1464 | 1464 |
| 1465 DISALLOW_COPY_AND_ASSIGN(Isolate); | 1465 DISALLOW_COPY_AND_ASSIGN(Isolate); |
| 1466 }; | 1466 }; |
| 1467 | 1467 |
| 1468 | 1468 |
| 1469 #undef FIELD_ACCESSOR | 1469 #undef FIELD_ACCESSOR |
| 1470 #undef THREAD_LOCAL_TOP_ACCESSOR | 1470 #undef THREAD_LOCAL_TOP_ACCESSOR |
| 1471 | 1471 |
| 1472 // Constants for stack trace frames encoded into a fixed array. |
| 1473 class EncodedStackTraceFrame : public AllStatic { |
| 1474 public: |
| 1475 static const int kWasmObjectOffset = 0; |
| 1476 static const int kWasmFunctionIndexOffset = 1; |
| 1477 |
| 1478 static const int kReceiverOffset = 0; |
| 1479 static const int kFunctionOffset = 1; |
| 1480 |
| 1481 static const int kCodeOffset = 2; |
| 1482 static const int kOffsetOffset = 3; |
| 1483 static const int kFlagsOffset = 4; |
| 1484 |
| 1485 static const int kElementsPerFrame = 5; |
| 1486 }; |
| 1472 | 1487 |
| 1473 class PromiseOnStack { | 1488 class PromiseOnStack { |
| 1474 public: | 1489 public: |
| 1475 PromiseOnStack(Handle<JSObject> promise, PromiseOnStack* prev) | 1490 PromiseOnStack(Handle<JSObject> promise, PromiseOnStack* prev) |
| 1476 : promise_(promise), prev_(prev) {} | 1491 : promise_(promise), prev_(prev) {} |
| 1477 Handle<JSObject> promise() { return promise_; } | 1492 Handle<JSObject> promise() { return promise_; } |
| 1478 PromiseOnStack* prev() { return prev_; } | 1493 PromiseOnStack* prev() { return prev_; } |
| 1479 | 1494 |
| 1480 private: | 1495 private: |
| 1481 Handle<JSObject> promise_; | 1496 Handle<JSObject> promise_; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 | 1692 |
| 1678 EmbeddedVector<char, 128> filename_; | 1693 EmbeddedVector<char, 128> filename_; |
| 1679 FILE* file_; | 1694 FILE* file_; |
| 1680 int scope_depth_; | 1695 int scope_depth_; |
| 1681 }; | 1696 }; |
| 1682 | 1697 |
| 1683 } // namespace internal | 1698 } // namespace internal |
| 1684 } // namespace v8 | 1699 } // namespace v8 |
| 1685 | 1700 |
| 1686 #endif // V8_ISOLATE_H_ | 1701 #endif // V8_ISOLATE_H_ |
| OLD | NEW |