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

Side by Side Diff: src/assembler.cc

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: First pass at pre-VFP2 RA Created 8 years, 1 month 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
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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 BUILTIN_FP_CALL)); 1216 BUILTIN_FP_CALL));
1217 } 1217 }
1218 1218
1219 1219
1220 ExternalReference ExternalReference::page_flags(Page* page) { 1220 ExternalReference ExternalReference::page_flags(Page* page) {
1221 return ExternalReference(reinterpret_cast<Address>(page) + 1221 return ExternalReference(reinterpret_cast<Address>(page) +
1222 MemoryChunk::kFlagsOffset); 1222 MemoryChunk::kFlagsOffset);
1223 } 1223 }
1224 1224
1225 1225
1226 ExternalReference ExternalReference::ForDeoptEntry(Address entry) {
1227 return ExternalReference(entry);
1228 }
1229
1230
1226 // Helper function to compute x^y, where y is known to be an 1231 // Helper function to compute x^y, where y is known to be an
1227 // integer. Uses binary decomposition to limit the number of 1232 // integer. Uses binary decomposition to limit the number of
1228 // multiplications; see the discussion in "Hacker's Delight" by Henry 1233 // multiplications; see the discussion in "Hacker's Delight" by Henry
1229 // S. Warren, Jr., figure 11-6, page 213. 1234 // S. Warren, Jr., figure 11-6, page 213.
1230 double power_double_int(double x, int y) { 1235 double power_double_int(double x, int y) {
1231 double m = (y < 0) ? 1 / x : x; 1236 double m = (y < 0) ? 1 / x : x;
1232 unsigned n = (y < 0) ? -y : y; 1237 unsigned n = (y < 0) ? -y : y;
1233 double p = 1; 1238 double p = 1;
1234 while (n != 0) { 1239 while (n != 0) {
1235 if ((n & 1) != 0) p *= m; 1240 if ((n & 1) != 0) p *= m;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1402 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1398 state_.written_position = state_.current_position; 1403 state_.written_position = state_.current_position;
1399 written = true; 1404 written = true;
1400 } 1405 }
1401 1406
1402 // Return whether something was written. 1407 // Return whether something was written.
1403 return written; 1408 return written;
1404 } 1409 }
1405 1410
1406 } } // namespace v8::internal 1411 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698