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

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

Issue 9704012: Improve representation inference for HUnknownOSRValue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: revert flag-definitions.h Created 8 years, 9 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/hydrogen.cc ('k') | src/hydrogen-instructions.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 3405 matching lines...) Expand 10 before | Expand all | Expand 10 after
3416 DECLARE_CONCRETE_INSTRUCTION(CallStub) 3416 DECLARE_CONCRETE_INSTRUCTION(CallStub)
3417 3417
3418 private: 3418 private:
3419 CodeStub::Major major_key_; 3419 CodeStub::Major major_key_;
3420 TranscendentalCache::Type transcendental_type_; 3420 TranscendentalCache::Type transcendental_type_;
3421 }; 3421 };
3422 3422
3423 3423
3424 class HUnknownOSRValue: public HTemplateInstruction<0> { 3424 class HUnknownOSRValue: public HTemplateInstruction<0> {
3425 public: 3425 public:
3426 HUnknownOSRValue() { set_representation(Representation::Tagged()); } 3426 HUnknownOSRValue()
3427 : incoming_value_(NULL) {
3428 set_representation(Representation::Tagged());
3429 }
3427 3430
3428 virtual Representation RequiredInputRepresentation(int index) { 3431 virtual Representation RequiredInputRepresentation(int index) {
3429 return Representation::None(); 3432 return Representation::None();
3430 } 3433 }
3431 3434
3435 void set_incoming_value(HPhi* value) {
3436 incoming_value_ = value;
3437 }
3438
3439 HPhi* incoming_value() {
3440 return incoming_value_;
3441 }
3442
3432 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue) 3443 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue)
3444
3445 private:
3446 HPhi* incoming_value_;
3433 }; 3447 };
3434 3448
3435 3449
3436 class HLoadGlobalCell: public HTemplateInstruction<0> { 3450 class HLoadGlobalCell: public HTemplateInstruction<0> {
3437 public: 3451 public:
3438 HLoadGlobalCell(Handle<JSGlobalPropertyCell> cell, PropertyDetails details) 3452 HLoadGlobalCell(Handle<JSGlobalPropertyCell> cell, PropertyDetails details)
3439 : cell_(cell), details_(details) { 3453 : cell_(cell), details_(details) {
3440 set_representation(Representation::Tagged()); 3454 set_representation(Representation::Tagged());
3441 SetFlag(kUseGVN); 3455 SetFlag(kUseGVN);
3442 SetGVNFlag(kDependsOnGlobalVars); 3456 SetGVNFlag(kDependsOnGlobalVars);
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
4807 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 4821 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
4808 }; 4822 };
4809 4823
4810 4824
4811 #undef DECLARE_INSTRUCTION 4825 #undef DECLARE_INSTRUCTION
4812 #undef DECLARE_CONCRETE_INSTRUCTION 4826 #undef DECLARE_CONCRETE_INSTRUCTION
4813 4827
4814 } } // namespace v8::internal 4828 } } // namespace v8::internal
4815 4829
4816 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4830 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698