| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 CodeGenState* state() { return state_; } | 336 CodeGenState* state() { return state_; } |
| 337 void set_state(CodeGenState* state) { state_ = state; } | 337 void set_state(CodeGenState* state) { state_ = state; } |
| 338 | 338 |
| 339 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 339 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 340 | 340 |
| 341 bool in_spilled_code() const { return in_spilled_code_; } | 341 bool in_spilled_code() const { return in_spilled_code_; } |
| 342 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } | 342 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
| 343 | 343 |
| 344 private: | 344 private: |
| 345 // Construction/Destruction | 345 // Construction/Destruction |
| 346 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 346 CodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval); |
| 347 virtual ~CodeGenerator() { delete masm_; } | |
| 348 | 347 |
| 349 // Accessors | 348 // Accessors |
| 350 Scope* scope() const { return scope_; } | 349 Scope* scope() const { return scope_; } |
| 351 bool is_eval() { return is_eval_; } | 350 bool is_eval() { return is_eval_; } |
| 352 | 351 |
| 353 // Generating deferred code. | 352 // Generating deferred code. |
| 354 void ProcessDeferred(); | 353 void ProcessDeferred(); |
| 355 | 354 |
| 356 // State | 355 // State |
| 357 ControlDestination* destination() const { return state_->destination(); } | 356 ControlDestination* destination() const { return state_->destination(); } |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 Major MajorKey() { return StringCompare; } | 819 Major MajorKey() { return StringCompare; } |
| 821 int MinorKey() { return 0; } | 820 int MinorKey() { return 0; } |
| 822 | 821 |
| 823 void Generate(MacroAssembler* masm); | 822 void Generate(MacroAssembler* masm); |
| 824 }; | 823 }; |
| 825 | 824 |
| 826 | 825 |
| 827 } } // namespace v8::internal | 826 } } // namespace v8::internal |
| 828 | 827 |
| 829 #endif // V8_IA32_CODEGEN_IA32_H_ | 828 #endif // V8_IA32_CODEGEN_IA32_H_ |
| OLD | NEW |