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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } | 326 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
327 | 327 |
328 private: | 328 private: |
329 // Construction/Destruction | 329 // Construction/Destruction |
330 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 330 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); |
331 virtual ~CodeGenerator() { delete masm_; } | 331 virtual ~CodeGenerator() { delete masm_; } |
332 | 332 |
333 // Accessors | 333 // Accessors |
334 Scope* scope() const { return scope_; } | 334 Scope* scope() const { return scope_; } |
335 | 335 |
336 // Clearing and generating deferred code. | 336 // Generating deferred code. |
337 void ClearDeferred(); | |
338 void ProcessDeferred(); | 337 void ProcessDeferred(); |
339 | 338 |
340 bool is_eval() { return is_eval_; } | 339 bool is_eval() { return is_eval_; } |
341 | 340 |
342 // State | 341 // State |
343 TypeofState typeof_state() const { return state_->typeof_state(); } | 342 TypeofState typeof_state() const { return state_->typeof_state(); } |
344 ControlDestination* destination() const { return state_->destination(); } | 343 ControlDestination* destination() const { return state_->destination(); } |
345 | 344 |
346 // Track loop nesting level. | 345 // Track loop nesting level. |
347 int loop_nesting() const { return loop_nesting_; } | 346 int loop_nesting() const { return loop_nesting_; } |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 622 |
624 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc | 623 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc |
625 | 624 |
626 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
627 }; | 626 }; |
628 | 627 |
629 | 628 |
630 } } // namespace v8::internal | 629 } } // namespace v8::internal |
631 | 630 |
632 #endif // V8_IA32_CODEGEN_IA32_H_ | 631 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |