| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 CodeGenState* state() { return state_; } | 197 CodeGenState* state() { return state_; } |
| 198 void set_state(CodeGenState* state) { state_ = state; } | 198 void set_state(CodeGenState* state) { state_ = state; } |
| 199 | 199 |
| 200 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 200 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 201 | 201 |
| 202 static const int kUnknownIntValue = -1; | 202 static const int kUnknownIntValue = -1; |
| 203 | 203 |
| 204 private: | 204 private: |
| 205 // Construction/Destruction | 205 // Construction/Destruction |
| 206 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 206 CodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval); |
| 207 virtual ~CodeGenerator() { delete masm_; } | |
| 208 | 207 |
| 209 // Accessors | 208 // Accessors |
| 210 Scope* scope() const { return scope_; } | 209 Scope* scope() const { return scope_; } |
| 211 | 210 |
| 212 // Generating deferred code. | 211 // Generating deferred code. |
| 213 void ProcessDeferred(); | 212 void ProcessDeferred(); |
| 214 | 213 |
| 215 bool is_eval() { return is_eval_; } | 214 bool is_eval() { return is_eval_; } |
| 216 | 215 |
| 217 // State | 216 // State |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 Major MajorKey() { return StringCompare; } | 546 Major MajorKey() { return StringCompare; } |
| 548 int MinorKey() { return 0; } | 547 int MinorKey() { return 0; } |
| 549 | 548 |
| 550 void Generate(MacroAssembler* masm); | 549 void Generate(MacroAssembler* masm); |
| 551 }; | 550 }; |
| 552 | 551 |
| 553 | 552 |
| 554 } } // namespace v8::internal | 553 } } // namespace v8::internal |
| 555 | 554 |
| 556 #endif // V8_ARM_CODEGEN_ARM_H_ | 555 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |