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

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

Issue 6880010: Merge (7265, 7271] from bleeding_edge to experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 HConstant* HConstant::CopyToRepresentation(Representation r) const { 1036 HConstant* HConstant::CopyToRepresentation(Representation r) const {
1037 if (r.IsInteger32() && !has_int32_value_) return NULL; 1037 if (r.IsInteger32() && !has_int32_value_) return NULL;
1038 if (r.IsDouble() && !has_double_value_) return NULL; 1038 if (r.IsDouble() && !has_double_value_) return NULL;
1039 return new HConstant(handle_, r); 1039 return new HConstant(handle_, r);
1040 } 1040 }
1041 1041
1042 1042
1043 HConstant* HConstant::CopyToTruncatedInt32() const { 1043 HConstant* HConstant::CopyToTruncatedInt32() const {
1044 if (!has_double_value_) return NULL; 1044 if (!has_double_value_) return NULL;
1045 int32_t truncated = NumberToInt32(*handle_); 1045 int32_t truncated = NumberToInt32(*handle_);
1046 return new HConstant(Factory::NewNumberFromInt(truncated), 1046 return new HConstant(FACTORY->NewNumberFromInt(truncated),
1047 Representation::Integer32()); 1047 Representation::Integer32());
1048 } 1048 }
1049 1049
1050 1050
1051 void HConstant::PrintDataTo(StringStream* stream) { 1051 void HConstant::PrintDataTo(StringStream* stream) {
1052 handle()->ShortPrint(stream); 1052 handle()->ShortPrint(stream);
1053 } 1053 }
1054 1054
1055 1055
1056 bool HArrayLiteral::IsCopyOnWrite() const { 1056 bool HArrayLiteral::IsCopyOnWrite() const {
1057 return constant_elements()->map() == Heap::fixed_cow_array_map(); 1057 return constant_elements()->map() == HEAP->fixed_cow_array_map();
1058 } 1058 }
1059 1059
1060 1060
1061 void HBinaryOperation::PrintDataTo(StringStream* stream) { 1061 void HBinaryOperation::PrintDataTo(StringStream* stream) {
1062 left()->PrintNameTo(stream); 1062 left()->PrintNameTo(stream);
1063 stream->Add(" "); 1063 stream->Add(" ");
1064 right()->PrintNameTo(stream); 1064 right()->PrintNameTo(stream);
1065 if (CheckFlag(kCanOverflow)) stream->Add(" !"); 1065 if (CheckFlag(kCanOverflow)) stream->Add(" !");
1066 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 1066 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
1067 } 1067 }
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 1507
1508 1508
1509 void HCheckPrototypeMaps::Verify() { 1509 void HCheckPrototypeMaps::Verify() {
1510 HInstruction::Verify(); 1510 HInstruction::Verify();
1511 ASSERT(HasNoUses()); 1511 ASSERT(HasNoUses());
1512 } 1512 }
1513 1513
1514 #endif 1514 #endif
1515 1515
1516 } } // namespace v8::internal 1516 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698