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

Side by Side Diff: src/assembler.cc

Issue 10544005: Optimize write barrier of map-only elements transitions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 6 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/assembler.h ('k') | src/ia32/lithium-codegen-ia32.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 1126
1127 1127
1128 ExternalReference ExternalReference::math_log_double_function( 1128 ExternalReference ExternalReference::math_log_double_function(
1129 Isolate* isolate) { 1129 Isolate* isolate) {
1130 return ExternalReference(Redirect(isolate, 1130 return ExternalReference(Redirect(isolate,
1131 FUNCTION_ADDR(math_log_double), 1131 FUNCTION_ADDR(math_log_double),
1132 BUILTIN_FP_CALL)); 1132 BUILTIN_FP_CALL));
1133 } 1133 }
1134 1134
1135 1135
1136 ExternalReference ExternalReference::page_flags(Page* page) {
1137 return ExternalReference(reinterpret_cast<Address>(page) +
1138 MemoryChunk::kFlagsOffset);
1139 }
1140
1141
1136 // Helper function to compute x^y, where y is known to be an 1142 // Helper function to compute x^y, where y is known to be an
1137 // integer. Uses binary decomposition to limit the number of 1143 // integer. Uses binary decomposition to limit the number of
1138 // multiplications; see the discussion in "Hacker's Delight" by Henry 1144 // multiplications; see the discussion in "Hacker's Delight" by Henry
1139 // S. Warren, Jr., figure 11-6, page 213. 1145 // S. Warren, Jr., figure 11-6, page 213.
1140 double power_double_int(double x, int y) { 1146 double power_double_int(double x, int y) {
1141 double m = (y < 0) ? 1 / x : x; 1147 double m = (y < 0) ? 1 / x : x;
1142 unsigned n = (y < 0) ? -y : y; 1148 unsigned n = (y < 0) ? -y : y;
1143 double p = 1; 1149 double p = 1;
1144 while (n != 0) { 1150 while (n != 0) {
1145 if ((n & 1) != 0) p *= m; 1151 if ((n & 1) != 0) p *= m;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1313 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1308 state_.written_position = state_.current_position; 1314 state_.written_position = state_.current_position;
1309 written = true; 1315 written = true;
1310 } 1316 }
1311 1317
1312 // Return whether something was written. 1318 // Return whether something was written.
1313 return written; 1319 return written;
1314 } 1320 }
1315 1321
1316 } } // namespace v8::internal 1322 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698