Chromium Code Reviews| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 __ CallRuntime(Runtime::kTraceExit, 1); | 93 __ CallRuntime(Runtime::kTraceExit, 1); |
| 94 } | 94 } |
| 95 __ mov(sp, fp); | 95 __ mov(sp, fp); |
| 96 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | 96 __ ldm(ia_w, sp, fp.bit() | lr.bit()); |
| 97 int count = CfgGlobals::current()->fun()->scope()->num_parameters(); | 97 int count = CfgGlobals::current()->fun()->scope()->num_parameters(); |
| 98 __ add(sp, sp, Operand((count + 1) * kPointerSize)); | 98 __ add(sp, sp, Operand((count + 1) * kPointerSize)); |
| 99 __ Jump(lr); | 99 __ Jump(lr); |
| 100 } | 100 } |
| 101 | 101 |
| 102 | 102 |
| 103 void PositionInstr::Compile(MacroAssembler* masm) { | |
| 104 if (FLAG_debug_info && pos_ != RelocInfo::kNoPosition) { | |
| 105 __ RecordStatementPosition(pos_); | |
|
Lasse Reichstein
2009/08/06 10:02:28
Should we use "masm->" instead of "__" here? Using
| |
| 106 __ RecordPosition(pos_); | |
| 107 } | |
| 108 } | |
| 109 | |
| 110 | |
| 103 void BinaryOpInstr::Compile(MacroAssembler* masm) { | 111 void BinaryOpInstr::Compile(MacroAssembler* masm) { |
| 104 // The right-hand value should not be on the stack---if it is a | 112 // The right-hand value should not be on the stack---if it is a |
| 105 // compiler-generated temporary it is in the accumulator. | 113 // compiler-generated temporary it is in the accumulator. |
| 106 ASSERT(!val1_->is_on_stack()); | 114 ASSERT(!val1_->is_on_stack()); |
| 107 | 115 |
| 108 Comment cmnt(masm, "[ BinaryOpInstr"); | 116 Comment cmnt(masm, "[ BinaryOpInstr"); |
| 109 // We can overwrite one of the operands if it is a temporary. | 117 // We can overwrite one of the operands if it is a temporary. |
| 110 OverwriteMode mode = NO_OVERWRITE; | 118 OverwriteMode mode = NO_OVERWRITE; |
| 111 if (val0_->is_temporary()) { | 119 if (val0_->is_temporary()) { |
| 112 mode = OVERWRITE_LEFT; | 120 mode = OVERWRITE_LEFT; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 case NOWHERE: | 222 case NOWHERE: |
| 215 UNREACHABLE(); | 223 UNREACHABLE(); |
| 216 break; | 224 break; |
| 217 } | 225 } |
| 218 } | 226 } |
| 219 | 227 |
| 220 | 228 |
| 221 #undef __ | 229 #undef __ |
| 222 | 230 |
| 223 } } // namespace v8::internal | 231 } } // namespace v8::internal |
| OLD | NEW |