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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 12413026: MIPS: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 // 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 ASSERT((type == -1) || 470 ASSERT((type == -1) ||
471 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); 471 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)));
472 return type; 472 return type;
473 } 473 }
474 474
475 475
476 476
477 // --------------------------------------------------------------------------- 477 // ---------------------------------------------------------------------------
478 // Allocation support. 478 // Allocation support.
479 479
480 // Allocate an object in new space. The object_size is specified 480 // Allocate an object in new space or old pointer space. The object_size is
481 // either in bytes or in words if the allocation flag SIZE_IN_WORDS 481 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS
482 // is passed. If the new space is exhausted control continues at the 482 // is passed. If the space is exhausted control continues at the gc_required
483 // gc_required label. The allocated object is returned in result. If 483 // label. The allocated object is returned in result. If the flag
484 // the flag tag_allocated_object is true the result is tagged as as 484 // tag_allocated_object is true the result is tagged as as a heap object.
485 // a heap object. All registers are clobbered also when control 485 // All registers are clobbered also when control continues at the gc_required
486 // continues at the gc_required label. 486 // label.
487 void AllocateInNewSpace(int object_size, 487 void Allocate(int object_size,
488 Register result, 488 Register result,
489 Register scratch1, 489 Register scratch1,
490 Register scratch2, 490 Register scratch2,
491 Label* gc_required, 491 Label* gc_required,
492 AllocationFlags flags); 492 AllocationFlags flags);
493
493 void AllocateInNewSpace(Register object_size, 494 void AllocateInNewSpace(Register object_size,
494 Register result, 495 Register result,
495 Register scratch1, 496 Register scratch1,
496 Register scratch2, 497 Register scratch2,
497 Label* gc_required, 498 Label* gc_required,
498 AllocationFlags flags); 499 AllocationFlags flags);
499 500
500 // Undo allocation in new space. The object passed and objects allocated after 501 // Undo allocation in new space. The object passed and objects allocated after
501 // it will no longer be allocated. The caller must make sure that no pointers 502 // it will no longer be allocated. The caller must make sure that no pointers
502 // are left to the object(s) no longer allocated as they would be invalid when 503 // are left to the object(s) no longer allocated as they would be invalid when
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1577 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1577 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1578 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1578 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1579 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1579 #else 1580 #else
1580 #define ACCESS_MASM(masm) masm-> 1581 #define ACCESS_MASM(masm) masm->
1581 #endif 1582 #endif
1582 1583
1583 } } // namespace v8::internal 1584 } } // namespace v8::internal
1584 1585
1585 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1586 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698