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

Side by Side Diff: src/codegen.cc

Issue 2855018: X64: Change strategy for spilling to match ia32. It's just better. (Closed)
Patch Set: Addressed review comments Created 10 years, 6 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
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/ia32/assembler-ia32.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 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #undef __ 62 #undef __
63 63
64 64
65 CodeGenerator* CodeGeneratorScope::top_ = NULL; 65 CodeGenerator* CodeGeneratorScope::top_ = NULL;
66 66
67 67
68 void CodeGenerator::ProcessDeferred() { 68 void CodeGenerator::ProcessDeferred() {
69 while (!deferred_.is_empty()) { 69 while (!deferred_.is_empty()) {
70 DeferredCode* code = deferred_.RemoveLast(); 70 DeferredCode* code = deferred_.RemoveLast();
71 ASSERT(masm_ == code->masm()); 71 ASSERT(masm_ == code->masm());
72 masm_->CodeTargetAlign();
72 // Record position of deferred code stub. 73 // Record position of deferred code stub.
73 masm_->RecordStatementPosition(code->statement_position()); 74 masm_->RecordStatementPosition(code->statement_position());
74 if (code->position() != RelocInfo::kNoPosition) { 75 if (code->position() != RelocInfo::kNoPosition) {
75 masm_->RecordPosition(code->position()); 76 masm_->RecordPosition(code->position());
76 } 77 }
77 // Generate the code. 78 // Generate the code.
78 Comment cmnt(masm_, code->comment()); 79 Comment cmnt(masm_, code->comment());
79 masm_->bind(code->entry_label()); 80 masm_->bind(code->entry_label());
80 code->SaveRegisters(); 81 code->SaveRegisters();
81 code->Generate(); 82 code->Generate();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 504 }
504 } 505 }
505 506
506 507
507 void ApiGetterEntryStub::SetCustomCache(Code* value) { 508 void ApiGetterEntryStub::SetCustomCache(Code* value) {
508 info()->set_load_stub_cache(value); 509 info()->set_load_stub_cache(value);
509 } 510 }
510 511
511 512
512 } } // namespace v8::internal 513 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698