| OLD | NEW |
| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 frame_ = new_frame; | 99 frame_ = new_frame; |
| 100 saved_counts.CopyTo(non_frame_registers); | 100 saved_counts.CopyTo(non_frame_registers); |
| 101 } | 101 } |
| 102 | 102 |
| 103 | 103 |
| 104 void CodeGenerator::DeleteFrame() { | 104 void CodeGenerator::DeleteFrame() { |
| 105 if (has_valid_frame()) { | 105 if (has_valid_frame()) { |
| 106 frame_->DetachFromCodeGenerator(); | 106 frame_->DetachFromCodeGenerator(); |
| 107 delete frame_; | |
| 108 frame_ = NULL; | 107 frame_ = NULL; |
| 109 } | 108 } |
| 110 } | 109 } |
| 111 | 110 |
| 112 | 111 |
| 113 // Generate the code. Takes a function literal, generates code for it, assemble | 112 // Generate the code. Takes a function literal, generates code for it, assemble |
| 114 // all the pieces into a Code object. This function is only to be called by | 113 // all the pieces into a Code object. This function is only to be called by |
| 115 // the compiler.cc code. | 114 // the compiler.cc code. |
| 116 Handle<Code> CodeGenerator::MakeCode(FunctionLiteral* flit, | 115 Handle<Code> CodeGenerator::MakeCode(FunctionLiteral* flit, |
| 117 Handle<Script> script, | 116 Handle<Script> script, |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 628 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 630 switch (type_) { | 629 switch (type_) { |
| 631 case READ_LENGTH: GenerateReadLength(masm); break; | 630 case READ_LENGTH: GenerateReadLength(masm); break; |
| 632 case READ_ELEMENT: GenerateReadElement(masm); break; | 631 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 633 case NEW_OBJECT: GenerateNewObject(masm); break; | 632 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 634 } | 633 } |
| 635 } | 634 } |
| 636 | 635 |
| 637 | 636 |
| 638 } } // namespace v8::internal | 637 } } // namespace v8::internal |
| OLD | NEW |