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

Side by Side Diff: src/heap.h

Issue 7389008: Make Win64 compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Addressed review comments Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ic.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 inline bool OldGenerationPromotionLimitReached() { 1195 inline bool OldGenerationPromotionLimitReached() {
1196 return (PromotedSpaceSize() + PromotedExternalMemorySize()) 1196 return (PromotedSpaceSize() + PromotedExternalMemorySize())
1197 > old_gen_promotion_limit_; 1197 > old_gen_promotion_limit_;
1198 } 1198 }
1199 1199
1200 inline intptr_t OldGenerationSpaceAvailable() { 1200 inline intptr_t OldGenerationSpaceAvailable() {
1201 return old_gen_allocation_limit_ - 1201 return old_gen_allocation_limit_ -
1202 (PromotedSpaceSize() + PromotedExternalMemorySize()); 1202 (PromotedSpaceSize() + PromotedExternalMemorySize());
1203 } 1203 }
1204 1204
1205 inline void LowerOldGenLimits(int bytes) { 1205 inline void LowerOldGenLimits(intptr_t bytes) {
1206 old_gen_promotion_limit_ -= bytes; 1206 old_gen_promotion_limit_ -= bytes;
1207 old_gen_allocation_limit_ -= bytes; 1207 old_gen_allocation_limit_ -= bytes;
1208 } 1208 }
1209 1209
1210 // Can be called when the embedding application is idle. 1210 // Can be called when the embedding application is idle.
1211 bool IdleNotification(); 1211 bool IdleNotification();
1212 1212
1213 // Declare all the root indices. 1213 // Declare all the root indices.
1214 enum RootListIndex { 1214 enum RootListIndex {
1215 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, 1215 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex,
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 2380
2381 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2381 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2382 }; 2382 };
2383 #endif // DEBUG || LIVE_OBJECT_LIST 2383 #endif // DEBUG || LIVE_OBJECT_LIST
2384 2384
2385 } } // namespace v8::internal 2385 } } // namespace v8::internal
2386 2386
2387 #undef HEAP 2387 #undef HEAP
2388 2388
2389 #endif // V8_HEAP_H_ 2389 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698