| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 function_return_is_shadowed_(false) { | 135 function_return_is_shadowed_(false) { |
| 136 } | 136 } |
| 137 | 137 |
| 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::GenCode(FunctionLiteral* fun) { | 145 void CodeGenerator::GenCode(FunctionLiteral* fun, CompilationInfo* info) { |
| 146 // Record the position for debugging purposes. | 146 // Record the position for debugging purposes. |
| 147 CodeForFunctionPosition(fun); | 147 CodeForFunctionPosition(fun); |
| 148 | 148 |
| 149 ZoneList<Statement*>* body = fun->body(); | 149 ZoneList<Statement*>* body = fun->body(); |
| 150 | 150 |
| 151 // Initialize state. | 151 // Initialize state. |
| 152 ASSERT(scope_ == NULL); | 152 ASSERT(scope_ == NULL); |
| 153 scope_ = fun->scope(); | 153 scope_ = fun->scope(); |
| 154 ASSERT(allocator_ == NULL); | 154 ASSERT(allocator_ == NULL); |
| 155 RegisterAllocator register_allocator(this); | 155 RegisterAllocator register_allocator(this); |
| (...skipping 6785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6941 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) | 6941 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
| 6942 // tagged as a small integer. | 6942 // tagged as a small integer. |
| 6943 __ bind(&runtime); | 6943 __ bind(&runtime); |
| 6944 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); | 6944 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); |
| 6945 } | 6945 } |
| 6946 | 6946 |
| 6947 | 6947 |
| 6948 #undef __ | 6948 #undef __ |
| 6949 | 6949 |
| 6950 } } // namespace v8::internal | 6950 } } // namespace v8::internal |
| OLD | NEW |