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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 // Calling conventions: | 122 // Calling conventions: |
123 // ebp: caller's frame pointer | 123 // ebp: caller's frame pointer |
124 // esp: stack pointer | 124 // esp: stack pointer |
125 // edi: called JS function | 125 // edi: called JS function |
126 // esi: callee's context | 126 // esi: callee's context |
127 | 127 |
128 void CodeGenerator::Generate(CompilationInfo* info) { | 128 void CodeGenerator::Generate(CompilationInfo* info) { |
129 // Record the position for debugging purposes. | 129 // Record the position for debugging purposes. |
130 CodeForFunctionPosition(info->function()); | 130 CodeForFunctionPosition(info->function()); |
| 131 Comment cmnt(masm_, "[ function compiled by virtual frame code generator"); |
131 | 132 |
132 // Initialize state. | 133 // Initialize state. |
133 info_ = info; | 134 info_ = info; |
134 ASSERT(allocator_ == NULL); | 135 ASSERT(allocator_ == NULL); |
135 RegisterAllocator register_allocator(this); | 136 RegisterAllocator register_allocator(this); |
136 allocator_ = ®ister_allocator; | 137 allocator_ = ®ister_allocator; |
137 ASSERT(frame_ == NULL); | 138 ASSERT(frame_ == NULL); |
138 frame_ = new VirtualFrame(); | 139 frame_ = new VirtualFrame(); |
139 set_in_spilled_code(false); | 140 set_in_spilled_code(false); |
140 | 141 |
(...skipping 10876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11017 | 11018 |
11018 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) | 11019 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
11019 // tagged as a small integer. | 11020 // tagged as a small integer. |
11020 __ bind(&runtime); | 11021 __ bind(&runtime); |
11021 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); | 11022 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); |
11022 } | 11023 } |
11023 | 11024 |
11024 #undef __ | 11025 #undef __ |
11025 | 11026 |
11026 } } // namespace v8::internal | 11027 } } // namespace v8::internal |
OLD | NEW |