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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool NeedsEagerFrame() const { | 86 bool NeedsEagerFrame() const { |
87 return GetStackSlotCount() > 0 || | 87 return GetStackSlotCount() > 0 || |
88 info()->is_non_deferred_calling() || | 88 info()->is_non_deferred_calling() || |
89 !info()->IsStub(); | 89 !info()->IsStub() || |
| 90 info()->stub_that_uses_arguments(); |
90 } | 91 } |
91 bool NeedsDeferredFrame() const { | 92 bool NeedsDeferredFrame() const { |
92 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 93 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
93 } | 94 } |
94 | 95 |
95 // Support for converting LOperands to assembler types. | 96 // Support for converting LOperands to assembler types. |
96 Operand ToOperand(LOperand* op) const; | 97 Operand ToOperand(LOperand* op) const; |
97 Register ToRegister(LOperand* op) const; | 98 Register ToRegister(LOperand* op) const; |
98 XMMRegister ToDoubleRegister(LOperand* op) const; | 99 XMMRegister ToDoubleRegister(LOperand* op) const; |
99 bool IsX87TopOfStack(LOperand* op) const; | 100 bool IsX87TopOfStack(LOperand* op) const; |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 LCodeGen* codegen_; | 478 LCodeGen* codegen_; |
478 Label entry_; | 479 Label entry_; |
479 Label exit_; | 480 Label exit_; |
480 Label* external_exit_; | 481 Label* external_exit_; |
481 int instruction_index_; | 482 int instruction_index_; |
482 }; | 483 }; |
483 | 484 |
484 } } // namespace v8::internal | 485 } } // namespace v8::internal |
485 | 486 |
486 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 487 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |