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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } | 333 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
334 | 334 |
335 private: | 335 private: |
336 // Construction/Destruction | 336 // Construction/Destruction |
337 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 337 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); |
338 virtual ~CodeGenerator() { delete masm_; } | 338 virtual ~CodeGenerator() { delete masm_; } |
339 | 339 |
340 // Accessors | 340 // Accessors |
341 Scope* scope() const { return scope_; } | 341 Scope* scope() const { return scope_; } |
342 | 342 |
| 343 // Clearing and generating deferred code. |
| 344 void ClearDeferred(); |
343 void ProcessDeferred(); | 345 void ProcessDeferred(); |
344 | 346 |
345 bool is_eval() { return is_eval_; } | 347 bool is_eval() { return is_eval_; } |
346 | 348 |
347 // State | 349 // State |
348 TypeofState typeof_state() const { return state_->typeof_state(); } | 350 TypeofState typeof_state() const { return state_->typeof_state(); } |
349 ControlDestination* destination() const { return state_->destination(); } | 351 ControlDestination* destination() const { return state_->destination(); } |
350 | 352 |
351 // Track loop nesting level. | 353 // Track loop nesting level. |
352 int loop_nesting() const { return loop_nesting_; } | 354 int loop_nesting() const { return loop_nesting_; } |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 cgen_->set_in_spilled_code(false); | 649 cgen_->set_in_spilled_code(false); |
648 GetValue(typeof_state); | 650 GetValue(typeof_state); |
649 cgen_->frame()->SpillAll(); | 651 cgen_->frame()->SpillAll(); |
650 cgen_->set_in_spilled_code(true); | 652 cgen_->set_in_spilled_code(true); |
651 } | 653 } |
652 | 654 |
653 | 655 |
654 } } // namespace v8::internal | 656 } } // namespace v8::internal |
655 | 657 |
656 #endif // V8_CODEGEN_IA32_H_ | 658 #endif // V8_CODEGEN_IA32_H_ |
OLD | NEW |