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

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

Issue 509007: Optimize implementation of Math.floor a little by special casing... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return !is_bound() && reaching_frames_.is_empty(); 105 return !is_bound() && reaching_frames_.is_empty();
106 } 106 }
107 107
108 // Emit a jump to the target. There must be a current frame at the 108 // Emit a jump to the target. There must be a current frame at the
109 // jump and there will be no current frame after the jump. 109 // jump and there will be no current frame after the jump.
110 virtual void Jump(); 110 virtual void Jump();
111 virtual void Jump(Result* arg); 111 virtual void Jump(Result* arg);
112 112
113 // Emit a conditional branch to the target. There must be a current 113 // Emit a conditional branch to the target. There must be a current
114 // frame at the branch. The current frame will fall through to the 114 // frame at the branch. The current frame will fall through to the
115 // code after the branch. 115 // code after the branch. The arg is a result that is live both at
116 // the target and the fall-through.
116 virtual void Branch(Condition cc, Hint hint = no_hint); 117 virtual void Branch(Condition cc, Hint hint = no_hint);
117 virtual void Branch(Condition cc, Result* arg, Hint hint = no_hint); 118 virtual void Branch(Condition cc, Result* arg, Hint hint = no_hint);
118 119
119 // Bind a jump target. If there is no current frame at the binding 120 // Bind a jump target. If there is no current frame at the binding
120 // site, there must be at least one frame reaching via a forward 121 // site, there must be at least one frame reaching via a forward
121 // jump. 122 // jump.
122 virtual void Bind(); 123 virtual void Bind();
123 virtual void Bind(Result* arg); 124 virtual void Bind(Result* arg);
124 125
125 // Emit a call to a jump target. There must be a current frame at 126 // Emit a call to a jump target. There must be a current frame at
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool is_shadowing_; 271 bool is_shadowing_;
271 #endif 272 #endif
272 273
273 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); 274 DISALLOW_COPY_AND_ASSIGN(ShadowTarget);
274 }; 275 };
275 276
276 277
277 } } // namespace v8::internal 278 } } // namespace v8::internal
278 279
279 #endif // V8_JUMP_TARGET_H_ 280 #endif // V8_JUMP_TARGET_H_
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/ia32/codegen-ia32.cc ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698