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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool NeedsEagerFrame() const { | 82 bool NeedsEagerFrame() const { |
83 return GetStackSlotCount() > 0 || | 83 return GetStackSlotCount() > 0 || |
84 info()->is_non_deferred_calling() || | 84 info()->is_non_deferred_calling() || |
85 !info()->IsStub(); | 85 !info()->IsStub() || |
| 86 info()->stub_that_uses_arguments(); |
86 } | 87 } |
87 bool NeedsDeferredFrame() const { | 88 bool NeedsDeferredFrame() const { |
88 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 89 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
89 } | 90 } |
90 | 91 |
91 // Support for converting LOperands to assembler types. | 92 // Support for converting LOperands to assembler types. |
92 Register ToRegister(LOperand* op) const; | 93 Register ToRegister(LOperand* op) const; |
93 XMMRegister ToDoubleRegister(LOperand* op) const; | 94 XMMRegister ToDoubleRegister(LOperand* op) const; |
94 bool IsInteger32Constant(LConstantOperand* op) const; | 95 bool IsInteger32Constant(LConstantOperand* op) const; |
95 int ToInteger32(LConstantOperand* op) const; | 96 int ToInteger32(LConstantOperand* op) const; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 LCodeGen* codegen_; | 431 LCodeGen* codegen_; |
431 Label entry_; | 432 Label entry_; |
432 Label exit_; | 433 Label exit_; |
433 Label* external_exit_; | 434 Label* external_exit_; |
434 int instruction_index_; | 435 int instruction_index_; |
435 }; | 436 }; |
436 | 437 |
437 } } // namespace v8::internal | 438 } } // namespace v8::internal |
438 | 439 |
439 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 440 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |