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

Side by Side Diff: src/assembler.cc

Issue 11414262: Revert 13105: "Enable stub generation using Hydrogen/Lithium." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/ast.h » ('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 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 return ExternalReference(reinterpret_cast<void*>(math_exp_log_table_array)); 1368 return ExternalReference(reinterpret_cast<void*>(math_exp_log_table_array));
1369 } 1369 }
1370 1370
1371 1371
1372 ExternalReference ExternalReference::page_flags(Page* page) { 1372 ExternalReference ExternalReference::page_flags(Page* page) {
1373 return ExternalReference(reinterpret_cast<Address>(page) + 1373 return ExternalReference(reinterpret_cast<Address>(page) +
1374 MemoryChunk::kFlagsOffset); 1374 MemoryChunk::kFlagsOffset);
1375 } 1375 }
1376 1376
1377 1377
1378 ExternalReference ExternalReference::ForDeoptEntry(Address entry) {
1379 return ExternalReference(entry);
1380 }
1381
1382
1383 // Helper function to compute x^y, where y is known to be an 1378 // Helper function to compute x^y, where y is known to be an
1384 // integer. Uses binary decomposition to limit the number of 1379 // integer. Uses binary decomposition to limit the number of
1385 // multiplications; see the discussion in "Hacker's Delight" by Henry 1380 // multiplications; see the discussion in "Hacker's Delight" by Henry
1386 // S. Warren, Jr., figure 11-6, page 213. 1381 // S. Warren, Jr., figure 11-6, page 213.
1387 double power_double_int(double x, int y) { 1382 double power_double_int(double x, int y) {
1388 double m = (y < 0) ? 1 / x : x; 1383 double m = (y < 0) ? 1 / x : x;
1389 unsigned n = (y < 0) ? -y : y; 1384 unsigned n = (y < 0) ? -y : y;
1390 double p = 1; 1385 double p = 1;
1391 while (n != 0) { 1386 while (n != 0) {
1392 if ((n & 1) != 0) p *= m; 1387 if ((n & 1) != 0) p *= m;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1549 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1555 state_.written_position = state_.current_position; 1550 state_.written_position = state_.current_position;
1556 written = true; 1551 written = true;
1557 } 1552 }
1558 1553
1559 // Return whether something was written. 1554 // Return whether something was written.
1560 return written; 1555 return written;
1561 } 1556 }
1562 1557
1563 } } // namespace v8::internal 1558 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698