| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 { Comment cmnt(masm_, "[ return <undefined>;"); | 192 { Comment cmnt(masm_, "[ return <undefined>;"); |
| 193 // Emit a 'return undefined' in case control fell off the end of the | 193 // Emit a 'return undefined' in case control fell off the end of the |
| 194 // body. | 194 // body. |
| 195 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 195 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
| 196 } | 196 } |
| 197 EmitReturnSequence(); | 197 EmitReturnSequence(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 | 200 |
| 201 void FullCodeGenerator::ClearAccumulator() { |
| 202 __ mov(r0, Operand(Smi::FromInt(0))); |
| 203 } |
| 204 |
| 205 |
| 201 void FullCodeGenerator::EmitReturnSequence() { | 206 void FullCodeGenerator::EmitReturnSequence() { |
| 202 Comment cmnt(masm_, "[ Return sequence"); | 207 Comment cmnt(masm_, "[ Return sequence"); |
| 203 if (return_label_.is_bound()) { | 208 if (return_label_.is_bound()) { |
| 204 __ b(&return_label_); | 209 __ b(&return_label_); |
| 205 } else { | 210 } else { |
| 206 __ bind(&return_label_); | 211 __ bind(&return_label_); |
| 207 if (FLAG_trace) { | 212 if (FLAG_trace) { |
| 208 // Push the return value on the stack as the parameter. | 213 // Push the return value on the stack as the parameter. |
| 209 // Runtime::TraceExit returns its parameter in r0. | 214 // Runtime::TraceExit returns its parameter in r0. |
| 210 __ push(r0); | 215 __ push(r0); |
| (...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3383 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3388 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 3384 __ add(pc, r1, Operand(masm_->CodeObject())); | 3389 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 3385 } | 3390 } |
| 3386 | 3391 |
| 3387 | 3392 |
| 3388 #undef __ | 3393 #undef __ |
| 3389 | 3394 |
| 3390 } } // namespace v8::internal | 3395 } } // namespace v8::internal |
| 3391 | 3396 |
| 3392 #endif // V8_TARGET_ARCH_ARM | 3397 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |