| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 masm_->BlockConstPoolFor(return_sequence_length); | 136 masm_->BlockConstPoolFor(return_sequence_length); |
| 137 | 137 |
| 138 CodeGenerator::RecordPositions(masm_, position); | 138 CodeGenerator::RecordPositions(masm_, position); |
| 139 __ RecordJSReturn(); | 139 __ RecordJSReturn(); |
| 140 __ mov(sp, fp); | 140 __ mov(sp, fp); |
| 141 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | 141 __ ldm(ia_w, sp, fp.bit() | lr.bit()); |
| 142 __ add(sp, sp, Operand(sp_delta)); | 142 __ add(sp, sp, Operand(sp_delta)); |
| 143 __ Jump(lr); | 143 __ Jump(lr); |
| 144 | 144 |
| 145 // Check that the size of the code used for returning matches what is | 145 // Check that the size of the code used for returning matches what is |
| 146 // expected by the debugger. The add instruction above is an addressing | 146 // expected by the debugger. The add instruction above is an addressing |
| 147 // mode 1 instruction where there are restrictions on which immediate values | 147 // mode 1 instruction where there are restrictions on which immediate values |
| 148 // can be encoded in the instruction and which immediate values requires | 148 // can be encoded in the instruction and which immediate values requires |
| 149 // use of an additional instruction for moving the immediate to a temporary | 149 // use of an additional instruction for moving the immediate to a temporary |
| 150 // register. | 150 // register. |
| 151 ASSERT_EQ(expected_return_sequence_length, | 151 ASSERT_EQ(return_sequence_length, |
| 152 masm_->InstructionsGeneratedSince(&check_exit_codesize)); | 152 masm_->InstructionsGeneratedSince(&check_exit_codesize)); |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 | 156 |
| 157 void FastCodeGenerator::Move(Expression::Context context, Register source) { | 157 void FastCodeGenerator::Move(Expression::Context context, Register source) { |
| 158 switch (context) { | 158 switch (context) { |
| 159 case Expression::kUninitialized: | 159 case Expression::kUninitialized: |
| 160 UNREACHABLE(); | 160 UNREACHABLE(); |
| 161 case Expression::kEffect: | 161 case Expression::kEffect: |
| 162 break; | 162 break; |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 true_label_ = saved_true; | 1291 true_label_ = saved_true; |
| 1292 false_label_ = saved_false; | 1292 false_label_ = saved_false; |
| 1293 // Convert current context to test context: End post-test code. | 1293 // Convert current context to test context: End post-test code. |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 | 1296 |
| 1297 #undef __ | 1297 #undef __ |
| 1298 | 1298 |
| 1299 | 1299 |
| 1300 } } // namespace v8::internal | 1300 } } // namespace v8::internal |
| OLD | NEW |