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

Side by Side Diff: src/compiler/x87/code-generator-x87.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 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 } 2241 }
2242 2242
2243 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 2243 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
2244 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2244 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2245 SourcePosition pos) { 2245 SourcePosition pos) {
2246 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2246 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2247 isolate(), deoptimization_id, bailout_type); 2247 isolate(), deoptimization_id, bailout_type);
2248 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2248 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2249 DeoptimizeReason deoptimization_reason = 2249 DeoptimizeReason deoptimization_reason =
2250 GetDeoptimizationReason(deoptimization_id); 2250 GetDeoptimizationReason(deoptimization_id);
2251 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2251 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2252 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2252 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2253 return kSuccess; 2253 return kSuccess;
2254 } 2254 }
2255 2255
2256 2256
2257 // The calling convention for JSFunctions on X87 passes arguments on the 2257 // The calling convention for JSFunctions on X87 passes arguments on the
2258 // stack and the JSFunction and context in EDI and ESI, respectively, thus 2258 // stack and the JSFunction and context in EDI and ESI, respectively, thus
2259 // the steps of the call look as follows: 2259 // the steps of the call look as follows:
2260 2260
2261 // --{ before the call instruction }-------------------------------------------- 2261 // --{ before the call instruction }--------------------------------------------
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2718 __ Nop(padding_size); 2718 __ Nop(padding_size);
2719 } 2719 }
2720 } 2720 }
2721 2721
2722 #undef __ 2722 #undef __
2723 2723
2724 } // namespace compiler 2724 } // namespace compiler
2725 } // namespace internal 2725 } // namespace internal
2726 } // namespace v8 2726 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698