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

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 2732273003: Disentangle assembler from isolate. (Closed)
Patch Set: Address feedback. Created 3 years, 9 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/compiler/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.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 // 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 2330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2341 int deoptimization_id, SourcePosition pos) { 2341 int deoptimization_id, SourcePosition pos) {
2342 DeoptimizeKind deoptimization_kind = GetDeoptimizationKind(deoptimization_id); 2342 DeoptimizeKind deoptimization_kind = GetDeoptimizationKind(deoptimization_id);
2343 DeoptimizeReason deoptimization_reason = 2343 DeoptimizeReason deoptimization_reason =
2344 GetDeoptimizationReason(deoptimization_id); 2344 GetDeoptimizationReason(deoptimization_id);
2345 Deoptimizer::BailoutType bailout_type = 2345 Deoptimizer::BailoutType bailout_type =
2346 deoptimization_kind == DeoptimizeKind::kSoft ? Deoptimizer::SOFT 2346 deoptimization_kind == DeoptimizeKind::kSoft ? Deoptimizer::SOFT
2347 : Deoptimizer::EAGER; 2347 : Deoptimizer::EAGER;
2348 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2348 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2349 isolate(), deoptimization_id, bailout_type); 2349 isolate(), deoptimization_id, bailout_type);
2350 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2350 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2351 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); 2351 if (isolate()->NeedsSourcePositionsForProfiling()) {
2352 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2353 }
2352 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2354 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2353 return kSuccess; 2355 return kSuccess;
2354 } 2356 }
2355 2357
2356 void CodeGenerator::FinishFrame(Frame* frame) { 2358 void CodeGenerator::FinishFrame(Frame* frame) {
2357 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2359 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2358 2360
2359 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); 2361 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
2360 if (saves_fpu != 0) { 2362 if (saves_fpu != 0) {
2361 int count = base::bits::CountPopulation32(saves_fpu); 2363 int count = base::bits::CountPopulation32(saves_fpu);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 padding_size -= v8::internal::Assembler::kInstrSize; 2685 padding_size -= v8::internal::Assembler::kInstrSize;
2684 } 2686 }
2685 } 2687 }
2686 } 2688 }
2687 2689
2688 #undef __ 2690 #undef __
2689 2691
2690 } // namespace compiler 2692 } // namespace compiler
2691 } // namespace internal 2693 } // namespace internal
2692 } // namespace v8 2694 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698