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

Side by Side Diff: src/isolate.h

Issue 1842763002: [api] Add a switch that controls if ES2015 tail call elimination feature is enabled or not. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-dynamic
Patch Set: Added workaround and TODO to investigate TurboFan issue. Created 4 years, 8 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/compiler/bytecode-graph-builder.cc ('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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698