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

Unified Diff: src/spaces-inl.h

Issue 549079: Support for MIPS in architecture independent files.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/spaces-inl.h
===================================================================
--- src/spaces-inl.h (revision 3220)
+++ src/spaces-inl.h (working copy)
@@ -283,7 +283,13 @@
HeapObject* PagedSpace::AllocateLinearly(AllocationInfo* alloc_info,
int size_in_bytes) {
Address current_top = alloc_info->top;
+//// TODO(MIPS.6)
+//#ifdef V8_TARGET_ARCH_MIPS
+// Address new_top = current_top + RoundUp(size_in_bytes,8);
+//#else
Address new_top = current_top + size_in_bytes;
+//#endif
+
if (new_top > alloc_info->limit) return NULL;
alloc_info->top = new_top;
@@ -345,7 +351,15 @@
Object* NewSpace::AllocateRawInternal(int size_in_bytes,
AllocationInfo* alloc_info) {
- Address new_top = alloc_info->top + size_in_bytes;
+
+ Address current_top = alloc_info->top;
+//// TODO(MIPS.6)
+//#ifdef V8_TARGET_ARCH_MIPS
+// Address new_top = current_top + RoundUp(size_in_bytes,8);
+//#else
+ Address new_top = current_top + size_in_bytes;
+//#endif
+
if (new_top > alloc_info->limit) return Failure::RetryAfterGC(size_in_bytes);
Object* obj = HeapObject::FromAddress(alloc_info->top);
« src/platform-linux.cc ('K') | « src/register-allocator-inl.h ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698