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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 CodeGenState* state() { return state_; } | 336 CodeGenState* state() { return state_; } |
337 void set_state(CodeGenState* state) { state_ = state; } | 337 void set_state(CodeGenState* state) { state_ = state; } |
338 | 338 |
339 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 339 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
340 | 340 |
341 bool in_spilled_code() const { return in_spilled_code_; } | 341 bool in_spilled_code() const { return in_spilled_code_; } |
342 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } | 342 void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
343 | 343 |
344 private: | 344 private: |
345 // Construction/Destruction | 345 // Construction/Destruction |
346 CodeGenerator(int buffer_size, Handle<Script> script, bool is_eval); | 346 CodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval); |
347 virtual ~CodeGenerator() { delete masm_; } | |
348 | 347 |
349 // Accessors | 348 // Accessors |
350 Scope* scope() const { return scope_; } | 349 Scope* scope() const { return scope_; } |
351 | 350 |
352 // Generating deferred code. | 351 // Generating deferred code. |
353 void ProcessDeferred(); | 352 void ProcessDeferred(); |
354 | 353 |
355 bool is_eval() { return is_eval_; } | 354 bool is_eval() { return is_eval_; } |
356 | 355 |
357 // State | 356 // State |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 Major MajorKey() { return StringCompare; } | 813 Major MajorKey() { return StringCompare; } |
815 int MinorKey() { return 0; } | 814 int MinorKey() { return 0; } |
816 | 815 |
817 void Generate(MacroAssembler* masm); | 816 void Generate(MacroAssembler* masm); |
818 }; | 817 }; |
819 | 818 |
820 | 819 |
821 } } // namespace v8::internal | 820 } } // namespace v8::internal |
822 | 821 |
823 #endif // V8_X64_CODEGEN_X64_H_ | 822 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |