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

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

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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.cc ('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 // 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 deopt_jump_table_(4, info->zone()), 52 deopt_jump_table_(4, info->zone()),
53 deoptimization_literals_(8, info->zone()), 53 deoptimization_literals_(8, info->zone()),
54 inlined_function_count_(0), 54 inlined_function_count_(0),
55 scope_(info->scope()), 55 scope_(info->scope()),
56 translations_(info->zone()), 56 translations_(info->zone()),
57 deferred_(8, info->zone()), 57 deferred_(8, info->zone()),
58 osr_pc_offset_(-1), 58 osr_pc_offset_(-1),
59 frame_is_built_(false), 59 frame_is_built_(false),
60 safepoints_(info->zone()), 60 safepoints_(info->zone()),
61 resolver_(this), 61 resolver_(this),
62 expected_safepoint_kind_(Safepoint::kSimple), 62 expected_safepoint_kind_(Safepoint::kSimple) {
63 old_position_(RelocInfo::kNoPosition) {
64 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 63 PopulateDeoptimizationLiteralsWithInlinedFunctions();
65 } 64 }
66 65
67 66
68 int LookupDestination(int block_id) const { 67 int LookupDestination(int block_id) const {
69 return chunk()->LookupDestination(block_id); 68 return chunk()->LookupDestination(block_id);
70 } 69 }
71 70
72 bool IsNextEmittedBlock(int block_id) const { 71 bool IsNextEmittedBlock(int block_id) const {
73 return LookupDestination(block_id) == GetNextEmittedBlock(); 72 return LookupDestination(block_id) == GetNextEmittedBlock();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 239
241 // Generate a direct call to a known function. Expects the function 240 // Generate a direct call to a known function. Expects the function
242 // to be in r1. 241 // to be in r1.
243 void CallKnownFunction(Handle<JSFunction> function, 242 void CallKnownFunction(Handle<JSFunction> function,
244 int formal_parameter_count, 243 int formal_parameter_count,
245 int arity, 244 int arity,
246 LInstruction* instr, 245 LInstruction* instr,
247 CallKind call_kind, 246 CallKind call_kind,
248 R1State r1_state); 247 R1State r1_state);
249 248
250 void LoadHeapObject(Register result, Handle<HeapObject> object);
251
252 void RecordSafepointWithLazyDeopt(LInstruction* instr, 249 void RecordSafepointWithLazyDeopt(LInstruction* instr,
253 SafepointMode safepoint_mode); 250 SafepointMode safepoint_mode);
254 251
255 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 252 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
256 Safepoint::DeoptMode mode); 253 Safepoint::DeoptMode mode);
257 void DeoptimizeIf(Condition condition, 254 void DeoptimizeIf(Condition condition,
258 LEnvironment* environment, 255 LEnvironment* environment,
259 Deoptimizer::BailoutType bailout_type); 256 Deoptimizer::BailoutType bailout_type);
260 void DeoptimizeIf(Condition condition, LEnvironment* environment); 257 void DeoptimizeIf(Condition condition, LEnvironment* environment);
261 void ApplyCheckIf(Condition condition, LBoundsCheck* check); 258 void ApplyCheckIf(Condition condition, LBoundsCheck* check);
(...skipping 22 matching lines...) Expand all
284 int arguments, 281 int arguments,
285 Safepoint::DeoptMode mode); 282 Safepoint::DeoptMode mode);
286 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 283 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
287 void RecordSafepoint(Safepoint::DeoptMode mode); 284 void RecordSafepoint(Safepoint::DeoptMode mode);
288 void RecordSafepointWithRegisters(LPointerMap* pointers, 285 void RecordSafepointWithRegisters(LPointerMap* pointers,
289 int arguments, 286 int arguments,
290 Safepoint::DeoptMode mode); 287 Safepoint::DeoptMode mode);
291 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, 288 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers,
292 int arguments, 289 int arguments,
293 Safepoint::DeoptMode mode); 290 Safepoint::DeoptMode mode);
294 void RecordPosition(int position); 291
295 void RecordAndUpdatePosition(int position) V8_OVERRIDE; 292 void RecordAndWritePosition(int position) V8_OVERRIDE;
296 293
297 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 294 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
298 void EmitGoto(int block); 295 void EmitGoto(int block);
299 template<class InstrType> 296 template<class InstrType>
300 void EmitBranch(InstrType instr, Condition condition); 297 void EmitBranch(InstrType instr, Condition condition);
301 template<class InstrType> 298 template<class InstrType>
302 void EmitFalseBranch(InstrType instr, Condition condition); 299 void EmitFalseBranch(InstrType instr, Condition condition);
303 void EmitNumberUntagD(Register input, 300 void EmitNumberUntagD(Register input,
304 DwVfpRegister result, 301 DwVfpRegister result,
305 bool allow_undefined_as_nan, 302 bool allow_undefined_as_nan,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 371
375 // Builder that keeps track of safepoints in the code. The table 372 // Builder that keeps track of safepoints in the code. The table
376 // itself is emitted at the end of the generated code. 373 // itself is emitted at the end of the generated code.
377 SafepointTableBuilder safepoints_; 374 SafepointTableBuilder safepoints_;
378 375
379 // Compiler from a set of parallel moves to a sequential list of moves. 376 // Compiler from a set of parallel moves to a sequential list of moves.
380 LGapResolver resolver_; 377 LGapResolver resolver_;
381 378
382 Safepoint::Kind expected_safepoint_kind_; 379 Safepoint::Kind expected_safepoint_kind_;
383 380
384 int old_position_;
385
386 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 381 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED {
387 public: 382 public:
388 PushSafepointRegistersScope(LCodeGen* codegen, 383 PushSafepointRegistersScope(LCodeGen* codegen,
389 Safepoint::Kind kind) 384 Safepoint::Kind kind)
390 : codegen_(codegen) { 385 : codegen_(codegen) {
391 ASSERT(codegen_->info()->is_calling()); 386 ASSERT(codegen_->info()->is_calling());
392 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 387 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
393 codegen_->expected_safepoint_kind_ = kind; 388 codegen_->expected_safepoint_kind_ = kind;
394 389
395 switch (codegen_->expected_safepoint_kind_) { 390 switch (codegen_->expected_safepoint_kind_) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 LCodeGen* codegen_; 452 LCodeGen* codegen_;
458 Label entry_; 453 Label entry_;
459 Label exit_; 454 Label exit_;
460 Label* external_exit_; 455 Label* external_exit_;
461 int instruction_index_; 456 int instruction_index_;
462 }; 457 };
463 458
464 } } // namespace v8::internal 459 } } // namespace v8::internal
465 460
466 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 461 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698