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

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

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/full-codegen-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 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) V8_OVERRIDE; 146 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE;
147 void GenerateBodyInstructionPost(LInstruction* instr) V8_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Support for recording safepoint and position information. 246 // Support for recording safepoint and position information.
247 void RecordSafepoint(LPointerMap* pointers, 247 void RecordSafepoint(LPointerMap* pointers,
248 Safepoint::Kind kind, 248 Safepoint::Kind kind,
249 int arguments, 249 int arguments,
250 Safepoint::DeoptMode mode); 250 Safepoint::DeoptMode mode);
251 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 251 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
252 void RecordSafepoint(Safepoint::DeoptMode mode); 252 void RecordSafepoint(Safepoint::DeoptMode mode);
253 void RecordSafepointWithRegisters(LPointerMap* pointers, 253 void RecordSafepointWithRegisters(LPointerMap* pointers,
254 int arguments, 254 int arguments,
255 Safepoint::DeoptMode mode); 255 Safepoint::DeoptMode mode);
256 void RecordAndWritePosition(int position) V8_OVERRIDE; 256 void RecordAndWritePosition(int position) OVERRIDE;
257 257
258 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 258 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
259 void EmitGoto(int block); 259 void EmitGoto(int block);
260 260
261 // EmitBranch expects to be the last instruction of a block. 261 // EmitBranch expects to be the last instruction of a block.
262 template<class InstrType> 262 template<class InstrType>
263 void EmitBranch(InstrType instr, Condition cc); 263 void EmitBranch(InstrType instr, Condition cc);
264 template<class InstrType> 264 template<class InstrType>
265 void EmitFalseBranch(InstrType instr, Condition cc); 265 void EmitFalseBranch(InstrType instr, Condition cc);
266 void EmitNumberUntagD( 266 void EmitNumberUntagD(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 void EmitPushTaggedOperand(LOperand* operand); 300 void EmitPushTaggedOperand(LOperand* operand);
301 301
302 // Emits optimized code to deep-copy the contents of statically known 302 // Emits optimized code to deep-copy the contents of statically known
303 // object graphs (e.g. object literal boilerplate). 303 // object graphs (e.g. object literal boilerplate).
304 void EmitDeepCopy(Handle<JSObject> object, 304 void EmitDeepCopy(Handle<JSObject> object,
305 Register result, 305 Register result,
306 Register source, 306 Register source,
307 int* offset, 307 int* offset,
308 AllocationSiteMode mode); 308 AllocationSiteMode mode);
309 309
310 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; 310 void EnsureSpaceForLazyDeopt(int space_needed) OVERRIDE;
311 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 311 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
312 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 312 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
313 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 313 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
314 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 314 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
315 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 315 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
316 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 316 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
317 317
318 template <class T> 318 template <class T>
319 void EmitVectorLoadICRegisters(T* instr); 319 void EmitVectorLoadICRegisters(T* instr);
320 320
(...skipping 17 matching lines...) Expand all
338 338
339 // Builder that keeps track of safepoints in the code. The table 339 // Builder that keeps track of safepoints in the code. The table
340 // itself is emitted at the end of the generated code. 340 // itself is emitted at the end of the generated code.
341 SafepointTableBuilder safepoints_; 341 SafepointTableBuilder safepoints_;
342 342
343 // Compiler from a set of parallel moves to a sequential list of moves. 343 // Compiler from a set of parallel moves to a sequential list of moves.
344 LGapResolver resolver_; 344 LGapResolver resolver_;
345 345
346 Safepoint::Kind expected_safepoint_kind_; 346 Safepoint::Kind expected_safepoint_kind_;
347 347
348 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 348 class PushSafepointRegistersScope FINAL BASE_EMBEDDED {
349 public: 349 public:
350 explicit PushSafepointRegistersScope(LCodeGen* codegen) 350 explicit PushSafepointRegistersScope(LCodeGen* codegen)
351 : codegen_(codegen) { 351 : codegen_(codegen) {
352 DCHECK(codegen_->info()->is_calling()); 352 DCHECK(codegen_->info()->is_calling());
353 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 353 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
354 codegen_->masm_->PushSafepointRegisters(); 354 codegen_->masm_->PushSafepointRegisters();
355 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 355 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
356 } 356 }
357 357
358 ~PushSafepointRegistersScope() { 358 ~PushSafepointRegistersScope() {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 Label entry_; 400 Label entry_;
401 Label exit_; 401 Label exit_;
402 Label done_; 402 Label done_;
403 Label* external_exit_; 403 Label* external_exit_;
404 int instruction_index_; 404 int instruction_index_;
405 }; 405 };
406 406
407 } } // namespace v8::internal 407 } } // namespace v8::internal
408 408
409 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 409 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698