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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 public: 413 public:
414 explicit LDummyUse(LOperand* value) { 414 explicit LDummyUse(LOperand* value) {
415 inputs_[0] = value; 415 inputs_[0] = value;
416 } 416 }
417 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 417 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
418 }; 418 };
419 419
420 420
421 class LDeoptimize: public LTemplateInstruction<0, 0, 0> { 421 class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
422 public: 422 public:
423 explicit LDeoptimize(bool soft_deopt = false) {
424 soft_deopt_ = soft_deopt;
425 }
426
427 bool is_soft_deopt() const { return soft_deopt_; }
423 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") 428 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
429
430 private:
431 bool soft_deopt_;
424 }; 432 };
425 433
426 434
427 class LLabel: public LGap { 435 class LLabel: public LGap {
428 public: 436 public:
429 explicit LLabel(HBasicBlock* block) 437 explicit LLabel(HBasicBlock* block)
430 : LGap(block), replacement_(NULL) { } 438 : LGap(block), replacement_(NULL) { }
431 439
432 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 440 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
433 DECLARE_CONCRETE_INSTRUCTION(Label, "label") 441 DECLARE_CONCRETE_INSTRUCTION(Label, "label")
(...skipping 2553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2987 2995
2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2996 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2989 }; 2997 };
2990 2998
2991 #undef DECLARE_HYDROGEN_ACCESSOR 2999 #undef DECLARE_HYDROGEN_ACCESSOR
2992 #undef DECLARE_CONCRETE_INSTRUCTION 3000 #undef DECLARE_CONCRETE_INSTRUCTION
2993 3001
2994 } } // namespace v8::internal 3002 } } // namespace v8::internal
2995 3003
2996 #endif // V8_IA32_LITHIUM_IA32_H_ 3004 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698