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

Side by Side Diff: src/arm/lithium-codegen-arm.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-arm.h ('k') | src/arm/lithium-codegen-arm.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 73
74 // Simple accessors. 74 // Simple accessors.
75 MacroAssembler* masm() const { return masm_; } 75 MacroAssembler* masm() const { return masm_; }
76 CompilationInfo* info() const { return info_; } 76 CompilationInfo* info() const { return info_; }
77 Isolate* isolate() const { return info_->isolate(); } 77 Isolate* isolate() const { return info_->isolate(); }
78 Factory* factory() const { return isolate()->factory(); } 78 Factory* factory() const { return isolate()->factory(); }
79 Heap* heap() const { return isolate()->heap(); } 79 Heap* heap() const { return isolate()->heap(); }
80 Zone* zone() const { return zone_; } 80 Zone* zone() const { return zone_; }
81 81
82 // TODO(svenpanne) Use this consistently.
83 int LookupDestination(int block_id) const { 82 int LookupDestination(int block_id) const {
84 return chunk()->LookupDestination(block_id); 83 return chunk()->LookupDestination(block_id);
85 } 84 }
86 85
87 bool IsNextEmittedBlock(int block_id) const { 86 bool IsNextEmittedBlock(int block_id) const {
88 return LookupDestination(block_id) == GetNextEmittedBlock(); 87 return LookupDestination(block_id) == GetNextEmittedBlock();
89 } 88 }
90 89
91 bool NeedsEagerFrame() const { 90 bool NeedsEagerFrame() const {
92 return GetStackSlotCount() > 0 || 91 return GetStackSlotCount() > 0 ||
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void RecordSafepointWithRegisters(LPointerMap* pointers, 312 void RecordSafepointWithRegisters(LPointerMap* pointers,
314 int arguments, 313 int arguments,
315 Safepoint::DeoptMode mode); 314 Safepoint::DeoptMode mode);
316 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, 315 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers,
317 int arguments, 316 int arguments,
318 Safepoint::DeoptMode mode); 317 Safepoint::DeoptMode mode);
319 void RecordPosition(int position); 318 void RecordPosition(int position);
320 319
321 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 320 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
322 void EmitGoto(int block); 321 void EmitGoto(int block);
323 void EmitBranch(int left_block, int right_block, Condition cc); 322 template<class InstrType>
323 void EmitBranch(InstrType instr, Condition cc);
324 void EmitNumberUntagD(Register input, 324 void EmitNumberUntagD(Register input,
325 DwVfpRegister result, 325 DwVfpRegister 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); 329 NumberUntagDMode mode);
330 330
331 // Emits optimized code for typeof x == "y". Modifies input register. 331 // Emits optimized code for typeof x == "y". Modifies input register.
332 // Returns the condition on which a final split to 332 // Returns the condition on which a final split to
333 // true and false label should be made, to optimize fallthrough. 333 // true and false label should be made, to optimize fallthrough.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 LCodeGen* codegen_; 491 LCodeGen* codegen_;
492 Label entry_; 492 Label entry_;
493 Label exit_; 493 Label exit_;
494 Label* external_exit_; 494 Label* external_exit_;
495 int instruction_index_; 495 int instruction_index_;
496 }; 496 };
497 497
498 } } // namespace v8::internal 498 } } // namespace v8::internal
499 499
500 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 500 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698