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

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

Issue 8258015: Support array literals with FAST_DOUBLE_ELEMENTS ElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove regressions Created 9 years, 2 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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 String::cast(*handle())->length() == 0) return false; 1218 String::cast(*handle())->length() == 0) return false;
1219 return true; 1219 return true;
1220 } 1220 }
1221 1221
1222 void HConstant::PrintDataTo(StringStream* stream) { 1222 void HConstant::PrintDataTo(StringStream* stream) {
1223 handle()->ShortPrint(stream); 1223 handle()->ShortPrint(stream);
1224 } 1224 }
1225 1225
1226 1226
1227 bool HArrayLiteral::IsCopyOnWrite() const { 1227 bool HArrayLiteral::IsCopyOnWrite() const {
1228 return constant_elements()->map() == HEAP->fixed_cow_array_map(); 1228 Handle<FixedArray> constant_elements = this->constant_elements();
1229 FixedArrayBase* constant_elements_values =
1230 FixedArrayBase::cast(constant_elements->get(1));
1231 return constant_elements_values->map() == HEAP->fixed_cow_array_map();
1229 } 1232 }
1230 1233
1231 1234
1232 void HBinaryOperation::PrintDataTo(StringStream* stream) { 1235 void HBinaryOperation::PrintDataTo(StringStream* stream) {
1233 left()->PrintNameTo(stream); 1236 left()->PrintNameTo(stream);
1234 stream->Add(" "); 1237 stream->Add(" ");
1235 right()->PrintNameTo(stream); 1238 right()->PrintNameTo(stream);
1236 if (CheckFlag(kCanOverflow)) stream->Add(" !"); 1239 if (CheckFlag(kCanOverflow)) stream->Add(" !");
1237 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 1240 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
1238 } 1241 }
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 1967
1965 1968
1966 void HCheckPrototypeMaps::Verify() { 1969 void HCheckPrototypeMaps::Verify() {
1967 HInstruction::Verify(); 1970 HInstruction::Verify();
1968 ASSERT(HasNoUses()); 1971 ASSERT(HasNoUses());
1969 } 1972 }
1970 1973
1971 #endif 1974 #endif
1972 1975
1973 } } // namespace v8::internal 1976 } } // namespace v8::internal
OLDNEW
« src/arm/full-codegen-arm.cc ('K') | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698