| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 // Calling conventions: | 139 // Calling conventions: |
| 140 // fp: caller's frame pointer | 140 // fp: caller's frame pointer |
| 141 // sp: stack pointer | 141 // sp: stack pointer |
| 142 // r1: called JS function | 142 // r1: called JS function |
| 143 // cp: callee's context | 143 // cp: callee's context |
| 144 | 144 |
| 145 void CodeGenerator::Generate(CompilationInfo* info) { | 145 void CodeGenerator::Generate(CompilationInfo* info) { |
| 146 // Record the position for debugging purposes. | 146 // Record the position for debugging purposes. |
| 147 CodeForFunctionPosition(info->function()); | 147 CodeForFunctionPosition(info->function()); |
| 148 Comment cmnt(masm_, "[ function compiled by virtual frame code generator"); |
| 148 | 149 |
| 149 // Initialize state. | 150 // Initialize state. |
| 150 info_ = info; | 151 info_ = info; |
| 151 ASSERT(allocator_ == NULL); | 152 ASSERT(allocator_ == NULL); |
| 152 RegisterAllocator register_allocator(this); | 153 RegisterAllocator register_allocator(this); |
| 153 allocator_ = ®ister_allocator; | 154 allocator_ = ®ister_allocator; |
| 154 ASSERT(frame_ == NULL); | 155 ASSERT(frame_ == NULL); |
| 155 frame_ = new VirtualFrame(); | 156 frame_ = new VirtualFrame(); |
| 156 cc_reg_ = al; | 157 cc_reg_ = al; |
| 157 { | 158 { |
| (...skipping 7499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7657 | 7658 |
| 7658 // Just jump to runtime to add the two strings. | 7659 // Just jump to runtime to add the two strings. |
| 7659 __ bind(&string_add_runtime); | 7660 __ bind(&string_add_runtime); |
| 7660 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1); | 7661 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1); |
| 7661 } | 7662 } |
| 7662 | 7663 |
| 7663 | 7664 |
| 7664 #undef __ | 7665 #undef __ |
| 7665 | 7666 |
| 7666 } } // namespace v8::internal | 7667 } } // namespace v8::internal |
| OLD | NEW |