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

Side by Side Diff: src/isolate.h

Issue 2220993003: [api] Templatize do_callback parameter in CallDepthScope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting 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/api.cc ('k') | no next file » | 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 SaveContext* prev() { return prev_; } 1490 SaveContext* prev() { return prev_; }
1491 1491
1492 // Returns true if this save context is below a given JavaScript frame. 1492 // Returns true if this save context is below a given JavaScript frame.
1493 bool IsBelowFrame(StandardFrame* frame) { 1493 bool IsBelowFrame(StandardFrame* frame) {
1494 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); 1494 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp());
1495 } 1495 }
1496 1496
1497 Isolate* isolate() { return isolate_; } 1497 Isolate* isolate() { return isolate_; }
1498 1498
1499 private: 1499 private:
1500 Isolate* isolate_; 1500 Isolate* const isolate_;
1501 Handle<Context> context_; 1501 Handle<Context> context_;
1502 SaveContext* prev_; 1502 SaveContext* const prev_;
1503 Address c_entry_fp_; 1503 Address c_entry_fp_;
1504 }; 1504 };
1505 1505
1506 1506
1507 class AssertNoContextChange BASE_EMBEDDED { 1507 class AssertNoContextChange BASE_EMBEDDED {
1508 #ifdef DEBUG 1508 #ifdef DEBUG
1509 public: 1509 public:
1510 explicit AssertNoContextChange(Isolate* isolate); 1510 explicit AssertNoContextChange(Isolate* isolate);
1511 ~AssertNoContextChange() { 1511 ~AssertNoContextChange() {
1512 DCHECK(isolate_->context() == *context_); 1512 DCHECK(isolate_->context() == *context_);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 1672
1673 EmbeddedVector<char, 128> filename_; 1673 EmbeddedVector<char, 128> filename_;
1674 FILE* file_; 1674 FILE* file_;
1675 int scope_depth_; 1675 int scope_depth_;
1676 }; 1676 };
1677 1677
1678 } // namespace internal 1678 } // namespace internal
1679 } // namespace v8 1679 } // namespace v8
1680 1680
1681 #endif // V8_ISOLATE_H_ 1681 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698