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

Side by Side Diff: src/isolate.h

Issue 1938413002: [keys] Moving property/keys related methods to KeyAccumulator in keys.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: nits Created 4 years, 7 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 | « no previous file | src/keys.h » ('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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 return GetCurrentStackPosition() < stack_guard->climit(); 1475 return GetCurrentStackPosition() < stack_guard->climit();
1476 } 1476 }
1477 1477
1478 // Use this to check for stack-overflow when entering runtime from JS code. 1478 // Use this to check for stack-overflow when entering runtime from JS code.
1479 bool JsHasOverflowed(uintptr_t gap = 0) const; 1479 bool JsHasOverflowed(uintptr_t gap = 0) const;
1480 1480
1481 private: 1481 private:
1482 Isolate* isolate_; 1482 Isolate* isolate_;
1483 }; 1483 };
1484 1484
1485 #define STACK_CHECK(isolate, result_value) \
1486 do { \
1487 StackLimitCheck stack_check(isolate); \
1488 if (stack_check.HasOverflowed()) { \
1489 isolate->Throw(*isolate->factory()->NewRangeError( \
1490 MessageTemplate::kStackOverflow)); \
1491 return result_value; \
1492 } \
1493 } while (false)
1485 1494
1486 // Support for temporarily postponing interrupts. When the outermost 1495 // Support for temporarily postponing interrupts. When the outermost
1487 // postpone scope is left the interrupts will be re-enabled and any 1496 // postpone scope is left the interrupts will be re-enabled and any
1488 // interrupts that occurred while in the scope will be taken into 1497 // interrupts that occurred while in the scope will be taken into
1489 // account. 1498 // account.
1490 class PostponeInterruptsScope BASE_EMBEDDED { 1499 class PostponeInterruptsScope BASE_EMBEDDED {
1491 public: 1500 public:
1492 PostponeInterruptsScope(Isolate* isolate, 1501 PostponeInterruptsScope(Isolate* isolate,
1493 int intercept_mask = StackGuard::ALL_INTERRUPTS) 1502 int intercept_mask = StackGuard::ALL_INTERRUPTS)
1494 : stack_guard_(isolate->stack_guard()), 1503 : stack_guard_(isolate->stack_guard()),
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 1589
1581 EmbeddedVector<char, 128> filename_; 1590 EmbeddedVector<char, 128> filename_;
1582 FILE* file_; 1591 FILE* file_;
1583 int scope_depth_; 1592 int scope_depth_;
1584 }; 1593 };
1585 1594
1586 } // namespace internal 1595 } // namespace internal
1587 } // namespace v8 1596 } // namespace v8
1588 1597
1589 #endif // V8_ISOLATE_H_ 1598 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698