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

Side by Side Diff: src/lithium.h

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: tweak heuristic Created 7 years, 6 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
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/lithium.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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // that do not correspond to an OSR entry. 616 // that do not correspond to an OSR entry.
617 LOperand** spilled_registers_; 617 LOperand** spilled_registers_;
618 LOperand** spilled_double_registers_; 618 LOperand** spilled_double_registers_;
619 619
620 LEnvironment* outer_; 620 LEnvironment* outer_;
621 HEnterInlined* entry_; 621 HEnterInlined* entry_;
622 622
623 Zone* zone_; 623 Zone* zone_;
624 }; 624 };
625 625
626 class LDeoptCounterCell: public ZoneObject {
627 public:
628 LDeoptCounterCell(int id,
629 int max_value,
630 Handle<JSGlobalPropertyCell> cell) : id_(id),
631 max_value_(max_value),
632 cell_(cell) {
633 }
634
635 int id() { return id_; }
636 int max_value() { return max_value_; }
637 Handle<JSGlobalPropertyCell> cell() { return cell_; }
638
639 private:
640 int id_;
641 int max_value_;
642 Handle<JSGlobalPropertyCell> cell_;
643 };
626 644
627 // Iterates over the non-null, non-constant operands in an environment. 645 // Iterates over the non-null, non-constant operands in an environment.
628 class ShallowIterator BASE_EMBEDDED { 646 class ShallowIterator BASE_EMBEDDED {
629 public: 647 public:
630 explicit ShallowIterator(LEnvironment* env) 648 explicit ShallowIterator(LEnvironment* env)
631 : env_(env), 649 : env_(env),
632 limit_(env != NULL ? env->values()->length() : 0), 650 limit_(env != NULL ? env->values()->length() : 0),
633 current_(0) { 651 current_(0) {
634 SkipUninteresting(); 652 SkipUninteresting();
635 } 653 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 enum NumberUntagDMode { 788 enum NumberUntagDMode {
771 NUMBER_CANDIDATE_IS_SMI, 789 NUMBER_CANDIDATE_IS_SMI,
772 NUMBER_CANDIDATE_IS_ANY_TAGGED, 790 NUMBER_CANDIDATE_IS_ANY_TAGGED,
773 NUMBER_CANDIDATE_IS_ANY_TAGGED_CONVERT_HOLE 791 NUMBER_CANDIDATE_IS_ANY_TAGGED_CONVERT_HOLE
774 }; 792 };
775 793
776 794
777 } } // namespace v8::internal 795 } } // namespace v8::internal
778 796
779 #endif // V8_LITHIUM_H_ 797 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698