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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 UNIMPLEMENTED(); | 223 UNIMPLEMENTED(); |
224 } | 224 } |
225 | 225 |
226 | 226 |
227 void VirtualFrame::StoreToFrameSlotAt(int index) { | 227 void VirtualFrame::StoreToFrameSlotAt(int index) { |
228 UNIMPLEMENTED(); | 228 UNIMPLEMENTED(); |
229 } | 229 } |
230 | 230 |
231 | 231 |
232 void VirtualFrame::PushTryHandler(HandlerType type) { | 232 void VirtualFrame::PushTryHandler(HandlerType type) { |
233 // Grow the expression stack by handler size less one (the return address | 233 // Grow the expression stack by handler size less one (the return |
234 // is already pushed by a call instruction). | 234 // address in lr is already counted by a call instruction). |
235 Adjust(kHandlerSize - 1); | 235 Adjust(kHandlerSize - 1); |
236 __ PushTryHandler(IN_JAVASCRIPT, type); | 236 __ PushTryHandler(IN_JAVASCRIPT, type); |
237 } | 237 } |
238 | 238 |
239 | 239 |
240 Result VirtualFrame::RawCallStub(CodeStub* stub) { | 240 Result VirtualFrame::RawCallStub(CodeStub* stub) { |
241 ASSERT(cgen()->HasValidEntryRegisters()); | 241 ASSERT(cgen()->HasValidEntryRegisters()); |
242 __ CallStub(stub); | 242 __ CallStub(stub); |
243 Result result = cgen()->allocator()->Allocate(r0); | 243 Result result = cgen()->allocator()->Allocate(r0); |
244 ASSERT(result.is_valid()); | 244 ASSERT(result.is_valid()); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 ASSERT(stack_pointer_ == element_count() - 1); | 430 ASSERT(stack_pointer_ == element_count() - 1); |
431 elements_.Add(FrameElement::MemoryElement()); | 431 elements_.Add(FrameElement::MemoryElement()); |
432 stack_pointer_++; | 432 stack_pointer_++; |
433 __ push(reg); | 433 __ push(reg); |
434 } | 434 } |
435 | 435 |
436 | 436 |
437 #undef __ | 437 #undef __ |
438 | 438 |
439 } } // namespace v8::internal | 439 } } // namespace v8::internal |
OLD | NEW |