| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 int length, | 116 int length, |
| 117 int function_token_position, | 117 int function_token_position, |
| 118 int start_position, | 118 int start_position, |
| 119 int end_position, | 119 int end_position, |
| 120 bool is_expression, | 120 bool is_expression, |
| 121 bool is_toplevel, | 121 bool is_toplevel, |
| 122 Handle<Script> script); | 122 Handle<Script> script); |
| 123 | 123 |
| 124 virtual MacroAssembler* masm() = 0; | 124 virtual MacroAssembler* masm() = 0; |
| 125 | 125 |
| 126 virtual Scope* scope() const = 0; |
| 126 | 127 |
| 127 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 128 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 128 void ProcessDeferred(); | 129 void ProcessDeferred(); |
| 129 | 130 |
| 130 // Accessors for is_eval. | 131 // Accessors for is_eval. |
| 131 bool is_eval() { return is_eval_; } | 132 bool is_eval() { return is_eval_; } |
| 132 | 133 |
| 133 // Abstract node visitors. | 134 // Abstract node visitors. |
| 134 #define DEF_VISIT(type) \ | 135 #define DEF_VISIT(type) \ |
| 135 virtual void Visit##type(type* node) = 0; | 136 virtual void Visit##type(type* node) = 0; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 int MinorKey() { return 1; } | 302 int MinorKey() { return 1; } |
| 302 | 303 |
| 303 const char* GetName() { return "JSConstructEntryStub"; } | 304 const char* GetName() { return "JSConstructEntryStub"; } |
| 304 }; | 305 }; |
| 305 | 306 |
| 306 | 307 |
| 307 } // namespace internal | 308 } // namespace internal |
| 308 } // namespace v8 | 309 } // namespace v8 |
| 309 | 310 |
| 310 #endif // V8_CODEGEN_H_ | 311 #endif // V8_CODEGEN_H_ |
| OLD | NEW |