Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: src/isolate.h

Issue 2230953002: Use a custom Struct for stack trace storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap-symbols.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/heap-symbols.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698