| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 int end_position, | 178 int end_position, |
| 179 bool is_expression, | 179 bool is_expression, |
| 180 bool is_toplevel, | 180 bool is_toplevel, |
| 181 Handle<Script> script); | 181 Handle<Script> script); |
| 182 | 182 |
| 183 // Accessors | 183 // Accessors |
| 184 MacroAssembler* masm() { return masm_; } | 184 MacroAssembler* masm() { return masm_; } |
| 185 | 185 |
| 186 VirtualFrame* frame() const { return frame_; } | 186 VirtualFrame* frame() const { return frame_; } |
| 187 | 187 |
| 188 bool has_valid_frame() const { return frame_ != NULL; } |
| 189 |
| 188 void SetFrame(VirtualFrame* frame); | 190 void SetFrame(VirtualFrame* frame); |
| 189 | 191 |
| 190 void DeleteFrame(); | 192 void DeleteFrame(); |
| 191 | 193 |
| 192 RegisterAllocator* allocator() const { return allocator_; } | 194 RegisterAllocator* allocator() const { return allocator_; } |
| 193 | 195 |
| 194 CodeGenState* state() { return state_; } | 196 CodeGenState* state() { return state_; } |
| 195 void set_state(CodeGenState* state) { state_ = state; } | 197 void set_state(CodeGenState* state) { state_ = state; } |
| 196 | 198 |
| 197 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 199 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 cgen_->set_in_spilled_code(false); | 506 cgen_->set_in_spilled_code(false); |
| 505 GetValue(typeof_state); | 507 GetValue(typeof_state); |
| 506 cgen_->frame()->SpillAll(); | 508 cgen_->frame()->SpillAll(); |
| 507 cgen_->set_in_spilled_code(true); | 509 cgen_->set_in_spilled_code(true); |
| 508 } | 510 } |
| 509 | 511 |
| 510 | 512 |
| 511 } } // namespace v8::internal | 513 } } // namespace v8::internal |
| 512 | 514 |
| 513 #endif // V8_CODEGEN_IA32_H_ | 515 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |