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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed obsolete identifiers Created 4 years, 1 month 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/compilation-info.h" 7 #include "src/compilation-info.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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 } 2345 }
2346 2346
2347 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 2347 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
2348 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2348 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2349 SourcePosition pos) { 2349 SourcePosition pos) {
2350 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2350 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2351 isolate(), deoptimization_id, bailout_type); 2351 isolate(), deoptimization_id, bailout_type);
2352 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2352 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2353 DeoptimizeReason deoptimization_reason = 2353 DeoptimizeReason deoptimization_reason =
2354 GetDeoptimizationReason(deoptimization_id); 2354 GetDeoptimizationReason(deoptimization_id);
2355 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2355 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2356 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2356 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2357 return kSuccess; 2357 return kSuccess;
2358 } 2358 }
2359 2359
2360 2360
2361 namespace { 2361 namespace {
2362 2362
2363 static const int kQuadWordSize = 16; 2363 static const int kQuadWordSize = 16;
2364 2364
2365 } // namespace 2365 } // namespace
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2756 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2757 __ Nop(padding_size); 2757 __ Nop(padding_size);
2758 } 2758 }
2759 } 2759 }
2760 2760
2761 #undef __ 2761 #undef __
2762 2762
2763 } // namespace compiler 2763 } // namespace compiler
2764 } // namespace internal 2764 } // namespace internal
2765 } // namespace v8 2765 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698