| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 14 matching lines...) Expand all Loading... |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 | 28 |
| 29 | 29 |
| 30 #include "v8.h" | 30 #include "v8.h" |
| 31 | 31 |
| 32 #include "codegen-inl.h" | 32 #include "codegen-inl.h" |
| 33 #include "register-allocator-inl.h" | 33 #include "register-allocator-inl.h" |
| 34 #include "scopes.h" | 34 #include "scopes.h" |
| 35 #include "virtual-frame-inl.h" |
| 35 | 36 |
| 36 namespace v8 { | 37 namespace v8 { |
| 37 namespace internal { | 38 namespace internal { |
| 38 | 39 |
| 39 // ------------------------------------------------------------------------- | 40 // ------------------------------------------------------------------------- |
| 40 // VirtualFrame implementation. | 41 // VirtualFrame implementation. |
| 41 | 42 |
| 42 #define __ ACCESS_MASM(masm()) | 43 #define __ ACCESS_MASM(masm()) |
| 43 | 44 |
| 44 | |
| 45 // On entry to a function, the virtual frame already contains the | |
| 46 // receiver and the parameters. All initial frame elements are in | |
| 47 // memory. | |
| 48 VirtualFrame::VirtualFrame() | |
| 49 : elements_(parameter_count() + local_count() + kPreallocatedElements), | |
| 50 stack_pointer_(parameter_count()) { // 0-based index of TOS. | |
| 51 UNIMPLEMENTED_MIPS(); | |
| 52 } | |
| 53 | |
| 54 | |
| 55 void VirtualFrame::SyncElementBelowStackPointer(int index) { | 45 void VirtualFrame::SyncElementBelowStackPointer(int index) { |
| 56 UNREACHABLE(); | 46 UNREACHABLE(); |
| 57 } | 47 } |
| 58 | 48 |
| 59 | 49 |
| 60 void VirtualFrame::SyncElementByPushing(int index) { | 50 void VirtualFrame::SyncElementByPushing(int index) { |
| 61 UNREACHABLE(); | 51 UNREACHABLE(); |
| 62 } | 52 } |
| 63 | 53 |
| 64 | 54 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 221 } |
| 232 | 222 |
| 233 void VirtualFrame::EmitArgumentSlots(RegList reglist) { | 223 void VirtualFrame::EmitArgumentSlots(RegList reglist) { |
| 234 UNIMPLEMENTED_MIPS(); | 224 UNIMPLEMENTED_MIPS(); |
| 235 } | 225 } |
| 236 | 226 |
| 237 #undef __ | 227 #undef __ |
| 238 | 228 |
| 239 } } // namespace v8::internal | 229 } } // namespace v8::internal |
| 240 | 230 |
| OLD | NEW |