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 | 10 |
(...skipping 1111 matching lines...) Loading... | |
1122 std::string GetTurboCfgFileName(); | 1122 std::string GetTurboCfgFileName(); |
1123 | 1123 |
1124 #if TRACE_MAPS | 1124 #if TRACE_MAPS |
1125 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } | 1125 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } |
1126 #endif | 1126 #endif |
1127 | 1127 |
1128 Address promise_hook_address() { | 1128 Address promise_hook_address() { |
1129 return reinterpret_cast<Address>(&promise_hook_); | 1129 return reinterpret_cast<Address>(&promise_hook_); |
1130 } | 1130 } |
1131 void SetPromiseHook(PromiseHook hook); | 1131 void SetPromiseHook(PromiseHook hook); |
1132 void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, | 1132 void RunPromiseHook(PromiseHookType type, Handle<JSObject> promise, |
Dan Ehrenberg
2016/12/20 22:45:18
I don't see how the promise here would not be a JS
gsathya
2016/12/20 23:47:26
You're right. I was under the wrong impression tha
| |
1133 Handle<Object> parent); | 1133 Handle<Object> parent); |
1134 | 1134 |
1135 // Support for dynamically disabling tail call elimination. | 1135 // Support for dynamically disabling tail call elimination. |
1136 Address is_tail_call_elimination_enabled_address() { | 1136 Address is_tail_call_elimination_enabled_address() { |
1137 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); | 1137 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); |
1138 } | 1138 } |
1139 bool is_tail_call_elimination_enabled() const { | 1139 bool is_tail_call_elimination_enabled() const { |
1140 return is_tail_call_elimination_enabled_; | 1140 return is_tail_call_elimination_enabled_; |
1141 } | 1141 } |
1142 void SetTailCallEliminationEnabled(bool enabled); | 1142 void SetTailCallEliminationEnabled(bool enabled); |
(...skipping 554 matching lines...) Loading... | |
1697 | 1697 |
1698 EmbeddedVector<char, 128> filename_; | 1698 EmbeddedVector<char, 128> filename_; |
1699 FILE* file_; | 1699 FILE* file_; |
1700 int scope_depth_; | 1700 int scope_depth_; |
1701 }; | 1701 }; |
1702 | 1702 |
1703 } // namespace internal | 1703 } // namespace internal |
1704 } // namespace v8 | 1704 } // namespace v8 |
1705 | 1705 |
1706 #endif // V8_ISOLATE_H_ | 1706 #endif // V8_ISOLATE_H_ |
OLD | NEW |