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

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

Issue 203443009: MIPS: Tweaked FlooringDiv back to TruncatingDiv again. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 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
« 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 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 int pc; 1297 int pc;
1298 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. 1298 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders.
1299 const char* name; 1299 const char* name;
1300 }; 1300 };
1301 1301
1302 Handle<Object> CodeObject() { 1302 Handle<Object> CodeObject() {
1303 ASSERT(!code_object_.is_null()); 1303 ASSERT(!code_object_.is_null());
1304 return code_object_; 1304 return code_object_;
1305 } 1305 }
1306 1306
1307 // Emit code for a flooring division by a constant. The dividend register is 1307 // Emit code for a truncating division by a constant. The dividend register is
1308 // unchanged and at gets clobbered. Dividend and result must be different. 1308 // unchanged and at gets clobbered. Dividend and result must be different.
1309 void FlooringDiv(Register result, Register dividend, int32_t divisor); 1309 void TruncatingDiv(Register result, Register dividend, int32_t divisor);
1310 1310
1311 // ------------------------------------------------------------------------- 1311 // -------------------------------------------------------------------------
1312 // StatsCounter support. 1312 // StatsCounter support.
1313 1313
1314 void SetCounter(StatsCounter* counter, int value, 1314 void SetCounter(StatsCounter* counter, int value,
1315 Register scratch1, Register scratch2); 1315 Register scratch1, Register scratch2);
1316 void IncrementCounter(StatsCounter* counter, int value, 1316 void IncrementCounter(StatsCounter* counter, int value,
1317 Register scratch1, Register scratch2); 1317 Register scratch1, Register scratch2);
1318 void DecrementCounter(StatsCounter* counter, int value, 1318 void DecrementCounter(StatsCounter* counter, int value,
1319 Register scratch1, Register scratch2); 1319 Register scratch1, Register scratch2);
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1673 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1674 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1674 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1675 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1675 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1676 #else 1676 #else
1677 #define ACCESS_MASM(masm) masm-> 1677 #define ACCESS_MASM(masm) masm->
1678 #endif 1678 #endif
1679 1679
1680 } } // namespace v8::internal 1680 } } // namespace v8::internal
1681 1681
1682 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1682 #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