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

Side by Side Diff: src/assembler.cc

Issue 7043003: Version 3.3.8 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 7 months 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/bootstrapper.cc » ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif // Target architecture. 62 #endif // Target architecture.
63 #endif // V8_INTERPRETED_REGEXP 63 #endif // V8_INTERPRETED_REGEXP
64 64
65 namespace v8 { 65 namespace v8 {
66 namespace internal { 66 namespace internal {
67 67
68 68
69 const double DoubleConstant::min_int = kMinInt; 69 const double DoubleConstant::min_int = kMinInt;
70 const double DoubleConstant::one_half = 0.5; 70 const double DoubleConstant::one_half = 0.5;
71 const double DoubleConstant::minus_zero = -0.0; 71 const double DoubleConstant::minus_zero = -0.0;
72 const double DoubleConstant::uint8_max_value = 255;
73 const double DoubleConstant::zero = 0.0;
72 const double DoubleConstant::nan = OS::nan_value(); 74 const double DoubleConstant::nan = OS::nan_value();
73 const double DoubleConstant::negative_infinity = -V8_INFINITY; 75 const double DoubleConstant::negative_infinity = -V8_INFINITY;
74 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; 76 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
75 77
76 // ----------------------------------------------------------------------------- 78 // -----------------------------------------------------------------------------
77 // Implementation of AssemblerBase 79 // Implementation of AssemblerBase
78 80
79 AssemblerBase::AssemblerBase(Isolate* isolate) 81 AssemblerBase::AssemblerBase(Isolate* isolate)
80 : isolate_(isolate), 82 : isolate_(isolate),
81 jit_cookie_(0) { 83 jit_cookie_(0) {
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 const_cast<double*>(&DoubleConstant::one_half))); 896 const_cast<double*>(&DoubleConstant::one_half)));
895 } 897 }
896 898
897 899
898 ExternalReference ExternalReference::address_of_minus_zero() { 900 ExternalReference ExternalReference::address_of_minus_zero() {
899 return ExternalReference(reinterpret_cast<void*>( 901 return ExternalReference(reinterpret_cast<void*>(
900 const_cast<double*>(&DoubleConstant::minus_zero))); 902 const_cast<double*>(&DoubleConstant::minus_zero)));
901 } 903 }
902 904
903 905
906 ExternalReference ExternalReference::address_of_zero() {
907 return ExternalReference(reinterpret_cast<void*>(
908 const_cast<double*>(&DoubleConstant::zero)));
909 }
910
911
912 ExternalReference ExternalReference::address_of_uint8_max_value() {
913 return ExternalReference(reinterpret_cast<void*>(
914 const_cast<double*>(&DoubleConstant::uint8_max_value)));
915 }
916
917
904 ExternalReference ExternalReference::address_of_negative_infinity() { 918 ExternalReference ExternalReference::address_of_negative_infinity() {
905 return ExternalReference(reinterpret_cast<void*>( 919 return ExternalReference(reinterpret_cast<void*>(
906 const_cast<double*>(&DoubleConstant::negative_infinity))); 920 const_cast<double*>(&DoubleConstant::negative_infinity)));
907 } 921 }
908 922
909 923
910 ExternalReference ExternalReference::address_of_nan() { 924 ExternalReference ExternalReference::address_of_nan() {
911 return ExternalReference(reinterpret_cast<void*>( 925 return ExternalReference(reinterpret_cast<void*>(
912 const_cast<double*>(&DoubleConstant::nan))); 926 const_cast<double*>(&DoubleConstant::nan)));
913 } 927 }
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1198 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1185 state_.written_position = state_.current_position; 1199 state_.written_position = state_.current_position;
1186 written = true; 1200 written = true;
1187 } 1201 }
1188 1202
1189 // Return whether something was written. 1203 // Return whether something was written.
1190 return written; 1204 return written;
1191 } 1205 }
1192 1206
1193 } } // namespace v8::internal 1207 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698