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 112863002: Merge bleeding_edge 18021:18297 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // or 299 // or
300 // pc-jump (variable length): 300 // pc-jump (variable length):
301 // 01 1111 11, 301 // 01 1111 11,
302 // [7 bits data] 0 302 // [7 bits data] 0
303 // ... 303 // ...
304 // [7 bits data] 1 304 // [7 bits data] 1
305 // (Bits 6..31 of pc delta, with leading zeroes 305 // (Bits 6..31 of pc delta, with leading zeroes
306 // dropped, and last non-zero chunk tagged with 1.) 306 // dropped, and last non-zero chunk tagged with 1.)
307 307
308 308
309 #ifdef DEBUG
309 const int kMaxStandardNonCompactModes = 14; 310 const int kMaxStandardNonCompactModes = 14;
311 #endif
310 312
311 const int kTagBits = 2; 313 const int kTagBits = 2;
312 const int kTagMask = (1 << kTagBits) - 1; 314 const int kTagMask = (1 << kTagBits) - 1;
313 const int kExtraTagBits = 4; 315 const int kExtraTagBits = 4;
314 const int kLocatableTypeTagBits = 2; 316 const int kLocatableTypeTagBits = 2;
315 const int kSmallDataBits = kBitsPerByte - kLocatableTypeTagBits; 317 const int kSmallDataBits = kBitsPerByte - kLocatableTypeTagBits;
316 318
317 const int kEmbeddedObjectTag = 0; 319 const int kEmbeddedObjectTag = 0;
318 const int kCodeTargetTag = 1; 320 const int kCodeTargetTag = 1;
319 const int kLocatableTag = 2; 321 const int kLocatableTag = 2;
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 static double div_two_doubles(double x, double y) { 1413 static double div_two_doubles(double x, double y) {
1412 return x / y; 1414 return x / y;
1413 } 1415 }
1414 1416
1415 1417
1416 static double mod_two_doubles(double x, double y) { 1418 static double mod_two_doubles(double x, double y) {
1417 return modulo(x, y); 1419 return modulo(x, y);
1418 } 1420 }
1419 1421
1420 1422
1421 static double math_sin_double(double x) {
1422 return sin(x);
1423 }
1424
1425
1426 static double math_cos_double(double x) {
1427 return cos(x);
1428 }
1429
1430
1431 static double math_tan_double(double x) {
1432 return tan(x);
1433 }
1434
1435
1436 static double math_log_double(double x) { 1423 static double math_log_double(double x) {
1437 return log(x); 1424 return log(x);
1438 } 1425 }
1439 1426
1440 1427
1441 ExternalReference ExternalReference::math_sin_double_function(
1442 Isolate* isolate) {
1443 return ExternalReference(Redirect(isolate,
1444 FUNCTION_ADDR(math_sin_double),
1445 BUILTIN_FP_CALL));
1446 }
1447
1448
1449 ExternalReference ExternalReference::math_cos_double_function(
1450 Isolate* isolate) {
1451 return ExternalReference(Redirect(isolate,
1452 FUNCTION_ADDR(math_cos_double),
1453 BUILTIN_FP_CALL));
1454 }
1455
1456
1457 ExternalReference ExternalReference::math_tan_double_function(
1458 Isolate* isolate) {
1459 return ExternalReference(Redirect(isolate,
1460 FUNCTION_ADDR(math_tan_double),
1461 BUILTIN_FP_CALL));
1462 }
1463
1464
1465 ExternalReference ExternalReference::math_log_double_function( 1428 ExternalReference ExternalReference::math_log_double_function(
1466 Isolate* isolate) { 1429 Isolate* isolate) {
1467 return ExternalReference(Redirect(isolate, 1430 return ExternalReference(Redirect(isolate,
1468 FUNCTION_ADDR(math_log_double), 1431 FUNCTION_ADDR(math_log_double),
1469 BUILTIN_FP_CALL)); 1432 BUILTIN_FP_CALL));
1470 } 1433 }
1471 1434
1472 1435
1473 ExternalReference ExternalReference::math_exp_constants(int constant_index) { 1436 ExternalReference ExternalReference::math_exp_constants(int constant_index) {
1474 ASSERT(math_exp_data_initialized); 1437 ASSERT(math_exp_data_initialized);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1659 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1697 state_.written_position = state_.current_position; 1660 state_.written_position = state_.current_position;
1698 written = true; 1661 written = true;
1699 } 1662 }
1700 1663
1701 // Return whether something was written. 1664 // Return whether something was written.
1702 return written; 1665 return written;
1703 } 1666 }
1704 1667
1705 } } // namespace v8::internal 1668 } } // 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