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

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

Issue 2248673002: Avoid accessing Isolate in source position logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 months 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 masm()->AbortConstantPoolBuilding(); 54 masm()->AbortConstantPoolBuilding();
55 } 55 }
56 return rc; 56 return rc;
57 } 57 }
58 58
59 59
60 void LCodeGen::FinishCode(Handle<Code> code) { 60 void LCodeGen::FinishCode(Handle<Code> code) {
61 DCHECK(is_done()); 61 DCHECK(is_done());
62 code->set_stack_slots(GetTotalFrameSlotCount()); 62 code->set_stack_slots(GetTotalFrameSlotCount());
63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
64 Handle<ByteArray> source_positions =
65 source_position_table_builder_.ToSourcePositionTable();
66 code->set_source_position_table(*source_positions);
67 PopulateDeoptimizationData(code); 64 PopulateDeoptimizationData(code);
68 } 65 }
69 66
70 67
71 void LCodeGen::SaveCallerDoubles() { 68 void LCodeGen::SaveCallerDoubles() {
72 DCHECK(info()->saves_caller_doubles()); 69 DCHECK(info()->saves_caller_doubles());
73 DCHECK(NeedsEagerFrame()); 70 DCHECK(NeedsEagerFrame());
74 Comment(";;; Save clobbered callee double registers"); 71 Comment(";;; Save clobbered callee double registers");
75 int count = 0; 72 int count = 0;
76 BitVector* doubles = chunk()->allocated_double_registers(); 73 BitVector* doubles = chunk()->allocated_double_registers();
(...skipping 5702 matching lines...) Expand 10 before | Expand all | Expand 10 after
5779 __ LoadP(result, 5776 __ LoadP(result,
5780 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5777 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5781 __ bind(deferred->exit()); 5778 __ bind(deferred->exit());
5782 __ bind(&done); 5779 __ bind(&done);
5783 } 5780 }
5784 5781
5785 #undef __ 5782 #undef __
5786 5783
5787 } // namespace internal 5784 } // namespace internal
5788 } // namespace v8 5785 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698