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

Side by Side Diff: src/hydrogen-instructions.h

Issue 8277031: Give uses within a loop a greater weight when doing representation inference. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 HValue() : block_(NULL), 549 HValue() : block_(NULL),
550 id_(kNoNumber), 550 id_(kNoNumber),
551 type_(HType::Tagged()), 551 type_(HType::Tagged()),
552 use_list_(NULL), 552 use_list_(NULL),
553 range_(NULL), 553 range_(NULL),
554 flags_(0) {} 554 flags_(0) {}
555 virtual ~HValue() {} 555 virtual ~HValue() {}
556 556
557 HBasicBlock* block() const { return block_; } 557 HBasicBlock* block() const { return block_; }
558 void SetBlock(HBasicBlock* block); 558 void SetBlock(HBasicBlock* block);
559 int LoopWeight() const;
559 560
560 int id() const { return id_; } 561 int id() const { return id_; }
561 void set_id(int id) { id_ = id; } 562 void set_id(int id) { id_ = id; }
562 563
563 HUseIterator uses() const { return HUseIterator(use_list_); } 564 HUseIterator uses() const { return HUseIterator(use_list_); }
564 565
565 virtual bool EmitAtUses() { return false; } 566 virtual bool EmitAtUses() { return false; }
566 Representation representation() const { return representation_; } 567 Representation representation() const { return representation_; }
567 void ChangeRepresentation(Representation r) { 568 void ChangeRepresentation(Representation r) {
568 // Representation was already set and is allowed to be changed. 569 // Representation was already set and is allowed to be changed.
(...skipping 3679 matching lines...) Expand 10 before | Expand all | Expand 10 after
4248 4249
4249 DECLARE_CONCRETE_INSTRUCTION(In) 4250 DECLARE_CONCRETE_INSTRUCTION(In)
4250 }; 4251 };
4251 4252
4252 #undef DECLARE_INSTRUCTION 4253 #undef DECLARE_INSTRUCTION
4253 #undef DECLARE_CONCRETE_INSTRUCTION 4254 #undef DECLARE_CONCRETE_INSTRUCTION
4254 4255
4255 } } // namespace v8::internal 4256 } } // namespace v8::internal
4256 4257
4257 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4258 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698