| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 int start_position, | 167 int start_position, |
| 168 int end_position, | 168 int end_position, |
| 169 bool is_expression, | 169 bool is_expression, |
| 170 bool is_toplevel, | 170 bool is_toplevel, |
| 171 Handle<Script> script); | 171 Handle<Script> script); |
| 172 | 172 |
| 173 // Accessors | 173 // Accessors |
| 174 MacroAssembler* masm() { return masm_; } | 174 MacroAssembler* masm() { return masm_; } |
| 175 | 175 |
| 176 VirtualFrame* frame() const { return frame_; } | 176 VirtualFrame* frame() const { return frame_; } |
| 177 void set_frame(VirtualFrame* frame) { frame_ = frame; } | 177 |
| 178 void delete_frame() { | 178 void SetFrame(VirtualFrame* frame); |
| 179 delete frame_; | 179 |
| 180 frame_ = NULL; | 180 void DeleteFrame(); |
| 181 } | |
| 182 | 181 |
| 183 RegisterAllocator* allocator() const { return allocator_; } | 182 RegisterAllocator* allocator() const { return allocator_; } |
| 184 | 183 |
| 185 CodeGenState* state() { return state_; } | 184 CodeGenState* state() { return state_; } |
| 186 void set_state(CodeGenState* state) { state_ = state; } | 185 void set_state(CodeGenState* state) { state_ = state; } |
| 187 | 186 |
| 188 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 187 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 189 | 188 |
| 190 private: | 189 private: |
| 191 // Construction/Destruction | 190 // Construction/Destruction |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 friend class JumpTarget; | 413 friend class JumpTarget; |
| 415 friend class Reference; | 414 friend class Reference; |
| 416 | 415 |
| 417 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 416 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 418 }; | 417 }; |
| 419 | 418 |
| 420 | 419 |
| 421 } } // namespace v8::internal | 420 } } // namespace v8::internal |
| 422 | 421 |
| 423 #endif // V8_CODEGEN_IA32_H_ | 422 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |