| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 522 | 522 | 
| 523   MacroAssembler* masm() { return masm_; } | 523   MacroAssembler* masm() { return masm_; } | 
| 524 | 524 | 
| 525   class ExpressionContext; | 525   class ExpressionContext; | 
| 526   const ExpressionContext* context() { return context_; } | 526   const ExpressionContext* context() { return context_; } | 
| 527   void set_new_context(const ExpressionContext* context) { context_ = context; } | 527   void set_new_context(const ExpressionContext* context) { context_ = context; } | 
| 528 | 528 | 
| 529   Handle<Script> script() { return info_->script(); } | 529   Handle<Script> script() { return info_->script(); } | 
| 530   bool is_eval() { return info_->is_eval(); } | 530   bool is_eval() { return info_->is_eval(); } | 
| 531   bool is_native() { return info_->is_native(); } | 531   bool is_native() { return info_->is_native(); } | 
| 532   bool is_strict_mode() { | 532   bool is_classic_mode() { | 
| 533     return strict_mode_flag() == kStrictMode; | 533     return language_mode() == CLASSIC_MODE; | 
| 534   } | 534   } | 
| 535   StrictModeFlag strict_mode_flag() { | 535   LanguageMode language_mode() { | 
| 536     return function()->strict_mode_flag(); | 536     return function()->language_mode(); | 
| 537   } | 537   } | 
| 538   FunctionLiteral* function() { return info_->function(); } | 538   FunctionLiteral* function() { return info_->function(); } | 
| 539   Scope* scope() { return scope_; } | 539   Scope* scope() { return scope_; } | 
| 540 | 540 | 
| 541   static Register result_register(); | 541   static Register result_register(); | 
| 542   static Register context_register(); | 542   static Register context_register(); | 
| 543 | 543 | 
| 544   // Set fields in the stack frame. Offsets are the frame pointer relative | 544   // Set fields in the stack frame. Offsets are the frame pointer relative | 
| 545   // offsets defined in, e.g., StandardFrameConstants. | 545   // offsets defined in, e.g., StandardFrameConstants. | 
| 546   void StoreToFrameField(int frame_offset, Register value); | 546   void StoreToFrameField(int frame_offset, Register value); | 
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 761 | 761 | 
| 762   friend class NestedStatement; | 762   friend class NestedStatement; | 
| 763 | 763 | 
| 764   DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 764   DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 
| 765 }; | 765 }; | 
| 766 | 766 | 
| 767 | 767 | 
| 768 } }  // namespace v8::internal | 768 } }  // namespace v8::internal | 
| 769 | 769 | 
| 770 #endif  // V8_FULL_CODEGEN_H_ | 770 #endif  // V8_FULL_CODEGEN_H_ | 
| OLD | NEW | 
|---|