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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 FrameScope frame_scope(masm_, StackFrame::NONE); 48 FrameScope frame_scope(masm_, StackFrame::NONE);
49 49
50 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && 50 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
51 GenerateJumpTable() && GenerateSafepointTable(); 51 GenerateJumpTable() && GenerateSafepointTable();
52 } 52 }
53 53
54 void LCodeGen::FinishCode(Handle<Code> code) { 54 void LCodeGen::FinishCode(Handle<Code> code) {
55 DCHECK(is_done()); 55 DCHECK(is_done());
56 code->set_stack_slots(GetTotalFrameSlotCount()); 56 code->set_stack_slots(GetTotalFrameSlotCount());
57 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 57 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
58 Handle<ByteArray> source_positions =
59 source_position_table_builder_.ToSourcePositionTable();
60 code->set_source_position_table(*source_positions);
61 PopulateDeoptimizationData(code); 58 PopulateDeoptimizationData(code);
62 } 59 }
63 60
64 void LCodeGen::SaveCallerDoubles() { 61 void LCodeGen::SaveCallerDoubles() {
65 DCHECK(info()->saves_caller_doubles()); 62 DCHECK(info()->saves_caller_doubles());
66 DCHECK(NeedsEagerFrame()); 63 DCHECK(NeedsEagerFrame());
67 Comment(";;; Save clobbered callee double registers"); 64 Comment(";;; Save clobbered callee double registers");
68 int count = 0; 65 int count = 0;
69 BitVector* doubles = chunk()->allocated_double_registers(); 66 BitVector* doubles = chunk()->allocated_double_registers();
70 BitVector::Iterator save_iterator(doubles); 67 BitVector::Iterator save_iterator(doubles);
(...skipping 5597 matching lines...) Expand 10 before | Expand all | Expand 10 after
5668 __ LoadP(result, 5665 __ LoadP(result,
5669 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5666 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5670 __ bind(deferred->exit()); 5667 __ bind(deferred->exit());
5671 __ bind(&done); 5668 __ bind(&done);
5672 } 5669 }
5673 5670
5674 #undef __ 5671 #undef __
5675 5672
5676 } // namespace internal 5673 } // namespace internal
5677 } // namespace v8 5674 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698