| 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 <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } | 1089 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } |
| 1090 #endif | 1090 #endif |
| 1091 | 1091 |
| 1092 // Support for dynamically disabling tail call elimination. | 1092 // Support for dynamically disabling tail call elimination. |
| 1093 Address is_tail_call_elimination_enabled_address() { | 1093 Address is_tail_call_elimination_enabled_address() { |
| 1094 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); | 1094 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); |
| 1095 } | 1095 } |
| 1096 bool is_tail_call_elimination_enabled() const { | 1096 bool is_tail_call_elimination_enabled() const { |
| 1097 return is_tail_call_elimination_enabled_; | 1097 return is_tail_call_elimination_enabled_; |
| 1098 } | 1098 } |
| 1099 void set_tail_call_elimination_enabled(bool enabled) { | 1099 void SetTailCallEliminationEnabled(bool enabled); |
| 1100 is_tail_call_elimination_enabled_ = enabled; | |
| 1101 } | |
| 1102 | 1100 |
| 1103 void AddDetachedContext(Handle<Context> context); | 1101 void AddDetachedContext(Handle<Context> context); |
| 1104 void CheckDetachedContextsAfterGC(); | 1102 void CheckDetachedContextsAfterGC(); |
| 1105 | 1103 |
| 1106 List<Object*>* partial_snapshot_cache() { return &partial_snapshot_cache_; } | 1104 List<Object*>* partial_snapshot_cache() { return &partial_snapshot_cache_; } |
| 1107 | 1105 |
| 1108 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { | 1106 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { |
| 1109 array_buffer_allocator_ = allocator; | 1107 array_buffer_allocator_ = allocator; |
| 1110 } | 1108 } |
| 1111 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1109 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1595 | 1593 |
| 1596 EmbeddedVector<char, 128> filename_; | 1594 EmbeddedVector<char, 128> filename_; |
| 1597 FILE* file_; | 1595 FILE* file_; |
| 1598 int scope_depth_; | 1596 int scope_depth_; |
| 1599 }; | 1597 }; |
| 1600 | 1598 |
| 1601 } // namespace internal | 1599 } // namespace internal |
| 1602 } // namespace v8 | 1600 } // namespace v8 |
| 1603 | 1601 |
| 1604 #endif // V8_ISOLATE_H_ | 1602 #endif // V8_ISOLATE_H_ |
| OLD | NEW |