| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 bool is_toplevel, | 182 bool is_toplevel, |
| 183 Handle<Script> script); | 183 Handle<Script> script); |
| 184 | 184 |
| 185 // Accessors | 185 // Accessors |
| 186 MacroAssembler* masm() { return masm_; } | 186 MacroAssembler* masm() { return masm_; } |
| 187 | 187 |
| 188 VirtualFrame* frame() const { return frame_; } | 188 VirtualFrame* frame() const { return frame_; } |
| 189 | 189 |
| 190 bool has_valid_frame() const { return frame_ != NULL; } | 190 bool has_valid_frame() const { return frame_ != NULL; } |
| 191 | 191 |
| 192 void SetFrame(VirtualFrame* frame); | 192 // Set the virtual frame to be new_frame, with non-frame register |
| 193 // reference counts given by non_frame_registers. The non-frame register |
| 194 // reference counts of the old frame are returned in non_frame_registers. |
| 195 void SetFrame(VirtualFrame* new_frame, RegisterFile* non_frame_registers); |
| 193 | 196 |
| 194 void DeleteFrame(); | 197 void DeleteFrame(); |
| 195 | 198 |
| 196 RegisterAllocator* allocator() const { return allocator_; } | 199 RegisterAllocator* allocator() const { return allocator_; } |
| 197 | 200 |
| 198 CodeGenState* state() { return state_; } | 201 CodeGenState* state() { return state_; } |
| 199 void set_state(CodeGenState* state) { state_ = state; } | 202 void set_state(CodeGenState* state) { state_ = state; } |
| 200 | 203 |
| 201 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 204 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 202 | 205 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 cgen_->set_in_spilled_code(false); | 514 cgen_->set_in_spilled_code(false); |
| 512 GetValue(typeof_state); | 515 GetValue(typeof_state); |
| 513 cgen_->frame()->SpillAll(); | 516 cgen_->frame()->SpillAll(); |
| 514 cgen_->set_in_spilled_code(true); | 517 cgen_->set_in_spilled_code(true); |
| 515 } | 518 } |
| 516 | 519 |
| 517 | 520 |
| 518 } } // namespace v8::internal | 521 } } // namespace v8::internal |
| 519 | 522 |
| 520 #endif // V8_CODEGEN_IA32_H_ | 523 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |