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

Side by Side Diff: src/codegen.cc

Issue 15079: Experimental: this is a substantial change to allow the virtual frame... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 12 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 | « no previous file | src/codegen-ia32.h » ('j') | src/register-allocator-ia32.h » ('J')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void CodeGenerator::ProcessDeferred() { 56 void CodeGenerator::ProcessDeferred() {
57 while (!deferred_.is_empty()) { 57 while (!deferred_.is_empty()) {
58 DeferredCode* code = deferred_.RemoveLast(); 58 DeferredCode* code = deferred_.RemoveLast();
59 MacroAssembler* masm = code->masm(); 59 MacroAssembler* masm = code->masm();
60 // Record position of deferred code stub. 60 // Record position of deferred code stub.
61 masm->RecordStatementPosition(code->statement_position()); 61 masm->RecordStatementPosition(code->statement_position());
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 // Generate the code.
66 code->enter()->Bind();
67 frame_->SpillAll();
68 Comment cmnt(masm, code->comment()); 66 Comment cmnt(masm, code->comment());
69 code->Generate(); 67 code->Generate();
70 if (code->exit()->is_bound()) { 68 ASSERT(code->enter()->is_bound());
71 code->exit()->Jump();
72 }
73 } 69 }
74 } 70 }
75 71
76 72
77 // Generate the code. Takes a function literal, generates code for it, assemble 73 // Generate the code. Takes a function literal, generates code for it, assemble
78 // all the pieces into a Code object. This function is only to be called by 74 // all the pieces into a Code object. This function is only to be called by
79 // the compiler.cc code. 75 // the compiler.cc code.
80 Handle<Code> CodeGenerator::MakeCode(FunctionLiteral* flit, 76 Handle<Code> CodeGenerator::MakeCode(FunctionLiteral* flit,
81 Handle<Script> script, 77 Handle<Script> script,
82 bool is_eval) { 78 bool is_eval) {
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 507 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
512 switch (type_) { 508 switch (type_) {
513 case READ_LENGTH: GenerateReadLength(masm); break; 509 case READ_LENGTH: GenerateReadLength(masm); break;
514 case READ_ELEMENT: GenerateReadElement(masm); break; 510 case READ_ELEMENT: GenerateReadElement(masm); break;
515 case NEW_OBJECT: GenerateNewObject(masm); break; 511 case NEW_OBJECT: GenerateNewObject(masm); break;
516 } 512 }
517 } 513 }
518 514
519 515
520 } } // namespace v8::internal 516 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/codegen-ia32.h » ('j') | src/register-allocator-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698