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

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

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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 | « src/arm/assembler-arm.h ('k') | src/arm/code-stubs-arm.h » ('j') | no next file with comments »
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // Setup buffer pointers. 320 // Setup buffer pointers.
321 ASSERT(buffer_ != NULL); 321 ASSERT(buffer_ != NULL);
322 pc_ = buffer_; 322 pc_ = buffer_;
323 reloc_info_writer.Reposition(buffer_ + buffer_size, pc_); 323 reloc_info_writer.Reposition(buffer_ + buffer_size, pc_);
324 num_pending_reloc_info_ = 0; 324 num_pending_reloc_info_ = 0;
325 next_buffer_check_ = 0; 325 next_buffer_check_ = 0;
326 const_pool_blocked_nesting_ = 0; 326 const_pool_blocked_nesting_ = 0;
327 no_const_pool_before_ = 0; 327 no_const_pool_before_ = 0;
328 first_const_pool_use_ = -1; 328 first_const_pool_use_ = -1;
329 last_bound_pos_ = 0; 329 last_bound_pos_ = 0;
330 ast_id_for_reloc_info_ = kNoASTId; 330 ClearRecordedAstId();
331 } 331 }
332 332
333 333
334 Assembler::~Assembler() { 334 Assembler::~Assembler() {
335 ASSERT(const_pool_blocked_nesting_ == 0); 335 ASSERT(const_pool_blocked_nesting_ == 0);
336 if (own_buffer_) { 336 if (own_buffer_) {
337 if (isolate()->assembler_spare_buffer() == NULL && 337 if (isolate()->assembler_spare_buffer() == NULL &&
338 buffer_size_ == kMinimalBufferSize) { 338 buffer_size_ == kMinimalBufferSize) {
339 isolate()->set_assembler_spare_buffer(buffer_); 339 isolate()->set_assembler_spare_buffer(buffer_);
340 } else { 340 } else {
(...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 if (!Serializer::enabled()) { 2531 if (!Serializer::enabled()) {
2532 Serializer::TooLateToEnableNow(); 2532 Serializer::TooLateToEnableNow();
2533 } 2533 }
2534 #endif 2534 #endif
2535 if (!Serializer::enabled() && !emit_debug_code()) { 2535 if (!Serializer::enabled() && !emit_debug_code()) {
2536 return; 2536 return;
2537 } 2537 }
2538 } 2538 }
2539 ASSERT(buffer_space() >= kMaxRelocSize); // too late to grow buffer here 2539 ASSERT(buffer_space() >= kMaxRelocSize); // too late to grow buffer here
2540 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { 2540 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
2541 ASSERT(ast_id_for_reloc_info_ != kNoASTId); 2541 RelocInfo reloc_info_with_ast_id(pc_, rmode, RecordedAstId());
2542 RelocInfo reloc_info_with_ast_id(pc_, rmode, ast_id_for_reloc_info_); 2542 ClearRecordedAstId();
2543 ast_id_for_reloc_info_ = kNoASTId;
2544 reloc_info_writer.Write(&reloc_info_with_ast_id); 2543 reloc_info_writer.Write(&reloc_info_with_ast_id);
2545 } else { 2544 } else {
2546 reloc_info_writer.Write(&rinfo); 2545 reloc_info_writer.Write(&rinfo);
2547 } 2546 }
2548 } 2547 }
2549 } 2548 }
2550 2549
2551 2550
2552 void Assembler::BlockConstPoolFor(int instructions) { 2551 void Assembler::BlockConstPoolFor(int instructions) {
2553 int pc_limit = pc_offset() + instructions * kInstrSize; 2552 int pc_limit = pc_offset() + instructions * kInstrSize;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 2653
2655 // Since a constant pool was just emitted, move the check offset forward by 2654 // Since a constant pool was just emitted, move the check offset forward by
2656 // the standard interval. 2655 // the standard interval.
2657 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 2656 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
2658 } 2657 }
2659 2658
2660 2659
2661 } } // namespace v8::internal 2660 } } // namespace v8::internal
2662 2661
2663 #endif // V8_TARGET_ARCH_ARM 2662 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/code-stubs-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698