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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 10837165: Lattice-based representation inference, powered by left/right specific type feedback for BinaryOps … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: HConstants, HSimulates, stub fixes Created 8 years, 1 month 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 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 for (current_instruction_ = 0; 215 for (current_instruction_ = 0;
216 !is_aborted() && current_instruction_ < instructions_->length(); 216 !is_aborted() && current_instruction_ < instructions_->length();
217 current_instruction_++) { 217 current_instruction_++) {
218 LInstruction* instr = instructions_->at(current_instruction_); 218 LInstruction* instr = instructions_->at(current_instruction_);
219 if (instr->IsLabel()) { 219 if (instr->IsLabel()) {
220 LLabel* label = LLabel::cast(instr); 220 LLabel* label = LLabel::cast(instr);
221 emit_instructions = !label->HasReplacement(); 221 emit_instructions = !label->HasReplacement();
222 } 222 }
223 223
224 if (emit_instructions) { 224 if (emit_instructions) {
225 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic()); 225 if (FLAG_code_comments) {
226 HValue* hydrogen = instr->hydrogen_value();
227 if (hydrogen != NULL) {
228 if (hydrogen->IsChange()) {
229 HValue* changed_value = HChange::cast(hydrogen)->value();
230 int use_id = 0;
231 const char* use_mnemo = "dead";
232 if (hydrogen->UseCount() >= 1) {
233 HValue* use_value = hydrogen->uses().value();
234 use_id = use_value->id();
235 use_mnemo = use_value->Mnemonic();
236 }
237 Comment(";;; @%d: %s. <of #%d %s for #%d %s>",
238 current_instruction_, instr->Mnemonic(),
239 changed_value->id(), changed_value->Mnemonic(),
240 use_id, use_mnemo);
241 } else {
242 Comment(";;; @%d: %s. <#%d>", current_instruction_,
243 instr->Mnemonic(), hydrogen->id());
244 }
245 } else {
246 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic());
247 }
248 }
226 instr->CompileToNative(this); 249 instr->CompileToNative(this);
227 } 250 }
228 } 251 }
229 EnsureSpaceForLazyDeopt(); 252 EnsureSpaceForLazyDeopt();
230 return !is_aborted(); 253 return !is_aborted();
231 } 254 }
232 255
233 256
234 bool LCodeGen::GenerateDeferredCode() { 257 bool LCodeGen::GenerateDeferredCode() {
235 ASSERT(is_generating()); 258 ASSERT(is_generating());
(...skipping 5462 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5721 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5699 __ ldr(result, FieldMemOperand(scratch, 5722 __ ldr(result, FieldMemOperand(scratch,
5700 FixedArray::kHeaderSize - kPointerSize)); 5723 FixedArray::kHeaderSize - kPointerSize));
5701 __ bind(&done); 5724 __ bind(&done);
5702 } 5725 }
5703 5726
5704 5727
5705 #undef __ 5728 #undef __
5706 5729
5707 } } // namespace v8::internal 5730 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698