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

Side by Side Diff: src/codegen.cc

Issue 1787005: Avoid constant pool blocking for too long... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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
« src/arm/codegen-arm.cc ('K') | « src/codegen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 while (!deferred_.is_empty()) { 70 while (!deferred_.is_empty()) {
71 DeferredCode* code = deferred_.RemoveLast(); 71 DeferredCode* code = deferred_.RemoveLast();
72 ASSERT(masm_ == code->masm()); 72 ASSERT(masm_ == code->masm());
73 // Record position of deferred code stub. 73 // Record position of deferred code stub.
74 masm_->RecordStatementPosition(code->statement_position()); 74 masm_->RecordStatementPosition(code->statement_position());
75 if (code->position() != RelocInfo::kNoPosition) { 75 if (code->position() != RelocInfo::kNoPosition) {
76 masm_->RecordPosition(code->position()); 76 masm_->RecordPosition(code->position());
77 } 77 }
78 // Generate the code. 78 // Generate the code.
79 Comment cmnt(masm_, code->comment()); 79 Comment cmnt(masm_, code->comment());
80 code->BeforeGenerate();
81 masm_->bind(code->entry_label()); 80 masm_->bind(code->entry_label());
82 code->SaveRegisters(); 81 code->SaveRegisters();
83 code->Generate(); 82 code->Generate();
84 code->RestoreRegisters(); 83 code->RestoreRegisters();
85 masm_->jmp(code->exit_label()); 84 masm_->jmp(code->exit_label());
86 code->AfterGenerate();
87 } 85 }
88 } 86 }
89 87
90 88
91 void CodeGenerator::SetFrame(VirtualFrame* new_frame, 89 void CodeGenerator::SetFrame(VirtualFrame* new_frame,
92 RegisterFile* non_frame_registers) { 90 RegisterFile* non_frame_registers) {
93 RegisterFile saved_counts; 91 RegisterFile saved_counts;
94 if (has_valid_frame()) { 92 if (has_valid_frame()) {
95 frame_->DetachFromCodeGenerator(); 93 frame_->DetachFromCodeGenerator();
96 // The remaining register reference counts are the non-frame ones. 94 // The remaining register reference counts are the non-frame ones.
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 481 }
484 } 482 }
485 483
486 484
487 void ApiGetterEntryStub::SetCustomCache(Code* value) { 485 void ApiGetterEntryStub::SetCustomCache(Code* value) {
488 info()->set_load_stub_cache(value); 486 info()->set_load_stub_cache(value);
489 } 487 }
490 488
491 489
492 } } // namespace v8::internal 490 } } // namespace v8::internal
OLDNEW
« src/arm/codegen-arm.cc ('K') | « src/codegen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698