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

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

Issue 1632913003: [heap] Move to page lookups for SemiSpace, NewSpace, and Heap containment methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips ports Created 4 years, 10 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Register scratch, 356 Register scratch,
357 int mask, 357 int mask,
358 Condition cc, 358 Condition cc,
359 Label* condition_met); 359 Label* condition_met);
360 360
361 // Check if object is in new space. Jumps if the object is not in new space. 361 // Check if object is in new space. Jumps if the object is not in new space.
362 // The register scratch can be object itself, but it will be clobbered. 362 // The register scratch can be object itself, but it will be clobbered.
363 void JumpIfNotInNewSpace(Register object, 363 void JumpIfNotInNewSpace(Register object,
364 Register scratch, 364 Register scratch,
365 Label* branch) { 365 Label* branch) {
366 InNewSpace(object, scratch, ne, branch); 366 InNewSpace(object, scratch, eq, branch);
367 } 367 }
368 368
369 // Check if object is in new space. Jumps if the object is in new space. 369 // Check if object is in new space. Jumps if the object is in new space.
370 // The register scratch can be object itself, but scratch will be clobbered. 370 // The register scratch can be object itself, but scratch will be clobbered.
371 void JumpIfInNewSpace(Register object, 371 void JumpIfInNewSpace(Register object,
372 Register scratch, 372 Register scratch,
373 Label* branch) { 373 Label* branch) {
374 InNewSpace(object, scratch, eq, branch); 374 InNewSpace(object, scratch, ne, branch);
375 } 375 }
376 376
377 // Check if an object has a given incremental marking color. 377 // Check if an object has a given incremental marking color.
378 void HasColor(Register object, 378 void HasColor(Register object,
379 Register scratch0, 379 Register scratch0,
380 Register scratch1, 380 Register scratch1,
381 Label* has_color, 381 Label* has_color,
382 int first_bit, 382 int first_bit,
383 int second_bit); 383 int second_bit);
384 384
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 InvokeFlag flag, 1684 InvokeFlag flag,
1685 const CallWrapper& call_wrapper); 1685 const CallWrapper& call_wrapper);
1686 1686
1687 void InitializeNewString(Register string, 1687 void InitializeNewString(Register string,
1688 Register length, 1688 Register length,
1689 Heap::RootListIndex map_index, 1689 Heap::RootListIndex map_index,
1690 Register scratch1, 1690 Register scratch1,
1691 Register scratch2); 1691 Register scratch2);
1692 1692
1693 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. 1693 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace.
1694 void InNewSpace(Register object, 1694 void InNewSpace(Register object, Register scratch,
1695 Register scratch, 1695 Condition cond, // ne for new space, eq otherwise.
1696 Condition cond, // eq for new space, ne otherwise.
1697 Label* branch); 1696 Label* branch);
1698 1697
1699 // Helper for finding the mark bits for an address. Afterwards, the 1698 // Helper for finding the mark bits for an address. Afterwards, the
1700 // bitmap register points at the word with the mark bits and the mask 1699 // bitmap register points at the word with the mark bits and the mask
1701 // the position of the first bit. Leaves addr_reg unchanged. 1700 // the position of the first bit. Leaves addr_reg unchanged.
1702 inline void GetMarkBits(Register addr_reg, 1701 inline void GetMarkBits(Register addr_reg,
1703 Register bitmap_reg, 1702 Register bitmap_reg,
1704 Register mask_reg); 1703 Register mask_reg);
1705 1704
1706 // Compute memory operands for safepoint stack slots. 1705 // Compute memory operands for safepoint stack slots.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1785 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1787 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1786 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1788 #else 1787 #else
1789 #define ACCESS_MASM(masm) masm-> 1788 #define ACCESS_MASM(masm) masm->
1790 #endif 1789 #endif
1791 1790
1792 } // namespace internal 1791 } // namespace internal
1793 } // namespace v8 1792 } // namespace v8
1794 1793
1795 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1794 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698