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

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
« 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 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 Safepoint::DeoptMode mode); 309 Safepoint::DeoptMode mode);
309 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 310 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
310 void RecordSafepoint(Safepoint::DeoptMode mode); 311 void RecordSafepoint(Safepoint::DeoptMode mode);
311 void RecordSafepointWithRegisters(LPointerMap* pointers, 312 void RecordSafepointWithRegisters(LPointerMap* pointers,
312 int arguments, 313 int arguments,
313 Safepoint::DeoptMode mode); 314 Safepoint::DeoptMode mode);
314 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, 315 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers,
315 int arguments, 316 int arguments,
316 Safepoint::DeoptMode mode); 317 Safepoint::DeoptMode mode);
317 void RecordPosition(int position); 318 void RecordPosition(int position);
319 void RecordAndUpdatePosition(int position);
318 320
319 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 321 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
320 void EmitGoto(int block); 322 void EmitGoto(int block);
321 template<class InstrType> 323 template<class InstrType>
322 void EmitBranch(InstrType instr, Condition cc); 324 void EmitBranch(InstrType instr, Condition cc);
323 void EmitNumberUntagD(Register input, 325 void EmitNumberUntagD(Register input,
324 DwVfpRegister result, 326 DwVfpRegister result,
325 bool allow_undefined_as_nan, 327 bool allow_undefined_as_nan,
326 bool deoptimize_on_minus_zero, 328 bool deoptimize_on_minus_zero,
327 LEnvironment* env, 329 LEnvironment* env,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 412
411 // Builder that keeps track of safepoints in the code. The table 413 // Builder that keeps track of safepoints in the code. The table
412 // itself is emitted at the end of the generated code. 414 // itself is emitted at the end of the generated code.
413 SafepointTableBuilder safepoints_; 415 SafepointTableBuilder safepoints_;
414 416
415 // Compiler from a set of parallel moves to a sequential list of moves. 417 // Compiler from a set of parallel moves to a sequential list of moves.
416 LGapResolver resolver_; 418 LGapResolver resolver_;
417 419
418 Safepoint::Kind expected_safepoint_kind_; 420 Safepoint::Kind expected_safepoint_kind_;
419 421
422 int old_position_;
423
420 class PushSafepointRegistersScope BASE_EMBEDDED { 424 class PushSafepointRegistersScope BASE_EMBEDDED {
421 public: 425 public:
422 PushSafepointRegistersScope(LCodeGen* codegen, 426 PushSafepointRegistersScope(LCodeGen* codegen,
423 Safepoint::Kind kind) 427 Safepoint::Kind kind)
424 : codegen_(codegen) { 428 : codegen_(codegen) {
425 ASSERT(codegen_->info()->is_calling()); 429 ASSERT(codegen_->info()->is_calling());
426 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 430 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
427 codegen_->expected_safepoint_kind_ = kind; 431 codegen_->expected_safepoint_kind_ = kind;
428 432
429 switch (codegen_->expected_safepoint_kind_) { 433 switch (codegen_->expected_safepoint_kind_) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 LCodeGen* codegen_; 495 LCodeGen* codegen_;
492 Label entry_; 496 Label entry_;
493 Label exit_; 497 Label exit_;
494 Label* external_exit_; 498 Label* external_exit_;
495 int instruction_index_; 499 int instruction_index_;
496 }; 500 };
497 501
498 } } // namespace v8::internal 502 } } // namespace v8::internal
499 503
500 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 504 #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