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

Side by Side Diff: src/assembler.cc

Issue 118183002: Improve the fix for r18344. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | « no previous file | no next file » | 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 } 1381 }
1382 1382
1383 ExternalReference ExternalReference::address_of_regexp_stack_memory_size( 1383 ExternalReference ExternalReference::address_of_regexp_stack_memory_size(
1384 Isolate* isolate) { 1384 Isolate* isolate) {
1385 return ExternalReference(isolate->regexp_stack()->memory_size_address()); 1385 return ExternalReference(isolate->regexp_stack()->memory_size_address());
1386 } 1386 }
1387 1387
1388 #endif // V8_INTERPRETED_REGEXP 1388 #endif // V8_INTERPRETED_REGEXP
1389 1389
1390 1390
1391 static double math_log_double(double x) {
1392 return log(x);
1393 }
1394
1395
1396 ExternalReference ExternalReference::math_log_double_function( 1391 ExternalReference ExternalReference::math_log_double_function(
1397 Isolate* isolate) { 1392 Isolate* isolate) {
1393 typedef double (*d2d)(double x);
1398 return ExternalReference(Redirect(isolate, 1394 return ExternalReference(Redirect(isolate,
1399 FUNCTION_ADDR(math_log_double), 1395 FUNCTION_ADDR(static_cast<d2d>(log)),
1400 BUILTIN_FP_CALL)); 1396 BUILTIN_FP_CALL));
1401 } 1397 }
1402 1398
1403 1399
1404 ExternalReference ExternalReference::math_exp_constants(int constant_index) { 1400 ExternalReference ExternalReference::math_exp_constants(int constant_index) {
1405 ASSERT(math_exp_data_initialized); 1401 ASSERT(math_exp_data_initialized);
1406 return ExternalReference( 1402 return ExternalReference(
1407 reinterpret_cast<void*>(math_exp_constants_array + constant_index)); 1403 reinterpret_cast<void*>(math_exp_constants_array + constant_index));
1408 } 1404 }
1409 1405
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1589 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1594 state_.written_position = state_.current_position; 1590 state_.written_position = state_.current_position;
1595 written = true; 1591 written = true;
1596 } 1592 }
1597 1593
1598 // Return whether something was written. 1594 // Return whether something was written.
1599 return written; 1595 return written;
1600 } 1596 }
1601 1597
1602 } } // namespace v8::internal 1598 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698