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

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

Issue 14403015: Disallow dereferencing deferred handles when generating optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed 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-instructions.h ('k') | src/ia32/assembler-ia32.h » ('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 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 if (has_int32_value_) { 2193 if (has_int32_value_) {
2194 stream->Add("%d ", int32_value_); 2194 stream->Add("%d ", int32_value_);
2195 } else if (has_double_value_) { 2195 } else if (has_double_value_) {
2196 stream->Add("%f ", FmtElm(double_value_)); 2196 stream->Add("%f ", FmtElm(double_value_));
2197 } else { 2197 } else {
2198 handle()->ShortPrint(stream); 2198 handle()->ShortPrint(stream);
2199 } 2199 }
2200 } 2200 }
2201 2201
2202 2202
2203 bool HArrayLiteral::IsCopyOnWrite() const {
2204 if (!boilerplate_object_->IsJSObject()) return false;
2205 return Handle<JSObject>::cast(boilerplate_object_)->elements()->map() ==
2206 HEAP->fixed_cow_array_map();
2207 }
2208
2209
2210 void HBinaryOperation::PrintDataTo(StringStream* stream) { 2203 void HBinaryOperation::PrintDataTo(StringStream* stream) {
2211 left()->PrintNameTo(stream); 2204 left()->PrintNameTo(stream);
2212 stream->Add(" "); 2205 stream->Add(" ");
2213 right()->PrintNameTo(stream); 2206 right()->PrintNameTo(stream);
2214 if (CheckFlag(kCanOverflow)) stream->Add(" !"); 2207 if (CheckFlag(kCanOverflow)) stream->Add(" !");
2215 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 2208 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
2216 } 2209 }
2217 2210
2218 2211
2219 void HBinaryOperation::InferRepresentation(HInferRepresentation* h_infer) { 2212 void HBinaryOperation::InferRepresentation(HInferRepresentation* h_infer) {
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 3590
3598 3591
3599 void HCheckFunction::Verify() { 3592 void HCheckFunction::Verify() {
3600 HInstruction::Verify(); 3593 HInstruction::Verify();
3601 ASSERT(HasNoUses()); 3594 ASSERT(HasNoUses());
3602 } 3595 }
3603 3596
3604 #endif 3597 #endif
3605 3598
3606 } } // namespace v8::internal 3599 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698