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

Side by Side Diff: src/jump-target-ia32.cc

Issue 16412: Experimental: push the new code generator infrastructure into the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 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
« no previous file with comments | « src/jump-target.h ('k') | src/virtual-frame-ia32.h » ('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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ASSERT(cgen_->HasValidEntryRegisters()); 86 ASSERT(cgen_->HasValidEntryRegisters());
87 cgen_->DeleteFrame(); 87 cgen_->DeleteFrame();
88 } 88 }
89 89
90 __ jmp(&label_); 90 __ jmp(&label_);
91 // Postcondition: there is no current frame but there is an expected frame 91 // Postcondition: there is no current frame but there is an expected frame
92 // at the label. 92 // at the label.
93 } 93 }
94 94
95 95
96 void JumpTarget::Jump(Result* arg) {
97 ASSERT(cgen_ != NULL);
98 ASSERT(cgen_->frame() != NULL);
99
100 cgen_->frame()->Push(arg);
101 Jump();
102 }
103
104
96 void JumpTarget::Branch(Condition cc, Hint hint) { 105 void JumpTarget::Branch(Condition cc, Hint hint) {
97 // Precondition: there is a current frame. There may or may not be an 106 // Precondition: there is a current frame. There may or may not be an
98 // expected frame at the label. 107 // expected frame at the label.
99 ASSERT(cgen_ != NULL); 108 ASSERT(cgen_ != NULL);
100 ASSERT(masm_ != NULL); 109 ASSERT(masm_ != NULL);
101 110
102 VirtualFrame* current_frame = cgen_->frame(); 111 VirtualFrame* current_frame = cgen_->frame();
103 ASSERT(current_frame != NULL); 112 ASSERT(current_frame != NULL);
104 ASSERT(cgen_->HasValidEntryRegisters()); 113 ASSERT(cgen_->HasValidEntryRegisters());
105 114
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 293
285 #ifdef DEBUG 294 #ifdef DEBUG
286 is_shadowing_ = false; 295 is_shadowing_ = false;
287 #endif 296 #endif
288 } 297 }
289 298
290 #undef __ 299 #undef __
291 300
292 301
293 } } // namespace v8::internal 302 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jump-target.h ('k') | src/virtual-frame-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698