Index: src/heap-inl.h |
=================================================================== |
--- src/heap-inl.h (revision 11259) |
+++ src/heap-inl.h (working copy) |
@@ -460,15 +460,16 @@ |
} |
-int Heap::AdjustAmountOfExternalAllocatedMemory(int change_in_bytes) { |
+intptr_t Heap::AdjustAmountOfExternalAllocatedMemory( |
+ intptr_t change_in_bytes) { |
ASSERT(HasBeenSetUp()); |
- int amount = amount_of_external_allocated_memory_ + change_in_bytes; |
+ intptr_t amount = amount_of_external_allocated_memory_ + change_in_bytes; |
if (change_in_bytes >= 0) { |
// Avoid overflow. |
if (amount > amount_of_external_allocated_memory_) { |
amount_of_external_allocated_memory_ = amount; |
} |
- int amount_since_last_global_gc = |
+ intptr_t amount_since_last_global_gc = |
amount_of_external_allocated_memory_ - |
amount_of_external_allocated_memory_at_last_global_gc_; |
if (amount_since_last_global_gc > external_allocation_limit_) { |