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/heap/heap.h

Issue 750813003: Use deadline in IdleNotification. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
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_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 int freed_global_handles); 1097 int freed_global_handles);
1098 1098
1099 // Indicates whether inline bump-pointer allocation has been disabled. 1099 // Indicates whether inline bump-pointer allocation has been disabled.
1100 bool inline_allocation_disabled() { return inline_allocation_disabled_; } 1100 bool inline_allocation_disabled() { return inline_allocation_disabled_; }
1101 1101
1102 // Switch whether inline bump-pointer allocation should be used. 1102 // Switch whether inline bump-pointer allocation should be used.
1103 void EnableInlineAllocation(); 1103 void EnableInlineAllocation();
1104 void DisableInlineAllocation(); 1104 void DisableInlineAllocation();
1105 1105
1106 // Implements the corresponding V8 API function. 1106 // Implements the corresponding V8 API function.
1107 bool IdleNotification(double deadline);
1107 bool IdleNotification(int idle_time_in_ms); 1108 bool IdleNotification(int idle_time_in_ms);
1108 1109
1109 // Declare all the root indices. This defines the root list order. 1110 // Declare all the root indices. This defines the root list order.
1110 enum RootListIndex { 1111 enum RootListIndex {
1111 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, 1112 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex,
1112 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) 1113 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION)
1113 #undef ROOT_INDEX_DECLARATION 1114 #undef ROOT_INDEX_DECLARATION
1114 1115
1115 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex, 1116 #define STRING_INDEX_DECLARATION(name, str) k##name##RootIndex,
1116 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION) 1117 INTERNALIZED_STRING_LIST(STRING_INDEX_DECLARATION)
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2573 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2573 2574
2574 private: 2575 private:
2575 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2576 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2576 }; 2577 };
2577 #endif // DEBUG 2578 #endif // DEBUG
2578 } 2579 }
2579 } // namespace v8::internal 2580 } // namespace v8::internal
2580 2581
2581 #endif // V8_HEAP_HEAP_H_ 2582 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698