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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 261
262 bool LCodeGen::GenerateDeferredCode() { 262 bool LCodeGen::GenerateDeferredCode() {
263 DCHECK(is_generating()); 263 DCHECK(is_generating());
264 if (deferred_.length() > 0) { 264 if (deferred_.length() > 0) {
265 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 265 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
266 LDeferredCode* code = deferred_[i]; 266 LDeferredCode* code = deferred_[i];
267 267
268 HValue* value = 268 HValue* value =
269 instructions_->at(code->instruction_index())->hydrogen_value(); 269 instructions_->at(code->instruction_index())->hydrogen_value();
270 RecordAndWritePosition( 270 RecordAndWritePosition(value->position());
271 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
272 271
273 Comment(";;; <@%d,#%d> " 272 Comment(";;; <@%d,#%d> "
274 "-------------------- Deferred %s --------------------", 273 "-------------------- Deferred %s --------------------",
275 code->instruction_index(), 274 code->instruction_index(),
276 code->instr()->hydrogen_value()->id(), 275 code->instr()->hydrogen_value()->id(),
277 code->instr()->Mnemonic()); 276 code->instr()->Mnemonic());
278 __ bind(code->entry()); 277 __ bind(code->entry());
279 if (NeedsDeferredFrame()) { 278 if (NeedsDeferredFrame()) {
280 Comment(";;; Build frame"); 279 Comment(";;; Build frame");
281 DCHECK(!frame_is_built_); 280 DCHECK(!frame_is_built_);
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after
5397 __ lw(result, FieldMemOperand(scratch, 5396 __ lw(result, FieldMemOperand(scratch,
5398 FixedArray::kHeaderSize - kPointerSize)); 5397 FixedArray::kHeaderSize - kPointerSize));
5399 __ bind(deferred->exit()); 5398 __ bind(deferred->exit());
5400 __ bind(&done); 5399 __ bind(&done);
5401 } 5400 }
5402 5401
5403 #undef __ 5402 #undef __
5404 5403
5405 } // namespace internal 5404 } // namespace internal
5406 } // namespace v8 5405 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698