OLD | NEW |
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 Loading... |
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 Safepoint::DeoptMode mode); | 275 Safepoint::DeoptMode mode); |
277 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 276 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
278 void RecordSafepoint(Safepoint::DeoptMode mode); | 277 void RecordSafepoint(Safepoint::DeoptMode mode); |
279 void RecordSafepointWithRegisters(LPointerMap* pointers, | 278 void RecordSafepointWithRegisters(LPointerMap* pointers, |
280 int arguments, | 279 int arguments, |
281 Safepoint::DeoptMode mode); | 280 Safepoint::DeoptMode mode); |
282 void RecordPosition(int position); | 281 void RecordPosition(int position); |
283 | 282 |
284 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 283 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
285 void EmitGoto(int block); | 284 void EmitGoto(int block); |
286 void EmitBranch(int left_block, int right_block, Condition cc); | 285 template<class InstrType> |
| 286 void EmitBranch(InstrType instr, Condition cc); |
287 void EmitNumberUntagD( | 287 void EmitNumberUntagD( |
288 Register input, | 288 Register input, |
289 XMMRegister result, | 289 XMMRegister result, |
290 bool allow_undefined_as_nan, | 290 bool allow_undefined_as_nan, |
291 bool deoptimize_on_minus_zero, | 291 bool deoptimize_on_minus_zero, |
292 LEnvironment* env, | 292 LEnvironment* env, |
293 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); | 293 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); |
294 | 294 |
295 // Emits optimized code for typeof x == "y". Modifies input register. | 295 // Emits optimized code for typeof x == "y". Modifies input register. |
296 // Returns the condition on which a final split to | 296 // Returns the condition on which a final split to |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 LCodeGen* codegen_; | 426 LCodeGen* codegen_; |
427 Label entry_; | 427 Label entry_; |
428 Label exit_; | 428 Label exit_; |
429 Label* external_exit_; | 429 Label* external_exit_; |
430 int instruction_index_; | 430 int instruction_index_; |
431 }; | 431 }; |
432 | 432 |
433 } } // namespace v8::internal | 433 } } // namespace v8::internal |
434 | 434 |
435 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 435 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |