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

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

Issue 6880010: Merge (7265, 7271] from bleeding_edge to experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 8 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 deferred_(8), 61 deferred_(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 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 65 PopulateDeoptimizationLiteralsWithInlinedFunctions();
66 } 66 }
67 67
68 // Simple accessors. 68 // Simple accessors.
69 MacroAssembler* masm() const { return masm_; } 69 MacroAssembler* masm() const { return masm_; }
70 CompilationInfo* info() const { return info_; } 70 CompilationInfo* info() const { return info_; }
71 Isolate* isolate() const { return info_->isolate(); }
72 Factory* factory() const { return isolate()->factory(); }
73 Heap* heap() const { return isolate()->heap(); }
71 74
72 // Support for converting LOperands to assembler types. 75 // Support for converting LOperands to assembler types.
73 Operand ToOperand(LOperand* op) const; 76 Operand ToOperand(LOperand* op) const;
74 Register ToRegister(LOperand* op) const; 77 Register ToRegister(LOperand* op) const;
75 XMMRegister ToDoubleRegister(LOperand* op) const; 78 XMMRegister ToDoubleRegister(LOperand* op) const;
76 Immediate ToImmediate(LOperand* op); 79 Immediate ToImmediate(LOperand* op);
77 80
78 // The operand denoting the second word (the one with a higher address) of 81 // The operand denoting the second word (the one with a higher address) of
79 // a double stack slot. 82 // a double stack slot.
80 Operand HighOperand(LOperand* op); 83 Operand HighOperand(LOperand* op);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool GeneratePrologue(); 159 bool GeneratePrologue();
157 bool GenerateBody(); 160 bool GenerateBody();
158 bool GenerateDeferredCode(); 161 bool GenerateDeferredCode();
159 // Pad the reloc info to ensure that we have enough space to patch during 162 // Pad the reloc info to ensure that we have enough space to patch during
160 // deoptimization. 163 // deoptimization.
161 bool GenerateRelocPadding(); 164 bool GenerateRelocPadding();
162 bool GenerateSafepointTable(); 165 bool GenerateSafepointTable();
163 166
164 void CallCode(Handle<Code> code, RelocInfo::Mode mode, LInstruction* instr, 167 void CallCode(Handle<Code> code, RelocInfo::Mode mode, LInstruction* instr,
165 bool adjusted = true); 168 bool adjusted = true);
166 void CallRuntime(Runtime::Function* fun, int argc, LInstruction* instr, 169 void CallRuntime(const Runtime::Function* fun, int argc, LInstruction* instr,
167 bool adjusted = true); 170 bool adjusted = true);
168 void CallRuntime(Runtime::FunctionId id, int argc, LInstruction* instr, 171 void CallRuntime(Runtime::FunctionId id, int argc, LInstruction* instr,
169 bool adjusted = true) { 172 bool adjusted = true) {
170 Runtime::Function* function = Runtime::FunctionForId(id); 173 const Runtime::Function* function = Runtime::FunctionForId(id);
171 CallRuntime(function, argc, instr, adjusted); 174 CallRuntime(function, argc, instr, adjusted);
172 } 175 }
173 176
174 // Generate a direct call to a known function. Expects the function 177 // Generate a direct call to a known function. Expects the function
175 // to be in edi. 178 // to be in edi.
176 void CallKnownFunction(Handle<JSFunction> function, 179 void CallKnownFunction(Handle<JSFunction> function,
177 int arity, 180 int arity,
178 LInstruction* instr); 181 LInstruction* instr);
179 182
180 void LoadHeapObject(Register result, Handle<HeapObject> object); 183 void LoadHeapObject(Register result, Handle<HeapObject> object);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 private: 305 private:
303 LCodeGen* codegen_; 306 LCodeGen* codegen_;
304 Label entry_; 307 Label entry_;
305 Label exit_; 308 Label exit_;
306 Label* external_exit_; 309 Label* external_exit_;
307 }; 310 };
308 311
309 } } // namespace v8::internal 312 } } // namespace v8::internal
310 313
311 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 314 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698