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

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

Issue 22502006: MIPS: Patch to enhance the source code line information for profiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | src/mips/lithium-codegen-mips.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 translations_(info->zone()), 61 translations_(info->zone()),
62 deferred_(8, info->zone()), 62 deferred_(8, info->zone()),
63 osr_pc_offset_(-1), 63 osr_pc_offset_(-1),
64 last_lazy_deopt_pc_(0), 64 last_lazy_deopt_pc_(0),
65 frame_is_built_(false), 65 frame_is_built_(false),
66 safepoints_(info->zone()), 66 safepoints_(info->zone()),
67 resolver_(this), 67 resolver_(this),
68 expected_safepoint_kind_(Safepoint::kSimple) { 68 expected_safepoint_kind_(Safepoint::kSimple),
69 old_position_(RelocInfo::kNoPosition) {
69 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 70 PopulateDeoptimizationLiteralsWithInlinedFunctions();
70 } 71 }
71 72
72 73
73 // Simple accessors. 74 // Simple accessors.
74 MacroAssembler* masm() const { return masm_; } 75 MacroAssembler* masm() const { return masm_; }
75 CompilationInfo* info() const { return info_; } 76 CompilationInfo* info() const { return info_; }
76 Isolate* isolate() const { return info_->isolate(); } 77 Isolate* isolate() const { return info_->isolate(); }
77 Factory* factory() const { return isolate()->factory(); } 78 Factory* factory() const { return isolate()->factory(); }
78 Heap* heap() const { return isolate()->heap(); } 79 Heap* heap() const { return isolate()->heap(); }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 Safepoint::DeoptMode mode); 316 Safepoint::DeoptMode mode);
316 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 317 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
317 void RecordSafepoint(Safepoint::DeoptMode mode); 318 void RecordSafepoint(Safepoint::DeoptMode mode);
318 void RecordSafepointWithRegisters(LPointerMap* pointers, 319 void RecordSafepointWithRegisters(LPointerMap* pointers,
319 int arguments, 320 int arguments,
320 Safepoint::DeoptMode mode); 321 Safepoint::DeoptMode mode);
321 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, 322 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers,
322 int arguments, 323 int arguments,
323 Safepoint::DeoptMode mode); 324 Safepoint::DeoptMode mode);
324 void RecordPosition(int position); 325 void RecordPosition(int position);
326 void RecordAndUpdatePosition(int position);
325 327
326 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 328 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
327 void EmitGoto(int block); 329 void EmitGoto(int block);
328 template<class InstrType> 330 template<class InstrType>
329 void EmitBranch(InstrType instr, 331 void EmitBranch(InstrType instr,
330 Condition cc, 332 Condition cc,
331 Register src1, 333 Register src1,
332 const Operand& src2); 334 const Operand& src2);
333 template<class InstrType> 335 template<class InstrType>
334 void EmitBranchF(InstrType instr, 336 void EmitBranchF(InstrType instr,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 433
432 // Builder that keeps track of safepoints in the code. The table 434 // Builder that keeps track of safepoints in the code. The table
433 // itself is emitted at the end of the generated code. 435 // itself is emitted at the end of the generated code.
434 SafepointTableBuilder safepoints_; 436 SafepointTableBuilder safepoints_;
435 437
436 // Compiler from a set of parallel moves to a sequential list of moves. 438 // Compiler from a set of parallel moves to a sequential list of moves.
437 LGapResolver resolver_; 439 LGapResolver resolver_;
438 440
439 Safepoint::Kind expected_safepoint_kind_; 441 Safepoint::Kind expected_safepoint_kind_;
440 442
443 int old_position_;
444
441 class PushSafepointRegistersScope BASE_EMBEDDED { 445 class PushSafepointRegistersScope BASE_EMBEDDED {
442 public: 446 public:
443 PushSafepointRegistersScope(LCodeGen* codegen, 447 PushSafepointRegistersScope(LCodeGen* codegen,
444 Safepoint::Kind kind) 448 Safepoint::Kind kind)
445 : codegen_(codegen) { 449 : codegen_(codegen) {
446 ASSERT(codegen_->info()->is_calling()); 450 ASSERT(codegen_->info()->is_calling());
447 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 451 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
448 codegen_->expected_safepoint_kind_ = kind; 452 codegen_->expected_safepoint_kind_ = kind;
449 453
450 switch (codegen_->expected_safepoint_kind_) { 454 switch (codegen_->expected_safepoint_kind_) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 LCodeGen* codegen_; 516 LCodeGen* codegen_;
513 Label entry_; 517 Label entry_;
514 Label exit_; 518 Label exit_;
515 Label* external_exit_; 519 Label* external_exit_;
516 int instruction_index_; 520 int instruction_index_;
517 }; 521 };
518 522
519 } } // namespace v8::internal 523 } } // namespace v8::internal
520 524
521 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 525 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698