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

Side by Side Diff: src/x64/lithium-codegen-x64.h

Issue 874323003: Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor change Created 5 years, 10 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/x64/assembler-x64.cc ('k') | src/x64/lithium-codegen-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ 5 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_
6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_
7 7
8 #include "src/x64/lithium-x64.h" 8 #include "src/x64/lithium-x64.h"
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // to be in rdi. 192 // to be in rdi.
193 void CallKnownFunction(Handle<JSFunction> function, 193 void CallKnownFunction(Handle<JSFunction> function,
194 int formal_parameter_count, int arity, 194 int formal_parameter_count, int arity,
195 LInstruction* instr); 195 LInstruction* instr);
196 196
197 void RecordSafepointWithLazyDeopt(LInstruction* instr, 197 void RecordSafepointWithLazyDeopt(LInstruction* instr,
198 SafepointMode safepoint_mode, 198 SafepointMode safepoint_mode,
199 int argc); 199 int argc);
200 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 200 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
201 Safepoint::DeoptMode mode); 201 Safepoint::DeoptMode mode);
202 void DeoptimizeIf(Condition cc, LInstruction* instr, const char* detail, 202 void DeoptimizeIf(Condition cc, LInstruction* instr,
203 Deoptimizer::DeoptReason deopt_reason,
203 Deoptimizer::BailoutType bailout_type); 204 Deoptimizer::BailoutType bailout_type);
204 void DeoptimizeIf(Condition cc, LInstruction* instr, const char* detail); 205 void DeoptimizeIf(Condition cc, LInstruction* instr,
206 Deoptimizer::DeoptReason deopt_reason);
205 207
206 bool DeoptEveryNTimes() { 208 bool DeoptEveryNTimes() {
207 return FLAG_deopt_every_n_times != 0 && !info()->IsStub(); 209 return FLAG_deopt_every_n_times != 0 && !info()->IsStub();
208 } 210 }
209 211
210 void AddToTranslation(LEnvironment* environment, 212 void AddToTranslation(LEnvironment* environment,
211 Translation* translation, 213 Translation* translation,
212 LOperand* op, 214 LOperand* op,
213 bool is_tagged, 215 bool is_tagged,
214 bool is_uint32, 216 bool is_uint32,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 Label entry_; 389 Label entry_;
388 Label exit_; 390 Label exit_;
389 Label done_; 391 Label done_;
390 Label* external_exit_; 392 Label* external_exit_;
391 int instruction_index_; 393 int instruction_index_;
392 }; 394 };
393 395
394 } } // namespace v8::internal 396 } } // namespace v8::internal
395 397
396 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 398 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698