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

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

Issue 15934019: Fix win build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | no next file » | 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 int64_t left_lower = left()->range()->lower(); 2334 int64_t left_lower = left()->range()->lower();
2335 int64_t right_upper = right()->range()->upper(); 2335 int64_t right_upper = right()->range()->upper();
2336 int64_t right_lower = right()->range()->lower(); 2336 int64_t right_lower = right()->range()->lower();
2337 2337
2338 if (left_upper < 0) left_upper = ~left_upper; 2338 if (left_upper < 0) left_upper = ~left_upper;
2339 if (left_lower < 0) left_lower = ~left_lower; 2339 if (left_lower < 0) left_lower = ~left_lower;
2340 if (right_upper < 0) right_upper = ~right_upper; 2340 if (right_upper < 0) right_upper = ~right_upper;
2341 if (right_lower < 0) right_lower = ~right_lower; 2341 if (right_lower < 0) right_lower = ~right_lower;
2342 2342
2343 int high = MostSignificantBit( 2343 int high = MostSignificantBit(
2344 left_upper | left_lower | right_upper | right_lower); 2344 static_cast<uint32_t>(
2345 left_upper | left_lower | right_upper | right_lower));
2345 2346
2346 int64_t limit = 1; 2347 int64_t limit = 1;
2347 limit <<= high; 2348 limit <<= high;
2348 int32_t min = (left()->range()->CanBeNegative() || 2349 int32_t min = (left()->range()->CanBeNegative() ||
2349 right()->range()->CanBeNegative()) 2350 right()->range()->CanBeNegative())
2350 ? static_cast<int32_t>(-limit) : 0; 2351 ? static_cast<int32_t>(-limit) : 0;
2351 return new(zone) Range(min, static_cast<int32_t>(limit - 1)); 2352 return new(zone) Range(min, static_cast<int32_t>(limit - 1));
2352 } 2353 }
2353 return HValue::InferRange(zone); 2354 return HValue::InferRange(zone);
2354 } 2355 }
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
3801 case kBackingStore: 3802 case kBackingStore:
3802 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3803 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3803 stream->Add("[backing-store]"); 3804 stream->Add("[backing-store]");
3804 break; 3805 break;
3805 } 3806 }
3806 3807
3807 stream->Add("@%d", offset()); 3808 stream->Add("@%d", offset());
3808 } 3809 }
3809 3810
3810 } } // namespace v8::internal 3811 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698