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

Side by Side Diff: src/arm/lithium-codegen-arm.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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 inlined_function_count_(0), 59 inlined_function_count_(0),
60 scope_(info->scope()), 60 scope_(info->scope()),
61 status_(UNUSED), 61 status_(UNUSED),
62 translations_(info->zone()), 62 translations_(info->zone()),
63 deferred_(8, info->zone()), 63 deferred_(8, info->zone()),
64 osr_pc_offset_(-1), 64 osr_pc_offset_(-1),
65 last_lazy_deopt_pc_(0), 65 last_lazy_deopt_pc_(0),
66 frame_is_built_(false), 66 frame_is_built_(false),
67 safepoints_(info->zone()), 67 safepoints_(info->zone()),
68 resolver_(this), 68 resolver_(this),
69 expected_safepoint_kind_(Safepoint::kSimple) { 69 expected_safepoint_kind_(Safepoint::kSimple),
70 old_position_(RelocInfo::kNoPosition) {
70 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 71 PopulateDeoptimizationLiteralsWithInlinedFunctions();
71 } 72 }
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(); }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 Safepoint::DeoptMode mode); 310 Safepoint::DeoptMode mode);
310 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 311 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
311 void RecordSafepoint(Safepoint::DeoptMode mode); 312 void RecordSafepoint(Safepoint::DeoptMode mode);
312 void RecordSafepointWithRegisters(LPointerMap* pointers, 313 void RecordSafepointWithRegisters(LPointerMap* pointers,
313 int arguments, 314 int arguments,
314 Safepoint::DeoptMode mode); 315 Safepoint::DeoptMode mode);
315 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, 316 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers,
316 int arguments, 317 int arguments,
317 Safepoint::DeoptMode mode); 318 Safepoint::DeoptMode mode);
318 void RecordPosition(int position); 319 void RecordPosition(int position);
320 void RecordAndUpdatePosition(int position);
319 321
320 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 322 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
321 void EmitGoto(int block); 323 void EmitGoto(int block);
322 template<class InstrType> 324 template<class InstrType>
323 void EmitBranch(InstrType instr, Condition cc); 325 void EmitBranch(InstrType instr, Condition cc);
324 void EmitNumberUntagD(Register input, 326 void EmitNumberUntagD(Register input,
325 DwVfpRegister result, 327 DwVfpRegister result,
326 bool allow_undefined_as_nan, 328 bool allow_undefined_as_nan,
327 bool deoptimize_on_minus_zero, 329 bool deoptimize_on_minus_zero,
328 LEnvironment* env, 330 LEnvironment* env,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 413
412 // Builder that keeps track of safepoints in the code. The table 414 // Builder that keeps track of safepoints in the code. The table
413 // itself is emitted at the end of the generated code. 415 // itself is emitted at the end of the generated code.
414 SafepointTableBuilder safepoints_; 416 SafepointTableBuilder safepoints_;
415 417
416 // Compiler from a set of parallel moves to a sequential list of moves. 418 // Compiler from a set of parallel moves to a sequential list of moves.
417 LGapResolver resolver_; 419 LGapResolver resolver_;
418 420
419 Safepoint::Kind expected_safepoint_kind_; 421 Safepoint::Kind expected_safepoint_kind_;
420 422
423 int old_position_;
424
421 class PushSafepointRegistersScope BASE_EMBEDDED { 425 class PushSafepointRegistersScope BASE_EMBEDDED {
422 public: 426 public:
423 PushSafepointRegistersScope(LCodeGen* codegen, 427 PushSafepointRegistersScope(LCodeGen* codegen,
424 Safepoint::Kind kind) 428 Safepoint::Kind kind)
425 : codegen_(codegen) { 429 : codegen_(codegen) {
426 ASSERT(codegen_->info()->is_calling()); 430 ASSERT(codegen_->info()->is_calling());
427 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 431 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
428 codegen_->expected_safepoint_kind_ = kind; 432 codegen_->expected_safepoint_kind_ = kind;
429 433
430 switch (codegen_->expected_safepoint_kind_) { 434 switch (codegen_->expected_safepoint_kind_) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 LCodeGen* codegen_; 496 LCodeGen* codegen_;
493 Label entry_; 497 Label entry_;
494 Label exit_; 498 Label exit_;
495 Label* external_exit_; 499 Label* external_exit_;
496 int instruction_index_; 500 int instruction_index_;
497 }; 501 };
498 502
499 } } // namespace v8::internal 503 } } // namespace v8::internal
500 504
501 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 505 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698