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

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

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_
7 7
8 #include "src/arm/lithium-arm.h" 8 #include "src/arm/lithium-arm.h"
9 9
10 #include "src/arm/lithium-gap-resolver-arm.h" 10 #include "src/arm/lithium-gap-resolver-arm.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 163 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
164 164
165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
166 166
167 void SaveCallerDoubles(); 167 void SaveCallerDoubles();
168 void RestoreCallerDoubles(); 168 void RestoreCallerDoubles();
169 169
170 // Code generation passes. Returns true if code generation should 170 // Code generation passes. Returns true if code generation should
171 // continue. 171 // continue.
172 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE; 172 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE;
173 bool GeneratePrologue(); 173 bool GeneratePrologue();
174 bool GenerateDeferredCode(); 174 bool GenerateDeferredCode();
175 bool GenerateDeoptJumpTable(); 175 bool GenerateDeoptJumpTable();
176 bool GenerateSafepointTable(); 176 bool GenerateSafepointTable();
177 177
178 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 178 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
179 void GenerateOsrPrologue(); 179 void GenerateOsrPrologue();
180 180
181 enum SafepointMode { 181 enum SafepointMode {
182 RECORD_SIMPLE_SAFEPOINT, 182 RECORD_SIMPLE_SAFEPOINT,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void RecordSafepoint(LPointerMap* pointers, 264 void RecordSafepoint(LPointerMap* pointers,
265 Safepoint::Kind kind, 265 Safepoint::Kind kind,
266 int arguments, 266 int arguments,
267 Safepoint::DeoptMode mode); 267 Safepoint::DeoptMode mode);
268 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 268 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
269 void RecordSafepoint(Safepoint::DeoptMode mode); 269 void RecordSafepoint(Safepoint::DeoptMode mode);
270 void RecordSafepointWithRegisters(LPointerMap* pointers, 270 void RecordSafepointWithRegisters(LPointerMap* pointers,
271 int arguments, 271 int arguments,
272 Safepoint::DeoptMode mode); 272 Safepoint::DeoptMode mode);
273 273
274 void RecordAndWritePosition(int position) V8_OVERRIDE; 274 void RecordAndWritePosition(int position) OVERRIDE;
275 275
276 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 276 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
277 void EmitGoto(int block); 277 void EmitGoto(int block);
278 278
279 // EmitBranch expects to be the last instruction of a block. 279 // EmitBranch expects to be the last instruction of a block.
280 template<class InstrType> 280 template<class InstrType>
281 void EmitBranch(InstrType instr, Condition condition); 281 void EmitBranch(InstrType instr, Condition condition);
282 template<class InstrType> 282 template<class InstrType>
283 void EmitFalseBranch(InstrType instr, Condition condition); 283 void EmitFalseBranch(InstrType instr, Condition condition);
284 void EmitNumberUntagD(Register input, 284 void EmitNumberUntagD(Register input,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void EmitIsConstructCall(Register temp1, Register temp2); 317 void EmitIsConstructCall(Register temp1, Register temp2);
318 318
319 // Emits optimized code to deep-copy the contents of statically known 319 // Emits optimized code to deep-copy the contents of statically known
320 // object graphs (e.g. object literal boilerplate). 320 // object graphs (e.g. object literal boilerplate).
321 void EmitDeepCopy(Handle<JSObject> object, 321 void EmitDeepCopy(Handle<JSObject> object,
322 Register result, 322 Register result,
323 Register source, 323 Register source,
324 int* offset, 324 int* offset,
325 AllocationSiteMode mode); 325 AllocationSiteMode mode);
326 326
327 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; 327 void EnsureSpaceForLazyDeopt(int space_needed) OVERRIDE;
328 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 328 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
329 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 329 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
330 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 330 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
331 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 331 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
332 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 332 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
333 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 333 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
334 334
335 template <class T> 335 template <class T>
336 void EmitVectorLoadICRegisters(T* instr); 336 void EmitVectorLoadICRegisters(T* instr);
337 337
338 ZoneList<LEnvironment*> deoptimizations_; 338 ZoneList<LEnvironment*> deoptimizations_;
339 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; 339 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_;
340 ZoneList<Handle<Object> > deoptimization_literals_; 340 ZoneList<Handle<Object> > deoptimization_literals_;
341 int inlined_function_count_; 341 int inlined_function_count_;
342 Scope* const scope_; 342 Scope* const scope_;
343 TranslationBuffer translations_; 343 TranslationBuffer translations_;
344 ZoneList<LDeferredCode*> deferred_; 344 ZoneList<LDeferredCode*> deferred_;
345 int osr_pc_offset_; 345 int osr_pc_offset_;
346 bool frame_is_built_; 346 bool frame_is_built_;
347 347
348 // Builder that keeps track of safepoints in the code. The table 348 // Builder that keeps track of safepoints in the code. The table
349 // itself is emitted at the end of the generated code. 349 // itself is emitted at the end of the generated code.
350 SafepointTableBuilder safepoints_; 350 SafepointTableBuilder safepoints_;
351 351
352 // Compiler from a set of parallel moves to a sequential list of moves. 352 // Compiler from a set of parallel moves to a sequential list of moves.
353 LGapResolver resolver_; 353 LGapResolver resolver_;
354 354
355 Safepoint::Kind expected_safepoint_kind_; 355 Safepoint::Kind expected_safepoint_kind_;
356 356
357 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 357 class PushSafepointRegistersScope FINAL BASE_EMBEDDED {
358 public: 358 public:
359 explicit PushSafepointRegistersScope(LCodeGen* codegen) 359 explicit PushSafepointRegistersScope(LCodeGen* codegen)
360 : codegen_(codegen) { 360 : codegen_(codegen) {
361 DCHECK(codegen_->info()->is_calling()); 361 DCHECK(codegen_->info()->is_calling());
362 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 362 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
363 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 363 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
364 codegen_->masm_->PushSafepointRegisters(); 364 codegen_->masm_->PushSafepointRegisters();
365 } 365 }
366 366
367 ~PushSafepointRegistersScope() { 367 ~PushSafepointRegistersScope() {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 LCodeGen* codegen_; 407 LCodeGen* codegen_;
408 Label entry_; 408 Label entry_;
409 Label exit_; 409 Label exit_;
410 Label* external_exit_; 410 Label* external_exit_;
411 int instruction_index_; 411 int instruction_index_;
412 }; 412 };
413 413
414 } } // namespace v8::internal 414 } } // namespace v8::internal
415 415
416 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 416 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698