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

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

Issue 179773002: [x64] Improve key value sign-extension of dehoisted LoadKeyed/StoreKeyed (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: refine comments Created 6 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 | « no previous file | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 info()->requires_frame(); 79 info()->requires_frame();
80 } 80 }
81 bool NeedsDeferredFrame() const { 81 bool NeedsDeferredFrame() const {
82 return !NeedsEagerFrame() && info()->is_deferred_calling(); 82 return !NeedsEagerFrame() && info()->is_deferred_calling();
83 } 83 }
84 84
85 // Support for converting LOperands to assembler types. 85 // Support for converting LOperands to assembler types.
86 Register ToRegister(LOperand* op) const; 86 Register ToRegister(LOperand* op) const;
87 XMMRegister ToDoubleRegister(LOperand* op) const; 87 XMMRegister ToDoubleRegister(LOperand* op) const;
88 bool IsInteger32Constant(LConstantOperand* op) const; 88 bool IsInteger32Constant(LConstantOperand* op) const;
89 bool IsDehoistedKeyConstant(LConstantOperand* op) const;
89 bool IsSmiConstant(LConstantOperand* op) const; 90 bool IsSmiConstant(LConstantOperand* op) const;
90 int32_t ToInteger32(LConstantOperand* op) const; 91 int32_t ToInteger32(LConstantOperand* op) const;
91 Smi* ToSmi(LConstantOperand* op) const; 92 Smi* ToSmi(LConstantOperand* op) const;
92 double ToDouble(LConstantOperand* op) const; 93 double ToDouble(LConstantOperand* op) const;
93 ExternalReference ToExternalReference(LConstantOperand* op) const; 94 ExternalReference ToExternalReference(LConstantOperand* op) const;
94 bool IsTaggedConstant(LConstantOperand* op) const; 95 bool IsTaggedConstant(LConstantOperand* op) const;
95 Handle<Object> ToHandle(LConstantOperand* op) const; 96 Handle<Object> ToHandle(LConstantOperand* op) const;
96 Operand ToOperand(LOperand* op) const; 97 Operand ToOperand(LOperand* op) const;
97 98
98 // Try to generate code for the entire chunk, but it may fail if the 99 // Try to generate code for the entire chunk, but it may fail if the
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 153 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
153 154
154 155
155 void SaveCallerDoubles(); 156 void SaveCallerDoubles();
156 void RestoreCallerDoubles(); 157 void RestoreCallerDoubles();
157 158
158 // Code generation passes. Returns true if code generation should 159 // Code generation passes. Returns true if code generation should
159 // continue. 160 // continue.
160 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE; 161 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE;
162 void GenerateBodyInstructionPost(LInstruction* instr) V8_OVERRIDE;
161 bool GeneratePrologue(); 163 bool GeneratePrologue();
162 bool GenerateDeferredCode(); 164 bool GenerateDeferredCode();
163 bool GenerateJumpTable(); 165 bool GenerateJumpTable();
164 bool GenerateSafepointTable(); 166 bool GenerateSafepointTable();
165 167
166 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 168 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
167 void GenerateOsrPrologue(); 169 void GenerateOsrPrologue();
168 170
169 enum SafepointMode { 171 enum SafepointMode {
170 RECORD_SIMPLE_SAFEPOINT, 172 RECORD_SIMPLE_SAFEPOINT,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 Label entry_; 412 Label entry_;
411 Label exit_; 413 Label exit_;
412 Label done_; 414 Label done_;
413 Label* external_exit_; 415 Label* external_exit_;
414 int instruction_index_; 416 int instruction_index_;
415 }; 417 };
416 418
417 } } // namespace v8::internal 419 } } // namespace v8::internal
418 420
419 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 421 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698