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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "codegen-inl.h" | 30 #include "codegen-inl.h" |
31 #include "register-allocator-inl.h" | 31 #include "register-allocator-inl.h" |
32 #include "virtual-frame-inl.h" | 32 #include "virtual-frame-inl.h" |
33 | 33 |
34 namespace v8 { | 34 namespace v8 { |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
37 void VirtualFrame::Adjust(int count) { | 37 void VirtualFrame::Adjust(int count) { |
38 ASSERT(count >= 0); | 38 ASSERT(count >= 0); |
39 element_count_ += count; | 39 RaiseHeight(count, 0); |
40 } | 40 } |
41 | 41 |
42 | 42 |
43 // If there are any registers referenced only by the frame, spill one. | 43 // If there are any registers referenced only by the frame, spill one. |
44 Register VirtualFrame::SpillAnyRegister() { | 44 Register VirtualFrame::SpillAnyRegister() { |
45 UNIMPLEMENTED(); | 45 UNIMPLEMENTED(); |
46 return no_reg; | 46 return no_reg; |
47 } | 47 } |
48 | 48 |
49 | 49 |
50 InvalidVirtualFrameInitializer* kInvalidVirtualFrameInitializer = NULL; | 50 InvalidVirtualFrameInitializer* kInvalidVirtualFrameInitializer = NULL; |
51 | 51 |
52 } } // namespace v8::internal | 52 } } // namespace v8::internal |
OLD | NEW |