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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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_IA32_LITHIUM_CODEGEN_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_
6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_
7 7
8 #include "src/ia32/lithium-ia32.h" 8 #include "src/ia32/lithium-ia32.h"
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 142 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
143 143
144 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 144 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
145 145
146 void SaveCallerDoubles(); 146 void SaveCallerDoubles();
147 void RestoreCallerDoubles(); 147 void RestoreCallerDoubles();
148 148
149 // Code generation passes. Returns true if code generation should 149 // Code generation passes. Returns true if code generation should
150 // continue. 150 // continue.
151 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE; 151 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE;
152 void GenerateBodyInstructionPost(LInstruction* instr) V8_OVERRIDE; 152 void GenerateBodyInstructionPost(LInstruction* instr) OVERRIDE;
153 bool GeneratePrologue(); 153 bool GeneratePrologue();
154 bool GenerateDeferredCode(); 154 bool GenerateDeferredCode();
155 bool GenerateJumpTable(); 155 bool GenerateJumpTable();
156 bool GenerateSafepointTable(); 156 bool GenerateSafepointTable();
157 157
158 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 158 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
159 void GenerateOsrPrologue(); 159 void GenerateOsrPrologue();
160 160
161 enum SafepointMode { 161 enum SafepointMode {
162 RECORD_SIMPLE_SAFEPOINT, 162 RECORD_SIMPLE_SAFEPOINT,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 void RecordSafepoint(LPointerMap* pointers, 252 void RecordSafepoint(LPointerMap* pointers,
253 Safepoint::Kind kind, 253 Safepoint::Kind kind,
254 int arguments, 254 int arguments,
255 Safepoint::DeoptMode mode); 255 Safepoint::DeoptMode mode);
256 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 256 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
257 void RecordSafepoint(Safepoint::DeoptMode mode); 257 void RecordSafepoint(Safepoint::DeoptMode mode);
258 void RecordSafepointWithRegisters(LPointerMap* pointers, 258 void RecordSafepointWithRegisters(LPointerMap* pointers,
259 int arguments, 259 int arguments,
260 Safepoint::DeoptMode mode); 260 Safepoint::DeoptMode mode);
261 261
262 void RecordAndWritePosition(int position) V8_OVERRIDE; 262 void RecordAndWritePosition(int position) OVERRIDE;
263 263
264 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 264 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
265 void EmitGoto(int block); 265 void EmitGoto(int block);
266 266
267 // EmitBranch expects to be the last instruction of a block. 267 // EmitBranch expects to be the last instruction of a block.
268 template<class InstrType> 268 template<class InstrType>
269 void EmitBranch(InstrType instr, Condition cc); 269 void EmitBranch(InstrType instr, Condition cc);
270 template<class InstrType> 270 template<class InstrType>
271 void EmitFalseBranch(InstrType instr, Condition cc); 271 void EmitFalseBranch(InstrType instr, Condition cc);
272 void EmitNumberUntagD( 272 void EmitNumberUntagD(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void EmitIsConstructCall(Register temp); 304 void EmitIsConstructCall(Register temp);
305 305
306 // Emits optimized code to deep-copy the contents of statically known 306 // Emits optimized code to deep-copy the contents of statically known
307 // object graphs (e.g. object literal boilerplate). 307 // object graphs (e.g. object literal boilerplate).
308 void EmitDeepCopy(Handle<JSObject> object, 308 void EmitDeepCopy(Handle<JSObject> object,
309 Register result, 309 Register result,
310 Register source, 310 Register source,
311 int* offset, 311 int* offset,
312 AllocationSiteMode mode); 312 AllocationSiteMode mode);
313 313
314 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; 314 void EnsureSpaceForLazyDeopt(int space_needed) OVERRIDE;
315 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 315 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
316 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 316 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
317 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 317 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
318 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 318 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
319 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 319 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
320 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 320 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
321 321
322 template <class T> 322 template <class T>
323 void EmitVectorLoadICRegisters(T* instr); 323 void EmitVectorLoadICRegisters(T* instr);
324 324
(...skipping 27 matching lines...) Expand all
352 352
353 // Builder that keeps track of safepoints in the code. The table 353 // Builder that keeps track of safepoints in the code. The table
354 // itself is emitted at the end of the generated code. 354 // itself is emitted at the end of the generated code.
355 SafepointTableBuilder safepoints_; 355 SafepointTableBuilder safepoints_;
356 356
357 // Compiler from a set of parallel moves to a sequential list of moves. 357 // Compiler from a set of parallel moves to a sequential list of moves.
358 LGapResolver resolver_; 358 LGapResolver resolver_;
359 359
360 Safepoint::Kind expected_safepoint_kind_; 360 Safepoint::Kind expected_safepoint_kind_;
361 361
362 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 362 class PushSafepointRegistersScope FINAL BASE_EMBEDDED {
363 public: 363 public:
364 explicit PushSafepointRegistersScope(LCodeGen* codegen) 364 explicit PushSafepointRegistersScope(LCodeGen* codegen)
365 : codegen_(codegen) { 365 : codegen_(codegen) {
366 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 366 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
367 codegen_->masm_->PushSafepointRegisters(); 367 codegen_->masm_->PushSafepointRegisters();
368 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 368 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
369 DCHECK(codegen_->info()->is_calling()); 369 DCHECK(codegen_->info()->is_calling());
370 } 370 }
371 371
372 ~PushSafepointRegistersScope() { 372 ~PushSafepointRegistersScope() {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 Label entry_; 414 Label entry_;
415 Label exit_; 415 Label exit_;
416 Label* external_exit_; 416 Label* external_exit_;
417 Label done_; 417 Label done_;
418 int instruction_index_; 418 int instruction_index_;
419 }; 419 };
420 420
421 } } // namespace v8::internal 421 } } // namespace v8::internal
422 422
423 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 423 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698