OLD | NEW |
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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 return constant_pool_builder_.AddEntry(pc_offset(), value); | 1303 return constant_pool_builder_.AddEntry(pc_offset(), value); |
1304 } | 1304 } |
1305 | 1305 |
1306 // Block the emission of the trampoline pool before pc_offset. | 1306 // Block the emission of the trampoline pool before pc_offset. |
1307 void BlockTrampolinePoolBefore(int pc_offset) { | 1307 void BlockTrampolinePoolBefore(int pc_offset) { |
1308 if (no_trampoline_pool_before_ < pc_offset) | 1308 if (no_trampoline_pool_before_ < pc_offset) |
1309 no_trampoline_pool_before_ = pc_offset; | 1309 no_trampoline_pool_before_ = pc_offset; |
1310 } | 1310 } |
1311 | 1311 |
1312 void StartBlockTrampolinePool() { trampoline_pool_blocked_nesting_++; } | 1312 void StartBlockTrampolinePool() { trampoline_pool_blocked_nesting_++; } |
1313 void EndBlockTrampolinePool() { trampoline_pool_blocked_nesting_--; } | 1313 void EndBlockTrampolinePool() { |
| 1314 int count = --trampoline_pool_blocked_nesting_; |
| 1315 if (count == 0) CheckTrampolinePoolQuick(); |
| 1316 } |
1314 bool is_trampoline_pool_blocked() const { | 1317 bool is_trampoline_pool_blocked() const { |
1315 return trampoline_pool_blocked_nesting_ > 0; | 1318 return trampoline_pool_blocked_nesting_ > 0; |
1316 } | 1319 } |
1317 | 1320 |
1318 void StartBlockConstantPoolEntrySharing() { | 1321 void StartBlockConstantPoolEntrySharing() { |
1319 constant_pool_entry_sharing_blocked_nesting_++; | 1322 constant_pool_entry_sharing_blocked_nesting_++; |
1320 } | 1323 } |
1321 void EndBlockConstantPoolEntrySharing() { | 1324 void EndBlockConstantPoolEntrySharing() { |
1322 constant_pool_entry_sharing_blocked_nesting_--; | 1325 constant_pool_entry_sharing_blocked_nesting_--; |
1323 } | 1326 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 | 1451 |
1449 | 1452 |
1450 class EnsureSpace BASE_EMBEDDED { | 1453 class EnsureSpace BASE_EMBEDDED { |
1451 public: | 1454 public: |
1452 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1455 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
1453 }; | 1456 }; |
1454 } // namespace internal | 1457 } // namespace internal |
1455 } // namespace v8 | 1458 } // namespace v8 |
1456 | 1459 |
1457 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1460 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
OLD | NEW |