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

Side by Side Diff: src/hydrogen-instructions.h

Issue 14362023: Replace math.h with cmath (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 8 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/heap.cc ('k') | src/hydrogen-instructions.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3232 handle_ = FACTORY->NewNumber(double_value_, TENURED); 3232 handle_ = FACTORY->NewNumber(double_value_, TENURED);
3233 } 3233 }
3234 ASSERT(has_int32_value_ || !handle_->IsSmi()); 3234 ASSERT(has_int32_value_ || !handle_->IsSmi());
3235 return handle_; 3235 return handle_;
3236 } 3236 }
3237 3237
3238 bool IsSpecialDouble() const { 3238 bool IsSpecialDouble() const {
3239 return has_double_value_ && 3239 return has_double_value_ &&
3240 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || 3240 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) ||
3241 FixedDoubleArray::is_the_hole_nan(double_value_) || 3241 FixedDoubleArray::is_the_hole_nan(double_value_) ||
3242 isnan(double_value_)); 3242 std::isnan(double_value_));
3243 } 3243 }
3244 3244
3245 bool ImmortalImmovable() const { 3245 bool ImmortalImmovable() const {
3246 if (has_int32_value_) { 3246 if (has_int32_value_) {
3247 return false; 3247 return false;
3248 } 3248 }
3249 if (has_double_value_) { 3249 if (has_double_value_) {
3250 if (IsSpecialDouble()) { 3250 if (IsSpecialDouble()) {
3251 return true; 3251 return true;
3252 } 3252 }
(...skipping 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
6489 virtual bool IsDeletable() const { return true; } 6489 virtual bool IsDeletable() const { return true; }
6490 }; 6490 };
6491 6491
6492 6492
6493 #undef DECLARE_INSTRUCTION 6493 #undef DECLARE_INSTRUCTION
6494 #undef DECLARE_CONCRETE_INSTRUCTION 6494 #undef DECLARE_CONCRETE_INSTRUCTION
6495 6495
6496 } } // namespace v8::internal 6496 } } // namespace v8::internal
6497 6497
6498 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6498 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698