OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 enter_.Unuse(); | 109 enter_.Unuse(); |
110 exit_.Unuse(); | 110 exit_.Unuse(); |
111 } | 111 } |
112 | 112 |
113 MacroAssembler* masm() const { return masm_; } | 113 MacroAssembler* masm() const { return masm_; } |
114 CodeGenerator* generator() const { return generator_; } | 114 CodeGenerator* generator() const { return generator_; } |
115 | 115 |
116 JumpTarget* enter() { return &enter_; } | 116 JumpTarget* enter() { return &enter_; } |
117 void BindExit() { exit_.Bind(0); } | 117 void BindExit() { exit_.Bind(0); } |
118 void BindExit(Result* result) { exit_.Bind(result, 1); } | 118 void BindExit(Result* result) { exit_.Bind(result, 1); } |
| 119 void BindExit(Result* result0, Result* result1) { |
| 120 exit_.Bind(result0, result1, 2); |
| 121 } |
119 void BindExit(Result* result0, Result* result1, Result* result2) { | 122 void BindExit(Result* result0, Result* result1, Result* result2) { |
120 exit_.Bind(result0, result1, result2, 3); | 123 exit_.Bind(result0, result1, result2, 3); |
121 } | 124 } |
122 | 125 |
123 int statement_position() const { return statement_position_; } | 126 int statement_position() const { return statement_position_; } |
124 int position() const { return position_; } | 127 int position() const { return position_; } |
125 | 128 |
126 #ifdef DEBUG | 129 #ifdef DEBUG |
127 void set_comment(const char* comment) { comment_ = comment; } | 130 void set_comment(const char* comment) { comment_ = comment; } |
128 const char* comment() const { return comment_; } | 131 const char* comment() const { return comment_; } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 310 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
308 } | 311 } |
309 #endif | 312 #endif |
310 }; | 313 }; |
311 | 314 |
312 | 315 |
313 } // namespace internal | 316 } // namespace internal |
314 } // namespace v8 | 317 } // namespace v8 |
315 | 318 |
316 #endif // V8_CODEGEN_H_ | 319 #endif // V8_CODEGEN_H_ |
OLD | NEW |