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

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

Issue 892613003: MIPS: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove printf formatter changes. Created 5 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/mips64/full-codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.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/mips64/assembler-mips64.h" 10 #include "src/mips64/assembler-mips64.h"
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 1125
1126 // Load and check the instance type of an object for being a string. 1126 // Load and check the instance type of an object for being a string.
1127 // Loads the type into the second argument register. 1127 // Loads the type into the second argument register.
1128 // Returns a condition that will be enabled if the object was a string. 1128 // Returns a condition that will be enabled if the object was a string.
1129 Condition IsObjectStringType(Register obj, 1129 Condition IsObjectStringType(Register obj,
1130 Register type, 1130 Register type,
1131 Register result) { 1131 Register result) {
1132 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset)); 1132 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset));
1133 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); 1133 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset));
1134 And(type, type, Operand(kIsNotStringMask)); 1134 And(type, type, Operand(kIsNotStringMask));
1135 DCHECK_EQ(0, kStringTag); 1135 DCHECK_EQ(0u, kStringTag);
1136 return eq; 1136 return eq;
1137 } 1137 }
1138 1138
1139 1139
1140 // Picks out an array index from the hash field. 1140 // Picks out an array index from the hash field.
1141 // Register use: 1141 // Register use:
1142 // hash - holds the index's hash. Clobbered. 1142 // hash - holds the index's hash. Clobbered.
1143 // index - holds the overwritten index on exit. 1143 // index - holds the overwritten index on exit.
1144 void IndexFromHash(Register hash, Register index); 1144 void IndexFromHash(Register hash, Register index);
1145 1145
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1780 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1781 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1781 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1782 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1782 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1783 #else 1783 #else
1784 #define ACCESS_MASM(masm) masm-> 1784 #define ACCESS_MASM(masm) masm->
1785 #endif 1785 #endif
1786 1786
1787 } } // namespace v8::internal 1787 } } // namespace v8::internal
1788 1788
1789 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1789 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698