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

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

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/code-stubs-x64.h ('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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 136 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
137 137
138 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 138 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
139 139
140 140
141 void SaveCallerDoubles(); 141 void SaveCallerDoubles();
142 void RestoreCallerDoubles(); 142 void RestoreCallerDoubles();
143 143
144 // Code generation passes. Returns true if code generation should 144 // Code generation passes. Returns true if code generation should
145 // continue. 145 // continue.
146 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE; 146 void GenerateBodyInstructionPre(LInstruction* instr) override;
147 void GenerateBodyInstructionPost(LInstruction* instr) OVERRIDE; 147 void GenerateBodyInstructionPost(LInstruction* instr) override;
148 bool GeneratePrologue(); 148 bool GeneratePrologue();
149 bool GenerateDeferredCode(); 149 bool GenerateDeferredCode();
150 bool GenerateJumpTable(); 150 bool GenerateJumpTable();
151 bool GenerateSafepointTable(); 151 bool GenerateSafepointTable();
152 152
153 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 153 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
154 void GenerateOsrPrologue(); 154 void GenerateOsrPrologue();
155 155
156 enum SafepointMode { 156 enum SafepointMode {
157 RECORD_SIMPLE_SAFEPOINT, 157 RECORD_SIMPLE_SAFEPOINT,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Support for recording safepoint and position information. 240 // Support for recording safepoint and position information.
241 void RecordSafepoint(LPointerMap* pointers, 241 void RecordSafepoint(LPointerMap* pointers,
242 Safepoint::Kind kind, 242 Safepoint::Kind kind,
243 int arguments, 243 int arguments,
244 Safepoint::DeoptMode mode); 244 Safepoint::DeoptMode mode);
245 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 245 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
246 void RecordSafepoint(Safepoint::DeoptMode mode); 246 void RecordSafepoint(Safepoint::DeoptMode mode);
247 void RecordSafepointWithRegisters(LPointerMap* pointers, 247 void RecordSafepointWithRegisters(LPointerMap* pointers,
248 int arguments, 248 int arguments,
249 Safepoint::DeoptMode mode); 249 Safepoint::DeoptMode mode);
250 void RecordAndWritePosition(int position) OVERRIDE; 250 void RecordAndWritePosition(int position) override;
251 251
252 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 252 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
253 void EmitGoto(int block); 253 void EmitGoto(int block);
254 254
255 // EmitBranch expects to be the last instruction of a block. 255 // EmitBranch expects to be the last instruction of a block.
256 template<class InstrType> 256 template<class InstrType>
257 void EmitBranch(InstrType instr, Condition cc); 257 void EmitBranch(InstrType instr, Condition cc);
258 template<class InstrType> 258 template<class InstrType>
259 void EmitFalseBranch(InstrType instr, Condition cc); 259 void EmitFalseBranch(InstrType instr, Condition cc);
260 void EmitNumberUntagD(LNumberUntagD* instr, Register input, 260 void EmitNumberUntagD(LNumberUntagD* instr, Register input,
(...skipping 28 matching lines...) Expand all
289 void EmitPushTaggedOperand(LOperand* operand); 289 void EmitPushTaggedOperand(LOperand* operand);
290 290
291 // Emits optimized code to deep-copy the contents of statically known 291 // Emits optimized code to deep-copy the contents of statically known
292 // object graphs (e.g. object literal boilerplate). 292 // object graphs (e.g. object literal boilerplate).
293 void EmitDeepCopy(Handle<JSObject> object, 293 void EmitDeepCopy(Handle<JSObject> object,
294 Register result, 294 Register result,
295 Register source, 295 Register source,
296 int* offset, 296 int* offset,
297 AllocationSiteMode mode); 297 AllocationSiteMode mode);
298 298
299 void EnsureSpaceForLazyDeopt(int space_needed) OVERRIDE; 299 void EnsureSpaceForLazyDeopt(int space_needed) override;
300 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 300 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
301 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 301 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
302 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 302 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
303 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 303 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
304 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 304 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
305 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 305 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
306 306
307 template <class T> 307 template <class T>
308 void EmitVectorLoadICRegisters(T* instr); 308 void EmitVectorLoadICRegisters(T* instr);
309 309
(...skipping 17 matching lines...) Expand all
327 327
328 // Builder that keeps track of safepoints in the code. The table 328 // Builder that keeps track of safepoints in the code. The table
329 // itself is emitted at the end of the generated code. 329 // itself is emitted at the end of the generated code.
330 SafepointTableBuilder safepoints_; 330 SafepointTableBuilder safepoints_;
331 331
332 // Compiler from a set of parallel moves to a sequential list of moves. 332 // Compiler from a set of parallel moves to a sequential list of moves.
333 LGapResolver resolver_; 333 LGapResolver resolver_;
334 334
335 Safepoint::Kind expected_safepoint_kind_; 335 Safepoint::Kind expected_safepoint_kind_;
336 336
337 class PushSafepointRegistersScope FINAL BASE_EMBEDDED { 337 class PushSafepointRegistersScope final BASE_EMBEDDED {
338 public: 338 public:
339 explicit PushSafepointRegistersScope(LCodeGen* codegen) 339 explicit PushSafepointRegistersScope(LCodeGen* codegen)
340 : codegen_(codegen) { 340 : codegen_(codegen) {
341 DCHECK(codegen_->info()->is_calling()); 341 DCHECK(codegen_->info()->is_calling());
342 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 342 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
343 codegen_->masm_->PushSafepointRegisters(); 343 codegen_->masm_->PushSafepointRegisters();
344 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 344 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
345 } 345 }
346 346
347 ~PushSafepointRegistersScope() { 347 ~PushSafepointRegistersScope() {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 Label entry_; 389 Label entry_;
390 Label exit_; 390 Label exit_;
391 Label done_; 391 Label done_;
392 Label* external_exit_; 392 Label* external_exit_;
393 int instruction_index_; 393 int instruction_index_;
394 }; 394 };
395 395
396 } } // namespace v8::internal 396 } } // namespace v8::internal
397 397
398 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 398 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698