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

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

Issue 14791014: Deoptimized by soft deoptimize should not affect the opt count (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 7 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 public: 426 public:
427 explicit LDummyUse(LOperand* value) { 427 explicit LDummyUse(LOperand* value) {
428 inputs_[0] = value; 428 inputs_[0] = value;
429 } 429 }
430 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 430 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
431 }; 431 };
432 432
433 433
434 class LDeoptimize: public LTemplateInstruction<0, 0, 0> { 434 class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
435 public: 435 public:
436 explicit LDeoptimize(bool soft_deopt = false) {
437 soft_deopt_ = soft_deopt;
438 }
439
440 bool is_soft_deopt() const { return soft_deopt_; }
436 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") 441 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
442
443 private:
444 bool soft_deopt_;
437 }; 445 };
438 446
439 447
440 class LLabel: public LGap { 448 class LLabel: public LGap {
441 public: 449 public:
442 explicit LLabel(HBasicBlock* block) 450 explicit LLabel(HBasicBlock* block)
443 : LGap(block), replacement_(NULL) { } 451 : LGap(block), replacement_(NULL) { }
444 452
445 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 453 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
446 DECLARE_CONCRETE_INSTRUCTION(Label, "label") 454 DECLARE_CONCRETE_INSTRUCTION(Label, "label")
(...skipping 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2744 2752
2745 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2746 }; 2754 };
2747 2755
2748 #undef DECLARE_HYDROGEN_ACCESSOR 2756 #undef DECLARE_HYDROGEN_ACCESSOR
2749 #undef DECLARE_CONCRETE_INSTRUCTION 2757 #undef DECLARE_CONCRETE_INSTRUCTION
2750 2758
2751 } } // namespace v8::int 2759 } } // namespace v8::int
2752 2760
2753 #endif // V8_X64_LITHIUM_X64_H_ 2761 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698