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

Side by Side Diff: src/lithium-codegen.cc

Issue 1011733005: CpuProfiler: extract DeoptInfo fill in code into a static function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/lithium-codegen.h ('k') | src/mips/lithium-codegen-mips.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 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/lithium-codegen.h" 5 #include "src/lithium-codegen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (map->is_deprecated()) return Retry(kMapBecameDeprecated); 182 if (map->is_deprecated()) return Retry(kMapBecameDeprecated);
183 chunk_->AddDeprecationDependency(map); 183 chunk_->AddDeprecationDependency(map);
184 } 184 }
185 185
186 186
187 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { 187 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) {
188 if (!map->is_stable()) return Retry(kMapBecameUnstable); 188 if (!map->is_stable()) return Retry(kMapBecameUnstable);
189 chunk_->AddStabilityDependency(map); 189 chunk_->AddStabilityDependency(map);
190 } 190 }
191 191
192
193 Deoptimizer::DeoptInfo LCodeGenBase::MakeDeoptInfo(
194 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason) {
195 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(),
196 instr->Mnemonic(), deopt_reason);
197 HEnterInlined* enter_inlined = instr->environment()->entry();
198 deopt_info.inlining_id = enter_inlined ? enter_inlined->inlining_id() : 0;
199 return deopt_info;
200 }
192 } } // namespace v8::internal 201 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium-codegen.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698