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

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

Issue 147763006: Support loads from primitive values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/ic.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 4251 matching lines...) Expand 10 before | Expand all | Expand 10 after
4262 DECLARE_INSTRUCTION_FACTORY_P1(HIsStringAndBranch, HValue*); 4262 DECLARE_INSTRUCTION_FACTORY_P1(HIsStringAndBranch, HValue*);
4263 DECLARE_INSTRUCTION_FACTORY_P3(HIsStringAndBranch, HValue*, 4263 DECLARE_INSTRUCTION_FACTORY_P3(HIsStringAndBranch, HValue*,
4264 HBasicBlock*, HBasicBlock*); 4264 HBasicBlock*, HBasicBlock*);
4265 4265
4266 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 4266 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
4267 return Representation::Tagged(); 4267 return Representation::Tagged();
4268 } 4268 }
4269 4269
4270 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch) 4270 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch)
4271 4271
4272 protected:
4273 virtual int RedefinedOperandIndex() { return 0; }
4274
4272 private: 4275 private:
4273 HIsStringAndBranch(HValue* value, 4276 HIsStringAndBranch(HValue* value,
4274 HBasicBlock* true_target = NULL, 4277 HBasicBlock* true_target = NULL,
4275 HBasicBlock* false_target = NULL) 4278 HBasicBlock* false_target = NULL)
4276 : HUnaryControlInstruction(value, true_target, false_target) {} 4279 : HUnaryControlInstruction(value, true_target, false_target) {}
4277 }; 4280 };
4278 4281
4279 4282
4280 class HIsSmiAndBranch V8_FINAL : public HUnaryControlInstruction { 4283 class HIsSmiAndBranch V8_FINAL : public HUnaryControlInstruction {
4281 public: 4284 public:
4282 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*); 4285 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*);
4283 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*, 4286 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*,
4284 HBasicBlock*, HBasicBlock*); 4287 HBasicBlock*, HBasicBlock*);
4285 4288
4286 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch) 4289 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch)
4287 4290
4288 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 4291 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
4289 return Representation::Tagged(); 4292 return Representation::Tagged();
4290 } 4293 }
4291 4294
4292 protected: 4295 protected:
4293 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } 4296 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; }
4297 virtual int RedefinedOperandIndex() { return 0; }
4294 4298
4295 private: 4299 private:
4296 HIsSmiAndBranch(HValue* value, 4300 HIsSmiAndBranch(HValue* value,
4297 HBasicBlock* true_target = NULL, 4301 HBasicBlock* true_target = NULL,
4298 HBasicBlock* false_target = NULL) 4302 HBasicBlock* false_target = NULL)
4299 : HUnaryControlInstruction(value, true_target, false_target) {} 4303 : HUnaryControlInstruction(value, true_target, false_target) {}
4300 }; 4304 };
4301 4305
4302 4306
4303 class HIsUndetectableAndBranch V8_FINAL : public HUnaryControlInstruction { 4307 class HIsUndetectableAndBranch V8_FINAL : public HUnaryControlInstruction {
(...skipping 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after
7406 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7410 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7407 }; 7411 };
7408 7412
7409 7413
7410 #undef DECLARE_INSTRUCTION 7414 #undef DECLARE_INSTRUCTION
7411 #undef DECLARE_CONCRETE_INSTRUCTION 7415 #undef DECLARE_CONCRETE_INSTRUCTION
7412 7416
7413 } } // namespace v8::internal 7417 } } // namespace v8::internal
7414 7418
7415 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7419 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698