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

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

Issue 12855004: MIPS: Generalizing remaining Allocate functions in the macro assemblers used in pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // tag_allocated_object is true the result is tagged as as a heap object. 484 // tag_allocated_object is true the result is tagged as as a heap object.
485 // All registers are clobbered also when control continues at the gc_required 485 // All registers are clobbered also when control continues at the gc_required
486 // label. 486 // label.
487 void Allocate(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
494 void AllocateInNewSpace(Register object_size, 494 void Allocate(Register object_size,
495 Register result, 495 Register result,
496 Register scratch1, 496 Register scratch1,
497 Register scratch2, 497 Register scratch2,
498 Label* gc_required, 498 Label* gc_required,
499 AllocationFlags flags); 499 AllocationFlags flags);
500 500
501 // 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
502 // 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
503 // 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
504 // allocation is undone. 504 // allocation is undone.
505 void UndoAllocationInNewSpace(Register object, Register scratch); 505 void UndoAllocationInNewSpace(Register object, Register scratch);
506 506
507 507
508 void AllocateTwoByteString(Register result, 508 void AllocateTwoByteString(Register result,
509 Register length, 509 Register length,
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1577 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1578 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1578 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1579 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1579 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1580 #else 1580 #else
1581 #define ACCESS_MASM(masm) masm-> 1581 #define ACCESS_MASM(masm) masm->
1582 #endif 1582 #endif
1583 1583
1584 } } // namespace v8::internal 1584 } } // namespace v8::internal
1585 1585
1586 #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