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

Unified Diff: src/codegen.h

Issue 21447: Experimental: introduce a simple mechanism to allow jump targets with... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/codegen.cc » ('j') | src/codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.h
===================================================================
--- src/codegen.h (revision 1296)
+++ src/codegen.h (working copy)
@@ -96,8 +96,14 @@
CodeGenerator* generator() const { return generator_; }
JumpTarget* enter() { return &enter_; }
- JumpTarget* exit() { return &exit_; }
+ void BindExit() { exit_.Bind(0); }
+ void BindExit(Result* result) { exit_.Bind(result, 1); }
+ void BindExit(Result* result0, Result* result1, Result* result2) {
+ exit_.Bind(result0, result1, result2, 3);
+ }
+ // JumpTarget* exit() { return &exit_; }
Kasper Lund 2009/02/18 12:11:17 Remove?
Kevin Millikin (Chromium) 2009/02/18 12:26:22 Yes.
+
int statement_position() const { return statement_position_; }
int position() const { return position_; }
@@ -110,15 +116,12 @@
#endif
protected:
- // The masm_ field is manipulated when compiling stubs with the
- // BEGIN_STUB and END_STUB macros. For that reason, it cannot be
- // constant.
- MacroAssembler* masm_;
-
- private:
CodeGenerator* const generator_;
+ MacroAssembler* const masm_;
JumpTarget enter_;
JumpTarget exit_;
+
+ private:
int statement_position_;
int position_;
#ifdef DEBUG
« no previous file with comments | « no previous file | src/codegen.cc » ('j') | src/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698