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

Side by Side Diff: src/assembler.cc

Issue 1115973005: Revert of Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 namespace v8 { 103 namespace v8 {
104 namespace internal { 104 namespace internal {
105 105
106 // ----------------------------------------------------------------------------- 106 // -----------------------------------------------------------------------------
107 // Common double constants. 107 // Common double constants.
108 108
109 struct DoubleConstant BASE_EMBEDDED { 109 struct DoubleConstant BASE_EMBEDDED {
110 double min_int; 110 double min_int;
111 double one_half; 111 double one_half;
112 double minus_one;
113 double minus_one_half; 112 double minus_one_half;
114 double negative_infinity; 113 double negative_infinity;
115 double the_hole_nan; 114 double the_hole_nan;
116 double uint32_bias; 115 double uint32_bias;
117 }; 116 };
118 117
119 static DoubleConstant double_constants; 118 static DoubleConstant double_constants;
120 119
121 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; 120 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
122 121
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 } 943 }
945 #endif // VERIFY_HEAP 944 #endif // VERIFY_HEAP
946 945
947 946
948 // ----------------------------------------------------------------------------- 947 // -----------------------------------------------------------------------------
949 // Implementation of ExternalReference 948 // Implementation of ExternalReference
950 949
951 void ExternalReference::SetUp() { 950 void ExternalReference::SetUp() {
952 double_constants.min_int = kMinInt; 951 double_constants.min_int = kMinInt;
953 double_constants.one_half = 0.5; 952 double_constants.one_half = 0.5;
954 double_constants.minus_one = -1;
955 double_constants.minus_one_half = -0.5; 953 double_constants.minus_one_half = -0.5;
956 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64); 954 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64);
957 double_constants.negative_infinity = -V8_INFINITY; 955 double_constants.negative_infinity = -V8_INFINITY;
958 double_constants.uint32_bias = 956 double_constants.uint32_bias =
959 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; 957 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1;
960 958
961 math_exp_data_mutex = new base::Mutex(); 959 math_exp_data_mutex = new base::Mutex();
962 } 960 }
963 961
964 962
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 return ExternalReference(reinterpret_cast<void*>(&double_constants.one_half)); 1267 return ExternalReference(reinterpret_cast<void*>(&double_constants.one_half));
1270 } 1268 }
1271 1269
1272 1270
1273 ExternalReference ExternalReference::address_of_minus_one_half() { 1271 ExternalReference ExternalReference::address_of_minus_one_half() {
1274 return ExternalReference( 1272 return ExternalReference(
1275 reinterpret_cast<void*>(&double_constants.minus_one_half)); 1273 reinterpret_cast<void*>(&double_constants.minus_one_half));
1276 } 1274 }
1277 1275
1278 1276
1279 ExternalReference ExternalReference::address_of_minus_one() {
1280 return ExternalReference(
1281 reinterpret_cast<void*>(&double_constants.minus_one));
1282 }
1283
1284
1285 ExternalReference ExternalReference::address_of_negative_infinity() { 1277 ExternalReference ExternalReference::address_of_negative_infinity() {
1286 return ExternalReference( 1278 return ExternalReference(
1287 reinterpret_cast<void*>(&double_constants.negative_infinity)); 1279 reinterpret_cast<void*>(&double_constants.negative_infinity));
1288 } 1280 }
1289 1281
1290 1282
1291 ExternalReference ExternalReference::address_of_the_hole_nan() { 1283 ExternalReference ExternalReference::address_of_the_hole_nan() {
1292 return ExternalReference( 1284 return ExternalReference(
1293 reinterpret_cast<void*>(&double_constants.the_hole_nan)); 1285 reinterpret_cast<void*>(&double_constants.the_hole_nan));
1294 } 1286 }
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 RecordRelocInfo(RelocInfo::JS_RETURN); 1663 RecordRelocInfo(RelocInfo::JS_RETURN);
1672 } 1664 }
1673 1665
1674 1666
1675 void Assembler::RecordDebugBreakSlot() { 1667 void Assembler::RecordDebugBreakSlot() {
1676 positions_recorder()->WriteRecordedPositions(); 1668 positions_recorder()->WriteRecordedPositions();
1677 EnsureSpace ensure_space(this); 1669 EnsureSpace ensure_space(this);
1678 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); 1670 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT);
1679 } 1671 }
1680 } } // namespace v8::internal 1672 } } // 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