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

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: Merge with latest 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
1378 // Helper function to compute x^y, where y is known to be an 1383 // Helper function to compute x^y, where y is known to be an
1379 // integer. Uses binary decomposition to limit the number of 1384 // integer. Uses binary decomposition to limit the number of
1380 // multiplications; see the discussion in "Hacker's Delight" by Henry 1385 // multiplications; see the discussion in "Hacker's Delight" by Henry
1381 // S. Warren, Jr., figure 11-6, page 213. 1386 // S. Warren, Jr., figure 11-6, page 213.
1382 double power_double_int(double x, int y) { 1387 double power_double_int(double x, int y) {
1383 double m = (y < 0) ? 1 / x : x; 1388 double m = (y < 0) ? 1 / x : x;
1384 unsigned n = (y < 0) ? -y : y; 1389 unsigned n = (y < 0) ? -y : y;
1385 double p = 1; 1390 double p = 1;
1386 while (n != 0) { 1391 while (n != 0) {
1387 if ((n & 1) != 0) p *= m; 1392 if ((n & 1) != 0) p *= m;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1554 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1550 state_.written_position = state_.current_position; 1555 state_.written_position = state_.current_position;
1551 written = true; 1556 written = true;
1552 } 1557 }
1553 1558
1554 // Return whether something was written. 1559 // Return whether something was written.
1555 return written; 1560 return written;
1556 } 1561 }
1557 1562
1558 } } // namespace v8::internal 1563 } } // 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