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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 5908001: Fix issue 977, occasional failure of the DeltaBlue benchmark. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Created 10 years 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
« src/hydrogen.cc ('K') | « src/hydrogen-instructions.h ('k') | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 874
875 875
876 LOperand* LChunkBuilder::FixedTemp(XMMRegister reg) { 876 LOperand* LChunkBuilder::FixedTemp(XMMRegister reg) {
877 LUnallocated* operand = ToUnallocated(reg); 877 LUnallocated* operand = ToUnallocated(reg);
878 allocator_->RecordTemporary(operand); 878 allocator_->RecordTemporary(operand);
879 return operand; 879 return operand;
880 } 880 }
881 881
882 882
883 LInstruction* LChunkBuilder::DoBlockEntry(HBlockEntry* instr) { 883 LInstruction* LChunkBuilder::DoBlockEntry(HBlockEntry* instr) {
884 HBasicBlock* deopt_predecessor = instr->block()->deopt_predecessor();
885 if (deopt_predecessor != NULL &&
886 deopt_predecessor->inverted()) {
887 HEnvironment* env = current_block_->last_environment();
888 HValue* value = env->Pop();
889 ASSERT(value->IsConstant());
890 Handle<Object> obj = HConstant::cast(value)->handle();
891 ASSERT(*obj == *Factory::true_value() || *obj == *Factory::false_value());
892 env->Push(*obj == *Factory::true_value()
893 ? current_block_->graph()->GetConstantFalse()
894 : current_block_->graph()->GetConstantTrue());
895 }
896
897 return new LLabel(instr->block()); 884 return new LLabel(instr->block());
898 } 885 }
899 886
900 887
901 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { 888 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) {
902 return AssignEnvironment(new LDeoptimize); 889 return AssignEnvironment(new LDeoptimize);
903 } 890 }
904 891
905 892
906 LInstruction* LChunkBuilder::DoBit(Token::Value op, 893 LInstruction* LChunkBuilder::DoBit(Token::Value op,
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 void LPointerMap::PrintTo(StringStream* stream) const { 2118 void LPointerMap::PrintTo(StringStream* stream) const {
2132 stream->Add("{"); 2119 stream->Add("{");
2133 for (int i = 0; i < pointer_operands_.length(); ++i) { 2120 for (int i = 0; i < pointer_operands_.length(); ++i) {
2134 if (i != 0) stream->Add(";"); 2121 if (i != 0) stream->Add(";");
2135 pointer_operands_[i]->PrintTo(stream); 2122 pointer_operands_[i]->PrintTo(stream);
2136 } 2123 }
2137 stream->Add("} @%d", position()); 2124 stream->Add("} @%d", position());
2138 } 2125 }
2139 2126
2140 } } // namespace v8::internal 2127 } } // namespace v8::internal
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698