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

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

Issue 2161543002: [turbofan] Add support for eager/soft deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do the ports properly Created 4 years, 5 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 __ j(above_equal, GetLabel(i.InputRpo(1))); 2131 __ j(above_equal, GetLabel(i.InputRpo(1)));
2132 __ leaq(kScratchRegister, Operand(table)); 2132 __ leaq(kScratchRegister, Operand(table));
2133 __ jmp(Operand(kScratchRegister, input, times_8, 0)); 2133 __ jmp(Operand(kScratchRegister, input, times_8, 0));
2134 } 2134 }
2135 2135
2136 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 2136 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
2137 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { 2137 int deoptimization_id, Deoptimizer::BailoutType bailout_type) {
2138 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2138 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2139 isolate(), deoptimization_id, bailout_type); 2139 isolate(), deoptimization_id, bailout_type);
2140 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2140 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2141 DeoptimizeReason deoptimization_reason =
2142 GetDeoptimizationReason(deoptimization_id);
2143 __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id);
2141 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2144 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2142 return kSuccess; 2145 return kSuccess;
2143 } 2146 }
2144 2147
2145 2148
2146 namespace { 2149 namespace {
2147 2150
2148 static const int kQuadWordSize = 16; 2151 static const int kQuadWordSize = 16;
2149 2152
2150 } // namespace 2153 } // namespace
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2543 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2541 __ Nop(padding_size); 2544 __ Nop(padding_size);
2542 } 2545 }
2543 } 2546 }
2544 2547
2545 #undef __ 2548 #undef __
2546 2549
2547 } // namespace compiler 2550 } // namespace compiler
2548 } // namespace internal 2551 } // namespace internal
2549 } // namespace v8 2552 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698