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

Side by Side Diff: src/codegen.cc

Issue 13383: Experimental: all the deferred code currently uses registers freely,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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 | 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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 MacroAssembler* masm = code->masm(); 57 MacroAssembler* masm = code->masm();
58 // Record position of deferred code stub. 58 // Record position of deferred code stub.
59 if (code->statement_position() != RelocInfo::kNoPosition) { 59 if (code->statement_position() != RelocInfo::kNoPosition) {
60 masm->RecordStatementPosition(code->statement_position()); 60 masm->RecordStatementPosition(code->statement_position());
61 } 61 }
62 if (code->position() != RelocInfo::kNoPosition) { 62 if (code->position() != RelocInfo::kNoPosition) {
63 masm->RecordPosition(code->position()); 63 masm->RecordPosition(code->position());
64 } 64 }
65 // Bind labels and generate the code. 65 // Bind labels and generate the code.
66 code->enter()->Bind(); 66 code->enter()->Bind();
67 frame_->SpillAll(0);
67 Comment cmnt(masm, code->comment()); 68 Comment cmnt(masm, code->comment());
68 code->Generate(); 69 code->Generate();
69 if (code->exit()->is_bound()) { 70 if (code->exit()->is_bound()) {
70 code->exit()->Jump(); 71 code->exit()->Jump();
71 } 72 }
72 } 73 }
73 } 74 }
74 75
75 76
76 // Generate the code. Takes a function literal, generates code for it, assemble 77 // Generate the code. Takes a function literal, generates code for it, assemble
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 491 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
491 switch (type_) { 492 switch (type_) {
492 case READ_LENGTH: GenerateReadLength(masm); break; 493 case READ_LENGTH: GenerateReadLength(masm); break;
493 case READ_ELEMENT: GenerateReadElement(masm); break; 494 case READ_ELEMENT: GenerateReadElement(masm); break;
494 case NEW_OBJECT: GenerateNewObject(masm); break; 495 case NEW_OBJECT: GenerateNewObject(masm); break;
495 } 496 }
496 } 497 }
497 498
498 499
499 } } // namespace v8::internal 500 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698