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

Side by Side Diff: src/arm/assembler-arm.h

Issue 555943003: ARM: Do not stack allocate big buffers in Assembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | src/arm/assembler-arm.cc » ('j') | src/arm/assembler-arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 RelocInfoWriter reloc_info_writer; 1591 RelocInfoWriter reloc_info_writer;
1592 1592
1593 // Relocation info records are also used during code generation as temporary 1593 // Relocation info records are also used during code generation as temporary
1594 // containers for constants and code target addresses until they are emitted 1594 // containers for constants and code target addresses until they are emitted
1595 // to the constant pool. These pending relocation info records are temporarily 1595 // to the constant pool. These pending relocation info records are temporarily
1596 // stored in a separate buffer until a constant pool is emitted. 1596 // stored in a separate buffer until a constant pool is emitted.
1597 // If every instruction in a long sequence is accessing the pool, we need one 1597 // If every instruction in a long sequence is accessing the pool, we need one
1598 // pending relocation entry per instruction. 1598 // pending relocation entry per instruction.
1599 1599
1600 // The buffers of pending relocation info. 1600 // The buffers of pending relocation info.
1601 RelocInfo pending_32_bit_reloc_info_[kMaxNumPending32RelocInfo]; 1601 RelocInfo* pending_32_bit_reloc_info_;
1602 RelocInfo pending_64_bit_reloc_info_[kMaxNumPending64RelocInfo]; 1602 RelocInfo* pending_64_bit_reloc_info_;
1603 int max_num_32_bit_reloc_info_;
1604 int max_num_64_bit_reloc_info_;
1603 // Number of pending reloc info entries in the 32 bits buffer. 1605 // Number of pending reloc info entries in the 32 bits buffer.
1604 int num_pending_32_bit_reloc_info_; 1606 int num_pending_32_bit_reloc_info_;
1605 // Number of pending reloc info entries in the 64 bits buffer. 1607 // Number of pending reloc info entries in the 64 bits buffer.
1606 int num_pending_64_bit_reloc_info_; 1608 int num_pending_64_bit_reloc_info_;
1607 1609
1608 ConstantPoolBuilder constant_pool_builder_; 1610 ConstantPoolBuilder constant_pool_builder_;
1609 1611
1610 // The bound position, before this we cannot do instruction elimination. 1612 // The bound position, before this we cannot do instruction elimination.
1611 int last_bound_pos_; 1613 int last_bound_pos_;
1612 1614
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 public: 1664 public:
1663 explicit EnsureSpace(Assembler* assembler) { 1665 explicit EnsureSpace(Assembler* assembler) {
1664 assembler->CheckBuffer(); 1666 assembler->CheckBuffer();
1665 } 1667 }
1666 }; 1668 };
1667 1669
1668 1670
1669 } } // namespace v8::internal 1671 } } // namespace v8::internal
1670 1672
1671 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1673 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | src/arm/assembler-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698