| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 LOperand* index, | 219 LOperand* index, |
| 220 String::Encoding encoding); | 220 String::Encoding encoding); |
| 221 void DeoptimizeBranch( | 221 void DeoptimizeBranch( |
| 222 LEnvironment* environment, | 222 LEnvironment* environment, |
| 223 BranchType branch_type, Register reg = NoReg, int bit = -1, | 223 BranchType branch_type, Register reg = NoReg, int bit = -1, |
| 224 Deoptimizer::BailoutType* override_bailout_type = NULL); | 224 Deoptimizer::BailoutType* override_bailout_type = NULL); |
| 225 void Deoptimize(LEnvironment* environment, | 225 void Deoptimize(LEnvironment* environment, |
| 226 Deoptimizer::BailoutType* override_bailout_type = NULL); | 226 Deoptimizer::BailoutType* override_bailout_type = NULL); |
| 227 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 227 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
| 228 void DeoptimizeIfZero(Register rt, LEnvironment* environment); | 228 void DeoptimizeIfZero(Register rt, LEnvironment* environment); |
| 229 void DeoptimizeIfNotZero(Register rt, LEnvironment* environment); |
| 229 void DeoptimizeIfNegative(Register rt, LEnvironment* environment); | 230 void DeoptimizeIfNegative(Register rt, LEnvironment* environment); |
| 230 void DeoptimizeIfSmi(Register rt, LEnvironment* environment); | 231 void DeoptimizeIfSmi(Register rt, LEnvironment* environment); |
| 231 void DeoptimizeIfNotSmi(Register rt, LEnvironment* environment); | 232 void DeoptimizeIfNotSmi(Register rt, LEnvironment* environment); |
| 232 void DeoptimizeIfRoot(Register rt, | 233 void DeoptimizeIfRoot(Register rt, |
| 233 Heap::RootListIndex index, | 234 Heap::RootListIndex index, |
| 234 LEnvironment* environment); | 235 LEnvironment* environment); |
| 235 void DeoptimizeIfNotRoot(Register rt, | 236 void DeoptimizeIfNotRoot(Register rt, |
| 236 Heap::RootListIndex index, | 237 Heap::RootListIndex index, |
| 237 LEnvironment* environment); | 238 LEnvironment* environment); |
| 238 void ApplyCheckIf(Condition cc, LBoundsCheck* check); | 239 void ApplyCheckIf(Condition cc, LBoundsCheck* check); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 268 LOperand* op, | 269 LOperand* op, |
| 269 bool is_tagged, | 270 bool is_tagged, |
| 270 bool is_uint32, | 271 bool is_uint32, |
| 271 int* object_index_pointer, | 272 int* object_index_pointer, |
| 272 int* dematerialized_index_pointer); | 273 int* dematerialized_index_pointer); |
| 273 | 274 |
| 274 void SaveCallerDoubles(); | 275 void SaveCallerDoubles(); |
| 275 void RestoreCallerDoubles(); | 276 void RestoreCallerDoubles(); |
| 276 | 277 |
| 277 // Code generation steps. Returns true if code generation should continue. | 278 // Code generation steps. Returns true if code generation should continue. |
| 279 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE; |
| 278 bool GeneratePrologue(); | 280 bool GeneratePrologue(); |
| 279 bool GenerateDeferredCode(); | 281 bool GenerateDeferredCode(); |
| 280 bool GenerateDeoptJumpTable(); | 282 bool GenerateDeoptJumpTable(); |
| 281 bool GenerateSafepointTable(); | 283 bool GenerateSafepointTable(); |
| 282 | 284 |
| 283 // Generates the custom OSR entrypoint and sets the osr_pc_offset. | 285 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 284 void GenerateOsrPrologue(); | 286 void GenerateOsrPrologue(); |
| 285 | 287 |
| 286 enum SafepointMode { | 288 enum SafepointMode { |
| 287 RECORD_SIMPLE_SAFEPOINT, | 289 RECORD_SIMPLE_SAFEPOINT, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 Safepoint::DeoptMode mode); | 340 Safepoint::DeoptMode mode); |
| 339 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 341 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 340 int arguments, | 342 int arguments, |
| 341 Safepoint::DeoptMode mode); | 343 Safepoint::DeoptMode mode); |
| 342 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 344 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 343 SafepointMode safepoint_mode); | 345 SafepointMode safepoint_mode); |
| 344 | 346 |
| 345 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; | 347 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; |
| 346 | 348 |
| 347 ZoneList<LEnvironment*> deoptimizations_; | 349 ZoneList<LEnvironment*> deoptimizations_; |
| 348 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; | 350 ZoneList<Deoptimizer::JumpTableEntry*> deopt_jump_table_; |
| 349 ZoneList<Handle<Object> > deoptimization_literals_; | 351 ZoneList<Handle<Object> > deoptimization_literals_; |
| 350 int inlined_function_count_; | 352 int inlined_function_count_; |
| 351 Scope* const scope_; | 353 Scope* const scope_; |
| 352 TranslationBuffer translations_; | 354 TranslationBuffer translations_; |
| 353 ZoneList<LDeferredCode*> deferred_; | 355 ZoneList<LDeferredCode*> deferred_; |
| 354 int osr_pc_offset_; | 356 int osr_pc_offset_; |
| 355 bool frame_is_built_; | 357 bool frame_is_built_; |
| 356 | 358 |
| 357 // Builder that keeps track of safepoints in the code. The table itself is | 359 // Builder that keeps track of safepoints in the code. The table itself is |
| 358 // emitted at the end of the generated code. | 360 // emitted at the end of the generated code. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 | 466 |
| 465 protected: | 467 protected: |
| 466 MacroAssembler* masm() const { return codegen_->masm(); } | 468 MacroAssembler* masm() const { return codegen_->masm(); } |
| 467 | 469 |
| 468 LCodeGen* codegen_; | 470 LCodeGen* codegen_; |
| 469 }; | 471 }; |
| 470 | 472 |
| 471 } } // namespace v8::internal | 473 } } // namespace v8::internal |
| 472 | 474 |
| 473 #endif // V8_A64_LITHIUM_CODEGEN_A64_H_ | 475 #endif // V8_A64_LITHIUM_CODEGEN_A64_H_ |
| OLD | NEW |