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

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

Issue 190383002: Handle non-power-of-2 divisors in division-like operations (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1148
1149 // Store the function for the given builtin in the target register. 1149 // Store the function for the given builtin in the target register.
1150 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 1150 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
1151 1151
1152 Handle<Object> CodeObject() { 1152 Handle<Object> CodeObject() {
1153 ASSERT(!code_object_.is_null()); 1153 ASSERT(!code_object_.is_null());
1154 return code_object_; 1154 return code_object_;
1155 } 1155 }
1156 1156
1157 1157
1158 // Emit code for a flooring division by a constant. The dividend register is
1159 // unchanged and ip gets clobbered. Dividend and result must be different.
1160 void FlooringDiv(Register result, Register dividend, int32_t divisor);
1161
1158 // --------------------------------------------------------------------------- 1162 // ---------------------------------------------------------------------------
1159 // StatsCounter support 1163 // StatsCounter support
1160 1164
1161 void SetCounter(StatsCounter* counter, int value, 1165 void SetCounter(StatsCounter* counter, int value,
1162 Register scratch1, Register scratch2); 1166 Register scratch1, Register scratch2);
1163 void IncrementCounter(StatsCounter* counter, int value, 1167 void IncrementCounter(StatsCounter* counter, int value,
1164 Register scratch1, Register scratch2); 1168 Register scratch1, Register scratch2);
1165 void DecrementCounter(StatsCounter* counter, int value, 1169 void DecrementCounter(StatsCounter* counter, int value,
1166 Register scratch1, Register scratch2); 1170 Register scratch1, Register scratch2);
1167 1171
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1532 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1529 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1533 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1530 #else 1534 #else
1531 #define ACCESS_MASM(masm) masm-> 1535 #define ACCESS_MASM(masm) masm->
1532 #endif 1536 #endif
1533 1537
1534 1538
1535 } } // namespace v8::internal 1539 } } // namespace v8::internal
1536 1540
1537 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1541 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698