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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 256
257 bool LCodeGen::GenerateDeferredCode() { 257 bool LCodeGen::GenerateDeferredCode() {
258 DCHECK(is_generating()); 258 DCHECK(is_generating());
259 if (deferred_.length() > 0) { 259 if (deferred_.length() > 0) {
260 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 260 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
261 LDeferredCode* code = deferred_[i]; 261 LDeferredCode* code = deferred_[i];
262 262
263 HValue* value = 263 HValue* value =
264 instructions_->at(code->instruction_index())->hydrogen_value(); 264 instructions_->at(code->instruction_index())->hydrogen_value();
265 RecordAndWritePosition( 265 RecordAndWritePosition(value->position());
266 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
267 266
268 Comment(";;; <@%d,#%d> " 267 Comment(";;; <@%d,#%d> "
269 "-------------------- Deferred %s --------------------", 268 "-------------------- Deferred %s --------------------",
270 code->instruction_index(), 269 code->instruction_index(),
271 code->instr()->hydrogen_value()->id(), 270 code->instr()->hydrogen_value()->id(),
272 code->instr()->Mnemonic()); 271 code->instr()->Mnemonic());
273 __ bind(code->entry()); 272 __ bind(code->entry());
274 if (NeedsDeferredFrame()) { 273 if (NeedsDeferredFrame()) {
275 Comment(";;; Build frame"); 274 Comment(";;; Build frame");
276 DCHECK(!frame_is_built_); 275 DCHECK(!frame_is_built_);
(...skipping 5345 matching lines...) Expand 10 before | Expand all | Expand 10 after
5622 __ ld(result, FieldMemOperand(scratch, 5621 __ ld(result, FieldMemOperand(scratch,
5623 FixedArray::kHeaderSize - kPointerSize)); 5622 FixedArray::kHeaderSize - kPointerSize));
5624 __ bind(deferred->exit()); 5623 __ bind(deferred->exit());
5625 __ bind(&done); 5624 __ bind(&done);
5626 } 5625 }
5627 5626
5628 #undef __ 5627 #undef __
5629 5628
5630 } // namespace internal 5629 } // namespace internal
5631 } // namespace v8 5630 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698