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

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

Issue 21042003: Patch to enhance the source code line information for profiler. (Closed) Base URL: http://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 | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 inlined_function_count_(0), 60 inlined_function_count_(0),
61 scope_(info->scope()), 61 scope_(info->scope()),
62 status_(UNUSED), 62 status_(UNUSED),
63 translations_(info->zone()), 63 translations_(info->zone()),
64 deferred_(8, info->zone()), 64 deferred_(8, info->zone()),
65 osr_pc_offset_(-1), 65 osr_pc_offset_(-1),
66 last_lazy_deopt_pc_(0), 66 last_lazy_deopt_pc_(0),
67 frame_is_built_(false), 67 frame_is_built_(false),
68 safepoints_(info->zone()), 68 safepoints_(info->zone()),
69 resolver_(this), 69 resolver_(this),
70 expected_safepoint_kind_(Safepoint::kSimple) { 70 expected_safepoint_kind_(Safepoint::kSimple),
71 old_position_(RelocInfo::kNoPosition) {
71 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 72 PopulateDeoptimizationLiteralsWithInlinedFunctions();
72 } 73 }
73 74
74 // Simple accessors. 75 // Simple accessors.
75 MacroAssembler* masm() const { return masm_; } 76 MacroAssembler* masm() const { return masm_; }
76 CompilationInfo* info() const { return info_; } 77 CompilationInfo* info() const { return info_; }
77 Isolate* isolate() const { return info_->isolate(); } 78 Isolate* isolate() const { return info_->isolate(); }
78 Factory* factory() const { return isolate()->factory(); } 79 Factory* factory() const { return isolate()->factory(); }
79 Heap* heap() const { return isolate()->heap(); } 80 Heap* heap() const { return isolate()->heap(); }
80 Zone* zone() const { return zone_; } 81 Zone* zone() const { return zone_; }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void RecordSafepoint(LPointerMap* pointers, 274 void RecordSafepoint(LPointerMap* pointers,
274 Safepoint::Kind kind, 275 Safepoint::Kind kind,
275 int arguments, 276 int arguments,
276 Safepoint::DeoptMode mode); 277 Safepoint::DeoptMode mode);
277 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 278 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
278 void RecordSafepoint(Safepoint::DeoptMode mode); 279 void RecordSafepoint(Safepoint::DeoptMode mode);
279 void RecordSafepointWithRegisters(LPointerMap* pointers, 280 void RecordSafepointWithRegisters(LPointerMap* pointers,
280 int arguments, 281 int arguments,
281 Safepoint::DeoptMode mode); 282 Safepoint::DeoptMode mode);
282 void RecordPosition(int position); 283 void RecordPosition(int position);
284 void RecordAndUpdatePosition(int position);
283 285
284 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 286 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
285 void EmitGoto(int block); 287 void EmitGoto(int block);
286 template<class InstrType> 288 template<class InstrType>
287 void EmitBranch(InstrType instr, Condition cc); 289 void EmitBranch(InstrType instr, Condition cc);
288 void EmitNumberUntagD( 290 void EmitNumberUntagD(
289 Register input, 291 Register input,
290 XMMRegister result, 292 XMMRegister result,
291 bool allow_undefined_as_nan, 293 bool allow_undefined_as_nan,
292 bool deoptimize_on_minus_zero, 294 bool deoptimize_on_minus_zero,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 377
376 // Builder that keeps track of safepoints in the code. The table 378 // Builder that keeps track of safepoints in the code. The table
377 // itself is emitted at the end of the generated code. 379 // itself is emitted at the end of the generated code.
378 SafepointTableBuilder safepoints_; 380 SafepointTableBuilder safepoints_;
379 381
380 // Compiler from a set of parallel moves to a sequential list of moves. 382 // Compiler from a set of parallel moves to a sequential list of moves.
381 LGapResolver resolver_; 383 LGapResolver resolver_;
382 384
383 Safepoint::Kind expected_safepoint_kind_; 385 Safepoint::Kind expected_safepoint_kind_;
384 386
387 int old_position_;
388
385 class PushSafepointRegistersScope BASE_EMBEDDED { 389 class PushSafepointRegistersScope BASE_EMBEDDED {
386 public: 390 public:
387 explicit PushSafepointRegistersScope(LCodeGen* codegen) 391 explicit PushSafepointRegistersScope(LCodeGen* codegen)
388 : codegen_(codegen) { 392 : codegen_(codegen) {
389 ASSERT(codegen_->info()->is_calling()); 393 ASSERT(codegen_->info()->is_calling());
390 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 394 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
391 codegen_->masm_->PushSafepointRegisters(); 395 codegen_->masm_->PushSafepointRegisters();
392 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 396 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
393 } 397 }
394 398
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 LCodeGen* codegen_; 439 LCodeGen* codegen_;
436 Label entry_; 440 Label entry_;
437 Label exit_; 441 Label exit_;
438 Label* external_exit_; 442 Label* external_exit_;
439 int instruction_index_; 443 int instruction_index_;
440 }; 444 };
441 445
442 } } // namespace v8::internal 446 } } // namespace v8::internal
443 447
444 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 448 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698