Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: src/ia32/lithium-codegen-ia32.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class LCodeGen BASE_EMBEDDED { 47 class LCodeGen BASE_EMBEDDED {
48 public: 48 public:
49 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) 49 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info)
50 : chunk_(chunk), 50 : chunk_(chunk),
51 masm_(assembler), 51 masm_(assembler),
52 info_(info), 52 info_(info),
53 current_block_(-1), 53 current_block_(-1),
54 current_instruction_(-1), 54 current_instruction_(-1),
55 instructions_(chunk->instructions()), 55 instructions_(chunk->instructions()),
56 deoptimizations_(4), 56 deoptimizations_(info->zone(), 4),
57 deoptimization_literals_(8), 57 deoptimization_literals_(info->zone(), 8),
58 inlined_function_count_(0), 58 inlined_function_count_(0),
59 scope_(info->scope()), 59 scope_(info->scope()),
60 status_(UNUSED), 60 status_(UNUSED),
61 deferred_(8), 61 deferred_(info->zone(), 8),
62 osr_pc_offset_(-1), 62 osr_pc_offset_(-1),
63 deoptimization_reloc_size(), 63 deoptimization_reloc_size(),
64 resolver_(this), 64 resolver_(this),
65 expected_safepoint_kind_(Safepoint::kSimple) { 65 expected_safepoint_kind_(Safepoint::kSimple) {
66 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 66 PopulateDeoptimizationLiteralsWithInlinedFunctions();
67 } 67 }
68 68
69 // Simple accessors. 69 // Simple accessors.
70 MacroAssembler* masm() const { return masm_; } 70 MacroAssembler* masm() const { return masm_; }
71 CompilationInfo* info() const { return info_; } 71 CompilationInfo* info() const { return info_; }
72 Isolate* isolate() const { return info_->isolate(); } 72 Isolate* isolate() const { return info_->isolate(); }
73 Factory* factory() const { return isolate()->factory(); } 73 Factory* factory() const { return isolate()->factory(); }
74 Heap* heap() const { return isolate()->heap(); } 74 Heap* heap() const { return isolate()->heap(); }
75 Zone* zone() const { return isolate()->zone(); }
75 76
76 // Support for converting LOperands to assembler types. 77 // Support for converting LOperands to assembler types.
77 Operand ToOperand(LOperand* op) const; 78 Operand ToOperand(LOperand* op) const;
78 Register ToRegister(LOperand* op) const; 79 Register ToRegister(LOperand* op) const;
79 XMMRegister ToDoubleRegister(LOperand* op) const; 80 XMMRegister ToDoubleRegister(LOperand* op) const;
80 Immediate ToImmediate(LOperand* op); 81 Immediate ToImmediate(LOperand* op);
81 82
82 // The operand denoting the second word (the one with a higher address) of 83 // The operand denoting the second word (the one with a higher address) of
83 // a double stack slot. 84 // a double stack slot.
84 Operand HighOperand(LOperand* op); 85 Operand HighOperand(LOperand* op);
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 private: 364 private:
364 LCodeGen* codegen_; 365 LCodeGen* codegen_;
365 Label entry_; 366 Label entry_;
366 Label exit_; 367 Label exit_;
367 Label* external_exit_; 368 Label* external_exit_;
368 }; 369 };
369 370
370 } } // namespace v8::internal 371 } } // namespace v8::internal
371 372
372 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 373 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698