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

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

Issue 17276002: Refactor lithium codegen to not pass around block_ids (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 6 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/arm/lithium-codegen-arm.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 // 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 // Simple accessors. 78 // Simple accessors.
79 MacroAssembler* masm() const { return masm_; } 79 MacroAssembler* masm() const { return masm_; }
80 CompilationInfo* info() const { return info_; } 80 CompilationInfo* info() const { return info_; }
81 Isolate* isolate() const { return info_->isolate(); } 81 Isolate* isolate() const { return info_->isolate(); }
82 Factory* factory() const { return isolate()->factory(); } 82 Factory* factory() const { return isolate()->factory(); }
83 Heap* heap() const { return isolate()->heap(); } 83 Heap* heap() const { return isolate()->heap(); }
84 Zone* zone() const { return zone_; } 84 Zone* zone() const { return zone_; }
85 85
86 // TODO(svenpanne) Use this consistently.
87 int LookupDestination(int block_id) const { 86 int LookupDestination(int block_id) const {
88 return chunk()->LookupDestination(block_id); 87 return chunk()->LookupDestination(block_id);
89 } 88 }
90 89
91 bool IsNextEmittedBlock(int block_id) const { 90 bool IsNextEmittedBlock(int block_id) const {
92 return LookupDestination(block_id) == GetNextEmittedBlock(); 91 return LookupDestination(block_id) == GetNextEmittedBlock();
93 } 92 }
94 93
95 bool NeedsEagerFrame() const { 94 bool NeedsEagerFrame() const {
96 return GetStackSlotCount() > 0 || 95 return GetStackSlotCount() > 0 ||
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 Safepoint::DeoptMode mode); 310 Safepoint::DeoptMode mode);
312 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 311 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
313 void RecordSafepoint(Safepoint::DeoptMode mode); 312 void RecordSafepoint(Safepoint::DeoptMode mode);
314 void RecordSafepointWithRegisters(LPointerMap* pointers, 313 void RecordSafepointWithRegisters(LPointerMap* pointers,
315 int arguments, 314 int arguments,
316 Safepoint::DeoptMode mode); 315 Safepoint::DeoptMode mode);
317 void RecordPosition(int position); 316 void RecordPosition(int position);
318 317
319 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 318 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
320 void EmitGoto(int block); 319 void EmitGoto(int block);
321 void EmitBranch(int left_block, int right_block, Condition cc); 320 template<class InstrType>
321 void EmitBranch(InstrType instr, Condition cc);
322 void EmitNumberUntagD( 322 void EmitNumberUntagD(
323 Register input, 323 Register input,
324 Register temp, 324 Register temp,
325 XMMRegister result, 325 XMMRegister result,
326 bool allow_undefined_as_nan, 326 bool allow_undefined_as_nan,
327 bool deoptimize_on_minus_zero, 327 bool deoptimize_on_minus_zero,
328 LEnvironment* env, 328 LEnvironment* env,
329 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); 329 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED);
330 330
331 void EmitNumberUntagDNoSSE2( 331 void EmitNumberUntagDNoSSE2(
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 LCodeGen* codegen_; 476 LCodeGen* codegen_;
477 Label entry_; 477 Label entry_;
478 Label exit_; 478 Label exit_;
479 Label* external_exit_; 479 Label* external_exit_;
480 int instruction_index_; 480 int instruction_index_;
481 }; 481 };
482 482
483 } } // namespace v8::internal 483 } } // namespace v8::internal
484 484
485 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 485 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698