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

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

Issue 13890014: Merged r14433 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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 | « no previous file | src/version.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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 Handle<Object> optional_handle = Handle<Object>::null()); 3240 Handle<Object> optional_handle = Handle<Object>::null());
3241 HConstant(Handle<Object> handle, 3241 HConstant(Handle<Object> handle,
3242 UniqueValueId unique_id, 3242 UniqueValueId unique_id,
3243 Representation r, 3243 Representation r,
3244 HType type, 3244 HType type,
3245 bool is_internalized_string, 3245 bool is_internalized_string,
3246 bool boolean_value); 3246 bool boolean_value);
3247 3247
3248 Handle<Object> handle() { 3248 Handle<Object> handle() {
3249 if (handle_.is_null()) { 3249 if (handle_.is_null()) {
3250 handle_ = isolate()->factory()->NewNumber(double_value_, TENURED); 3250 handle_ = FACTORY->NewNumber(double_value_, TENURED);
3251 } 3251 }
3252 ALLOW_HANDLE_DEREF(isolate(), "smi check"); 3252 ALLOW_HANDLE_DEREF(Isolate::Current(), "smi check");
3253 ASSERT(has_int32_value_ || !handle_->IsSmi()); 3253 ASSERT(has_int32_value_ || !handle_->IsSmi());
3254 return handle_; 3254 return handle_;
3255 } 3255 }
3256 3256
3257 bool IsSpecialDouble() const { 3257 bool IsSpecialDouble() const {
3258 return has_double_value_ && 3258 return has_double_value_ &&
3259 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || 3259 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) ||
3260 FixedDoubleArray::is_the_hole_nan(double_value_) || 3260 FixedDoubleArray::is_the_hole_nan(double_value_) ||
3261 std::isnan(double_value_)); 3261 std::isnan(double_value_));
3262 } 3262 }
(...skipping 3281 matching lines...) Expand 10 before | Expand all | Expand 10 after
6544 virtual bool IsDeletable() const { return true; } 6544 virtual bool IsDeletable() const { return true; }
6545 }; 6545 };
6546 6546
6547 6547
6548 #undef DECLARE_INSTRUCTION 6548 #undef DECLARE_INSTRUCTION
6549 #undef DECLARE_CONCRETE_INSTRUCTION 6549 #undef DECLARE_CONCRETE_INSTRUCTION
6550 6550
6551 } } // namespace v8::internal 6551 } } // namespace v8::internal
6552 6552
6553 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6553 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698