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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 280
281 bool LCodeGen::GenerateDeferredCode() { 281 bool LCodeGen::GenerateDeferredCode() {
282 DCHECK(is_generating()); 282 DCHECK(is_generating());
283 if (deferred_.length() > 0) { 283 if (deferred_.length() > 0) {
284 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 284 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
285 LDeferredCode* code = deferred_[i]; 285 LDeferredCode* code = deferred_[i];
286 286
287 HValue* value = 287 HValue* value =
288 instructions_->at(code->instruction_index())->hydrogen_value(); 288 instructions_->at(code->instruction_index())->hydrogen_value();
289 RecordAndWritePosition( 289 RecordAndWritePosition(value->position());
290 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
291 290
292 Comment(";;; <@%d,#%d> " 291 Comment(";;; <@%d,#%d> "
293 "-------------------- Deferred %s --------------------", 292 "-------------------- Deferred %s --------------------",
294 code->instruction_index(), 293 code->instruction_index(),
295 code->instr()->hydrogen_value()->id(), 294 code->instr()->hydrogen_value()->id(),
296 code->instr()->Mnemonic()); 295 code->instr()->Mnemonic());
297 __ bind(code->entry()); 296 __ bind(code->entry());
298 if (NeedsDeferredFrame()) { 297 if (NeedsDeferredFrame()) {
299 Comment(";;; Build frame"); 298 Comment(";;; Build frame");
300 DCHECK(!frame_is_built_); 299 DCHECK(!frame_is_built_);
(...skipping 5114 matching lines...) Expand 10 before | Expand all | Expand 10 after
5415 __ lw(result, FieldMemOperand(scratch, 5414 __ lw(result, FieldMemOperand(scratch,
5416 FixedArray::kHeaderSize - kPointerSize)); 5415 FixedArray::kHeaderSize - kPointerSize));
5417 __ bind(deferred->exit()); 5416 __ bind(deferred->exit());
5418 __ bind(&done); 5417 __ bind(&done);
5419 } 5418 }
5420 5419
5421 #undef __ 5420 #undef __
5422 5421
5423 } // namespace internal 5422 } // namespace internal
5424 } // namespace v8 5423 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698