Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: src/virtual-frame-arm.h

Issue 20218: A bunch of changes to get the ARM port compiling again. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/virtual-frame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 #ifndef V8_VIRTUAL_FRAME_ARM_H_ 28 #ifndef V8_VIRTUAL_FRAME_ARM_H_
29 #define V8_VIRTUAL_FRAME_ARM_H_ 29 #define V8_VIRTUAL_FRAME_ARM_H_
30 30
31 #include "macro-assembler.h" 31 #include "macro-assembler.h"
32 #include "register-allocator.h"
32 33
33 namespace v8 { namespace internal { 34 namespace v8 { namespace internal {
34 35
35 // ------------------------------------------------------------------------- 36 // -------------------------------------------------------------------------
36 // Virtual frame elements 37 // Virtual frame elements
37 // 38 //
38 // The internal elements of the virtual frames. Elements are (currently) of 39 // The internal elements of the virtual frames. Elements are (currently) of
39 // only one kind, in-memory. Their actual location is given by their 40 // only one kind, in-memory. Their actual location is given by their
40 // position in the virtual frame. 41 // position in the virtual frame.
41 42
(...skipping 28 matching lines...) Expand all
70 return elements_.length() - expression_base_index(); 71 return elements_.length() - expression_base_index();
71 } 72 }
72 73
73 // Add extra in-memory elements to the top of the frame without generating 74 // Add extra in-memory elements to the top of the frame without generating
74 // code. 75 // code.
75 void Adjust(int count); 76 void Adjust(int count);
76 77
77 // Forget frame elements without generating code. 78 // Forget frame elements without generating code.
78 void Forget(int count); 79 void Forget(int count);
79 80
81 // Ensure that this frame is in a state where an arbitrary frame of the
82 // right size could be merged to it. May emit code.
83 void MakeMergable() { }
84
80 // Make this virtual frame have a state identical to an expected virtual 85 // Make this virtual frame have a state identical to an expected virtual
81 // frame. As a side effect, code may be emitted to make this frame match 86 // frame. As a side effect, code may be emitted to make this frame match
82 // the expected one. 87 // the expected one.
83 void MergeTo(VirtualFrame* expected); 88 void MergeTo(VirtualFrame* expected);
84 89
85 // Emit code for the physical JS entry and exit frame sequences. After 90 // Emit code for the physical JS entry and exit frame sequences. After
86 // calling Enter, the virtual frame is ready for use; and after calling 91 // calling Enter, the virtual frame is ready for use; and after calling
87 // Exit it should not be used. Note that Enter does not allocate space in 92 // Exit it should not be used. Note that Enter does not allocate space in
88 // the physical frame for storing frame-allocated locals. 93 // the physical frame for storing frame-allocated locals.
89 void Enter(); 94 void Enter();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int local0_index() const { return param0_index() + parameter_count_ + 4; } 194 int local0_index() const { return param0_index() + parameter_count_ + 4; }
190 195
191 // The index of the base of the expression stack. 196 // The index of the base of the expression stack.
192 int expression_base_index() const { return local0_index() + local_count_; } 197 int expression_base_index() const { return local0_index() + local_count_; }
193 }; 198 };
194 199
195 200
196 } } // namespace v8::internal 201 } } // namespace v8::internal
197 202
198 #endif // V8_VIRTUAL_FRAME_ARM_H_ 203 #endif // V8_VIRTUAL_FRAME_ARM_H_
OLDNEW
« no previous file with comments | « src/virtual-frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698