| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 | 143 |
| 144 void VirtualFrame::PushTryHandler(HandlerType type) { | 144 void VirtualFrame::PushTryHandler(HandlerType type) { |
| 145 // Grow the expression stack by handler size less two (the return address | 145 // Grow the expression stack by handler size less two (the return address |
| 146 // is already pushed by a call instruction, and PushTryHandler from the | 146 // is already pushed by a call instruction, and PushTryHandler from the |
| 147 // macro assembler will leave the top of stack in the eax register to be | 147 // macro assembler will leave the top of stack in the eax register to be |
| 148 // pushed separately). | 148 // pushed separately). |
| 149 Adjust(kHandlerSize - 2); | 149 Adjust(kHandlerSize - 2); |
| 150 __ PushTryHandler(IN_JAVASCRIPT, type); | 150 __ PushTryHandler(IN_JAVASCRIPT, type); |
| 151 // TODO(1222589): remove the reliance of PushTryHandler on a cached TOS | 151 // TODO(1222589): remove the reliance of PushTryHandler on a cached TOS |
| 152 Push(eax); | 152 EmitPush(eax); |
| 153 } | 153 } |
| 154 | 154 |
| 155 | 155 |
| 156 void VirtualFrame::CallStub(CodeStub* stub, int frame_arg_count) { | 156 void VirtualFrame::CallStub(CodeStub* stub, int frame_arg_count) { |
| 157 ASSERT(height() >= frame_arg_count); | 157 ASSERT(height() >= frame_arg_count); |
| 158 Forget(frame_arg_count); | 158 Forget(frame_arg_count); |
| 159 __ CallStub(stub); | 159 __ CallStub(stub); |
| 160 } | 160 } |
| 161 | 161 |
| 162 | 162 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 __ pop(reg); | 209 __ pop(reg); |
| 210 } | 210 } |
| 211 | 211 |
| 212 | 212 |
| 213 void VirtualFrame::Pop(Operand operand) { | 213 void VirtualFrame::Pop(Operand operand) { |
| 214 Forget(1); | 214 Forget(1); |
| 215 __ pop(operand); | 215 __ pop(operand); |
| 216 } | 216 } |
| 217 | 217 |
| 218 | 218 |
| 219 void VirtualFrame::Push(Register reg) { | 219 void VirtualFrame::EmitPush(Register reg) { |
| 220 Adjust(1); | 220 Adjust(1); |
| 221 __ push(reg); | 221 __ push(reg); |
| 222 } | 222 } |
| 223 | 223 |
| 224 | 224 |
| 225 void VirtualFrame::Push(Operand operand) { | 225 void VirtualFrame::EmitPush(Operand operand) { |
| 226 Adjust(1); | 226 Adjust(1); |
| 227 __ push(operand); | 227 __ push(operand); |
| 228 } | 228 } |
| 229 | 229 |
| 230 | 230 |
| 231 void VirtualFrame::Push(Immediate immediate) { | 231 void VirtualFrame::EmitPush(Immediate immediate) { |
| 232 Adjust(1); | 232 Adjust(1); |
| 233 __ push(immediate); | 233 __ push(immediate); |
| 234 } | 234 } |
| 235 | 235 |
| 236 #undef __ | 236 #undef __ |
| 237 | 237 |
| 238 } } // namespace v8::internal | 238 } } // namespace v8::internal |
| OLD | NEW |