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

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

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased version. Created 9 years, 1 month 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 3292 matching lines...) Expand 10 before | Expand all | Expand 10 after
3303 PropertyDetails details_; 3303 PropertyDetails details_;
3304 }; 3304 };
3305 3305
3306 3306
3307 class HStoreGlobalGeneric: public HTemplateInstruction<3> { 3307 class HStoreGlobalGeneric: public HTemplateInstruction<3> {
3308 public: 3308 public:
3309 HStoreGlobalGeneric(HValue* context, 3309 HStoreGlobalGeneric(HValue* context,
3310 HValue* global_object, 3310 HValue* global_object,
3311 Handle<Object> name, 3311 Handle<Object> name,
3312 HValue* value, 3312 HValue* value,
3313 bool strict_mode) 3313 StrictModeFlag strict_mode_flag)
3314 : name_(name), 3314 : name_(name),
3315 strict_mode_(strict_mode) { 3315 strict_mode_flag_(strict_mode_flag) {
3316 SetOperandAt(0, context); 3316 SetOperandAt(0, context);
3317 SetOperandAt(1, global_object); 3317 SetOperandAt(1, global_object);
3318 SetOperandAt(2, value); 3318 SetOperandAt(2, value);
3319 set_representation(Representation::Tagged()); 3319 set_representation(Representation::Tagged());
3320 SetAllSideEffects(); 3320 SetAllSideEffects();
3321 } 3321 }
3322 3322
3323 HValue* context() { return OperandAt(0); } 3323 HValue* context() { return OperandAt(0); }
3324 HValue* global_object() { return OperandAt(1); } 3324 HValue* global_object() { return OperandAt(1); }
3325 Handle<Object> name() const { return name_; } 3325 Handle<Object> name() const { return name_; }
3326 HValue* value() { return OperandAt(2); } 3326 HValue* value() { return OperandAt(2); }
3327 bool strict_mode() { return strict_mode_; } 3327 StrictModeFlag strict_mode_flag() { return strict_mode_flag_; }
3328 3328
3329 virtual void PrintDataTo(StringStream* stream); 3329 virtual void PrintDataTo(StringStream* stream);
3330 3330
3331 virtual Representation RequiredInputRepresentation(int index) { 3331 virtual Representation RequiredInputRepresentation(int index) {
3332 return Representation::Tagged(); 3332 return Representation::Tagged();
3333 } 3333 }
3334 3334
3335 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric) 3335 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric)
3336 3336
3337 private: 3337 private:
3338 Handle<Object> name_; 3338 Handle<Object> name_;
3339 bool strict_mode_; 3339 StrictModeFlag strict_mode_flag_;
3340 }; 3340 };
3341 3341
3342 3342
3343 class HLoadContextSlot: public HUnaryOperation { 3343 class HLoadContextSlot: public HUnaryOperation {
3344 public: 3344 public:
3345 HLoadContextSlot(HValue* context , int slot_index) 3345 HLoadContextSlot(HValue* context , int slot_index)
3346 : HUnaryOperation(context), slot_index_(slot_index) { 3346 : HUnaryOperation(context), slot_index_(slot_index) {
3347 set_representation(Representation::Tagged()); 3347 set_representation(Representation::Tagged());
3348 SetFlag(kUseGVN); 3348 SetFlag(kUseGVN);
3349 SetFlag(kDependsOnContextSlots); 3349 SetFlag(kDependsOnContextSlots);
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
3859 ElementsKind elements_kind_; 3859 ElementsKind elements_kind_;
3860 }; 3860 };
3861 3861
3862 3862
3863 class HStoreKeyedGeneric: public HTemplateInstruction<4> { 3863 class HStoreKeyedGeneric: public HTemplateInstruction<4> {
3864 public: 3864 public:
3865 HStoreKeyedGeneric(HValue* context, 3865 HStoreKeyedGeneric(HValue* context,
3866 HValue* object, 3866 HValue* object,
3867 HValue* key, 3867 HValue* key,
3868 HValue* value, 3868 HValue* value,
3869 bool strict_mode) 3869 StrictModeFlag strict_mode_flag)
3870 : strict_mode_(strict_mode) { 3870 : strict_mode_flag_(strict_mode_flag) {
3871 SetOperandAt(0, object); 3871 SetOperandAt(0, object);
3872 SetOperandAt(1, key); 3872 SetOperandAt(1, key);
3873 SetOperandAt(2, value); 3873 SetOperandAt(2, value);
3874 SetOperandAt(3, context); 3874 SetOperandAt(3, context);
3875 SetAllSideEffects(); 3875 SetAllSideEffects();
3876 } 3876 }
3877 3877
3878 HValue* object() { return OperandAt(0); } 3878 HValue* object() { return OperandAt(0); }
3879 HValue* key() { return OperandAt(1); } 3879 HValue* key() { return OperandAt(1); }
3880 HValue* value() { return OperandAt(2); } 3880 HValue* value() { return OperandAt(2); }
3881 HValue* context() { return OperandAt(3); } 3881 HValue* context() { return OperandAt(3); }
3882 bool strict_mode() { return strict_mode_; } 3882 StrictModeFlag strict_mode_flag() { return strict_mode_flag_; }
3883 3883
3884 virtual Representation RequiredInputRepresentation(int index) { 3884 virtual Representation RequiredInputRepresentation(int index) {
3885 return Representation::Tagged(); 3885 return Representation::Tagged();
3886 } 3886 }
3887 3887
3888 virtual void PrintDataTo(StringStream* stream); 3888 virtual void PrintDataTo(StringStream* stream);
3889 3889
3890 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric) 3890 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric)
3891 3891
3892 private: 3892 private:
3893 bool strict_mode_; 3893 StrictModeFlag strict_mode_flag_;
3894 }; 3894 };
3895 3895
3896 3896
3897 class HTransitionElementsKind: public HTemplateInstruction<1> { 3897 class HTransitionElementsKind: public HTemplateInstruction<1> {
3898 public: 3898 public:
3899 HTransitionElementsKind(HValue* object, 3899 HTransitionElementsKind(HValue* object,
3900 Handle<Map> original_map, 3900 Handle<Map> original_map,
3901 Handle<Map> transitioned_map) 3901 Handle<Map> transitioned_map)
3902 : original_map_(original_map), 3902 : original_map_(original_map),
3903 transitioned_map_(transitioned_map) { 3903 transitioned_map_(transitioned_map) {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
4285 4285
4286 DECLARE_CONCRETE_INSTRUCTION(In) 4286 DECLARE_CONCRETE_INSTRUCTION(In)
4287 }; 4287 };
4288 4288
4289 #undef DECLARE_INSTRUCTION 4289 #undef DECLARE_INSTRUCTION
4290 #undef DECLARE_CONCRETE_INSTRUCTION 4290 #undef DECLARE_CONCRETE_INSTRUCTION
4291 4291
4292 } } // namespace v8::internal 4292 } } // namespace v8::internal
4293 4293
4294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698