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

Side by Side Diff: src/isolate.h

Issue 2482163002: [heap] Remove js call rate heuristic from memory reducer. (Closed)
Patch Set: fix test Created 4 years, 1 month 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/heap/memory-reducer.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 <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 Object* FindCodeObject(Address a); 1066 Object* FindCodeObject(Address a);
1067 1067
1068 int NextOptimizationId() { 1068 int NextOptimizationId() {
1069 int id = next_optimization_id_++; 1069 int id = next_optimization_id_++;
1070 if (!Smi::IsValid(next_optimization_id_)) { 1070 if (!Smi::IsValid(next_optimization_id_)) {
1071 next_optimization_id_ = 0; 1071 next_optimization_id_ = 0;
1072 } 1072 }
1073 return id; 1073 return id;
1074 } 1074 }
1075 1075
1076 void IncrementJsCallsFromApiCounter() { ++js_calls_from_api_counter_; }
1077
1078 unsigned int js_calls_from_api_counter() {
1079 return js_calls_from_api_counter_;
1080 }
1081
1082 // Get (and lazily initialize) the registry for per-isolate symbols. 1076 // Get (and lazily initialize) the registry for per-isolate symbols.
1083 Handle<JSObject> GetSymbolRegistry(); 1077 Handle<JSObject> GetSymbolRegistry();
1084 1078
1085 void AddCallCompletedCallback(CallCompletedCallback callback); 1079 void AddCallCompletedCallback(CallCompletedCallback callback);
1086 void RemoveCallCompletedCallback(CallCompletedCallback callback); 1080 void RemoveCallCompletedCallback(CallCompletedCallback callback);
1087 void FireCallCompletedCallback(); 1081 void FireCallCompletedCallback();
1088 1082
1089 void AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback); 1083 void AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback);
1090 void RemoveBeforeCallEnteredCallback(BeforeCallEnteredCallback callback); 1084 void RemoveBeforeCallEnteredCallback(BeforeCallEnteredCallback callback);
1091 inline void FireBeforeCallEnteredCallback(); 1085 inline void FireBeforeCallEnteredCallback();
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 #endif 1403 #endif
1410 1404
1411 DeferredHandles* deferred_handles_head_; 1405 DeferredHandles* deferred_handles_head_;
1412 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; 1406 OptimizingCompileDispatcher* optimizing_compile_dispatcher_;
1413 1407
1414 // Counts deopt points if deopt_every_n_times is enabled. 1408 // Counts deopt points if deopt_every_n_times is enabled.
1415 unsigned int stress_deopt_count_; 1409 unsigned int stress_deopt_count_;
1416 1410
1417 int next_optimization_id_; 1411 int next_optimization_id_;
1418 1412
1419 // Counts javascript calls from the API. Wraps around on overflow.
1420 unsigned int js_calls_from_api_counter_;
1421
1422 #if TRACE_MAPS 1413 #if TRACE_MAPS
1423 int next_unique_sfi_id_; 1414 int next_unique_sfi_id_;
1424 #endif 1415 #endif
1425 1416
1426 // List of callbacks before a Call starts execution. 1417 // List of callbacks before a Call starts execution.
1427 List<BeforeCallEnteredCallback> before_call_entered_callbacks_; 1418 List<BeforeCallEnteredCallback> before_call_entered_callbacks_;
1428 1419
1429 // List of callbacks when a Call completes. 1420 // List of callbacks when a Call completes.
1430 List<CallCompletedCallback> call_completed_callbacks_; 1421 List<CallCompletedCallback> call_completed_callbacks_;
1431 1422
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 1671
1681 EmbeddedVector<char, 128> filename_; 1672 EmbeddedVector<char, 128> filename_;
1682 FILE* file_; 1673 FILE* file_;
1683 int scope_depth_; 1674 int scope_depth_;
1684 }; 1675 };
1685 1676
1686 } // namespace internal 1677 } // namespace internal
1687 } // namespace v8 1678 } // namespace v8
1688 1679
1689 #endif // V8_ISOLATE_H_ 1680 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/memory-reducer.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698