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

Side by Side Diff: src/hydrogen.cc

Issue 9812004: When running with --always-opt, don't deoptimize on uninitialized type feedback. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 9 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 | test/cctest/test-log-stack-tracer.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 4505 matching lines...) Expand 10 before | Expand all | Expand 10 after
4516 } else { 4516 } else {
4517 // Non-negative property indices are in the properties array. 4517 // Non-negative property indices are in the properties array.
4518 int offset = (index * kPointerSize) + FixedArray::kHeaderSize; 4518 int offset = (index * kPointerSize) + FixedArray::kHeaderSize;
4519 return new(zone()) HLoadNamedField(object, false, offset); 4519 return new(zone()) HLoadNamedField(object, false, offset);
4520 } 4520 }
4521 } 4521 }
4522 4522
4523 4523
4524 HInstruction* HGraphBuilder::BuildLoadNamedGeneric(HValue* obj, 4524 HInstruction* HGraphBuilder::BuildLoadNamedGeneric(HValue* obj,
4525 Property* expr) { 4525 Property* expr) {
4526 if (expr->IsUninitialized()) { 4526 if (expr->IsUninitialized() && !FLAG_always_opt) {
4527 AddInstruction(new(zone()) HSoftDeoptimize); 4527 AddInstruction(new(zone()) HSoftDeoptimize);
4528 current_block()->MarkAsDeoptimizing(); 4528 current_block()->MarkAsDeoptimizing();
4529 } 4529 }
4530 ASSERT(expr->key()->IsPropertyName()); 4530 ASSERT(expr->key()->IsPropertyName());
4531 Handle<Object> name = expr->key()->AsLiteral()->handle(); 4531 Handle<Object> name = expr->key()->AsLiteral()->handle();
4532 HValue* context = environment()->LookupContext(); 4532 HValue* context = environment()->LookupContext();
4533 return new(zone()) HLoadNamedGeneric(context, obj, name); 4533 return new(zone()) HLoadNamedGeneric(context, obj, name);
4534 } 4534 }
4535 4535
4536 4536
(...skipping 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after
8165 } 8165 }
8166 } 8166 }
8167 8167
8168 #ifdef DEBUG 8168 #ifdef DEBUG
8169 if (graph_ != NULL) graph_->Verify(false); // No full verify. 8169 if (graph_ != NULL) graph_->Verify(false); // No full verify.
8170 if (allocator_ != NULL) allocator_->Verify(); 8170 if (allocator_ != NULL) allocator_->Verify();
8171 #endif 8171 #endif
8172 } 8172 }
8173 8173
8174 } } // namespace v8::internal 8174 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698