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

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

Issue 14364010: Lithium: avoid registers for constants when possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comments 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/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.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 3247 matching lines...) Expand 10 before | Expand all | Expand 10 after
3258 return handle_; 3258 return handle_;
3259 } 3259 }
3260 3260
3261 bool IsSpecialDouble() const { 3261 bool IsSpecialDouble() const {
3262 return has_double_value_ && 3262 return has_double_value_ &&
3263 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || 3263 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) ||
3264 FixedDoubleArray::is_the_hole_nan(double_value_) || 3264 FixedDoubleArray::is_the_hole_nan(double_value_) ||
3265 std::isnan(double_value_)); 3265 std::isnan(double_value_));
3266 } 3266 }
3267 3267
3268 bool InNewSpace() {
3269 if (handle().is_null()) return false;
3270 ALLOW_HANDLE_DEREF(isolate(), "using raw address");
3271 return isolate()->heap()->InNewSpace(*handle());
3272 }
3273
3268 bool ImmortalImmovable() const { 3274 bool ImmortalImmovable() const {
3269 if (has_int32_value_) { 3275 if (has_int32_value_) {
3270 return false; 3276 return false;
3271 } 3277 }
3272 if (has_double_value_) { 3278 if (has_double_value_) {
3273 if (IsSpecialDouble()) { 3279 if (IsSpecialDouble()) {
3274 return true; 3280 return true;
3275 } 3281 }
3276 return false; 3282 return false;
3277 } 3283 }
(...skipping 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after
6575 virtual bool IsDeletable() const { return true; } 6581 virtual bool IsDeletable() const { return true; }
6576 }; 6582 };
6577 6583
6578 6584
6579 #undef DECLARE_INSTRUCTION 6585 #undef DECLARE_INSTRUCTION
6580 #undef DECLARE_CONCRETE_INSTRUCTION 6586 #undef DECLARE_CONCRETE_INSTRUCTION
6581 6587
6582 } } // namespace v8::internal 6588 } } // namespace v8::internal
6583 6589
6584 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6590 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698