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

Side by Side Diff: src/jump-target.h

Issue 115350: Revert revision 1949. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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/ia32/virtual-frame-ia32.h ('k') | src/jump-target.cc » ('j') | 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 17 matching lines...) Expand all
28 #ifndef V8_JUMP_TARGET_H_ 28 #ifndef V8_JUMP_TARGET_H_
29 #define V8_JUMP_TARGET_H_ 29 #define V8_JUMP_TARGET_H_
30 30
31 namespace v8 { namespace internal { 31 namespace v8 { namespace internal {
32 32
33 // Forward declarations. 33 // Forward declarations.
34 class FrameElement; 34 class FrameElement;
35 class Result; 35 class Result;
36 class VirtualFrame; 36 class VirtualFrame;
37 37
38
38 // ------------------------------------------------------------------------- 39 // -------------------------------------------------------------------------
39 // Jump targets 40 // Jump targets
40 // 41 //
41 // A jump target is an abstraction of a basic-block entry in generated 42 // A jump target is an abstraction of a basic-block entry in generated
42 // code. It collects all the virtual frames reaching the block by 43 // code. It collects all the virtual frames reaching the block by
43 // forward jumps and pairs them with labels for the merge code along 44 // forward jumps and pairs them with labels for the merge code along
44 // all forward-reaching paths. When bound, an expected frame for the 45 // all forward-reaching paths. When bound, an expected frame for the
45 // block is determined and code is generated to merge to the expected 46 // block is determined and code is generated to merge to the expected
46 // frame. For backward jumps, the merge code is generated at the edge 47 // frame. For backward jumps, the merge code is generated at the edge
47 // leaving the predecessor block. 48 // leaving the predecessor block.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void DoBranch(Condition cc, Hint hint); 192 void DoBranch(Condition cc, Hint hint);
192 void DoBind(int mergable_elements); 193 void DoBind(int mergable_elements);
193 194
194 private: 195 private:
195 static bool compiling_deferred_code_; 196 static bool compiling_deferred_code_;
196 197
197 // Add a virtual frame reaching this labeled block via a forward jump, 198 // Add a virtual frame reaching this labeled block via a forward jump,
198 // and a corresponding merge code label. 199 // and a corresponding merge code label.
199 void AddReachingFrame(VirtualFrame* frame); 200 void AddReachingFrame(VirtualFrame* frame);
200 201
201 // Perform initialization required during entry frame computation 202 // Compute a frame to use for entry to this block. Mergable elements
202 // after setting the virtual frame element at index in frame to be 203 // is as described for the Bind function.
203 // target.
204 inline void InitializeEntryElement(int index, FrameElement* target);
205
206 // Compute a frame to use for entry to this block. Mergable
207 // elements is as described for the Bind function.
208 void ComputeEntryFrame(int mergable_elements); 204 void ComputeEntryFrame(int mergable_elements);
209 205
210 DISALLOW_COPY_AND_ASSIGN(JumpTarget); 206 DISALLOW_COPY_AND_ASSIGN(JumpTarget);
211 }; 207 };
212 208
213 209
214 // ------------------------------------------------------------------------- 210 // -------------------------------------------------------------------------
215 // Break targets 211 // Break targets
216 // 212 //
217 // A break target is a jump target that can be used to break out of a 213 // A break target is a jump target that can be used to break out of a
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 bool is_shadowing_; 305 bool is_shadowing_;
310 #endif 306 #endif
311 307
312 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); 308 DISALLOW_COPY_AND_ASSIGN(ShadowTarget);
313 }; 309 };
314 310
315 311
316 } } // namespace v8::internal 312 } } // namespace v8::internal
317 313
318 #endif // V8_JUMP_TARGET_H_ 314 #endif // V8_JUMP_TARGET_H_
OLDNEW
« no previous file with comments | « src/ia32/virtual-frame-ia32.h ('k') | src/jump-target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698