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

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

Issue 16240003: Improve smi support in crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')
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 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 2442
2443 private: 2443 private:
2444 virtual bool IsDeletable() const { return true; } 2444 virtual bool IsDeletable() const { return true; }
2445 }; 2445 };
2446 2446
2447 2447
2448 class HMapEnumLength: public HUnaryOperation { 2448 class HMapEnumLength: public HUnaryOperation {
2449 public: 2449 public:
2450 explicit HMapEnumLength(HValue* value) : HUnaryOperation(value) { 2450 explicit HMapEnumLength(HValue* value) : HUnaryOperation(value) {
2451 set_type(HType::Smi()); 2451 set_type(HType::Smi());
2452 set_representation(Representation::Tagged()); 2452 set_representation(Representation::Smi());
2453 SetFlag(kUseGVN); 2453 SetFlag(kUseGVN);
2454 SetGVNFlag(kDependsOnMaps); 2454 SetGVNFlag(kDependsOnMaps);
2455 } 2455 }
2456 2456
2457 virtual Representation RequiredInputRepresentation(int index) { 2457 virtual Representation RequiredInputRepresentation(int index) {
2458 return Representation::Tagged(); 2458 return Representation::Tagged();
2459 } 2459 }
2460 2460
2461 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength) 2461 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength)
2462 2462
(...skipping 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after
6500 virtual bool IsDeletable() const { return true; } 6500 virtual bool IsDeletable() const { return true; }
6501 }; 6501 };
6502 6502
6503 6503
6504 #undef DECLARE_INSTRUCTION 6504 #undef DECLARE_INSTRUCTION
6505 #undef DECLARE_CONCRETE_INSTRUCTION 6505 #undef DECLARE_CONCRETE_INSTRUCTION
6506 6506
6507 } } // namespace v8::internal 6507 } } // namespace v8::internal
6508 6508
6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698