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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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/lithium-codegen.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && 77 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
78 GenerateJumpTable() && GenerateSafepointTable(); 78 GenerateJumpTable() && GenerateSafepointTable();
79 } 79 }
80 80
81 81
82 void LCodeGen::FinishCode(Handle<Code> code) { 82 void LCodeGen::FinishCode(Handle<Code> code) {
83 DCHECK(is_done()); 83 DCHECK(is_done());
84 code->set_stack_slots(GetTotalFrameSlotCount()); 84 code->set_stack_slots(GetTotalFrameSlotCount());
85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
86 Handle<ByteArray> source_positions =
87 source_position_table_builder_.ToSourcePositionTable();
88 code->set_source_position_table(*source_positions);
89 PopulateDeoptimizationData(code); 86 PopulateDeoptimizationData(code);
90 } 87 }
91 88
92 89
93 void LCodeGen::SaveCallerDoubles() { 90 void LCodeGen::SaveCallerDoubles() {
94 DCHECK(info()->saves_caller_doubles()); 91 DCHECK(info()->saves_caller_doubles());
95 DCHECK(NeedsEagerFrame()); 92 DCHECK(NeedsEagerFrame());
96 Comment(";;; Save clobbered callee double registers"); 93 Comment(";;; Save clobbered callee double registers");
97 int count = 0; 94 int count = 0;
98 BitVector* doubles = chunk()->allocated_double_registers(); 95 BitVector* doubles = chunk()->allocated_double_registers();
(...skipping 5440 matching lines...) Expand 10 before | Expand all | Expand 10 after
5539 __ lw(result, FieldMemOperand(scratch, 5536 __ lw(result, FieldMemOperand(scratch,
5540 FixedArray::kHeaderSize - kPointerSize)); 5537 FixedArray::kHeaderSize - kPointerSize));
5541 __ bind(deferred->exit()); 5538 __ bind(deferred->exit());
5542 __ bind(&done); 5539 __ bind(&done);
5543 } 5540 }
5544 5541
5545 #undef __ 5542 #undef __
5546 5543
5547 } // namespace internal 5544 } // namespace internal
5548 } // namespace v8 5545 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/lithium-codegen.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698