OLD | NEW |
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 5684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5695 } | 5695 } |
5696 | 5696 |
5697 // Maximum depth and total number of elements and properties for literal | 5697 // Maximum depth and total number of elements and properties for literal |
5698 // graphs to be considered for fast deep-copying. | 5698 // graphs to be considered for fast deep-copying. |
5699 static const int kMaxLiteralDepth = 3; | 5699 static const int kMaxLiteralDepth = 3; |
5700 static const int kMaxLiteralProperties = 8; | 5700 static const int kMaxLiteralProperties = 8; |
5701 | 5701 |
5702 HValue* context() { return OperandAt(0); } | 5702 HValue* context() { return OperandAt(0); } |
5703 Handle<JSObject> boilerplate() const { return boilerplate_; } | 5703 Handle<JSObject> boilerplate() const { return boilerplate_; } |
5704 int total_size() const { return total_size_; } | 5704 int total_size() const { return total_size_; } |
5705 | |
5706 virtual Representation RequiredInputRepresentation(int index) { | 5705 virtual Representation RequiredInputRepresentation(int index) { |
5707 return Representation::Tagged(); | 5706 return Representation::Tagged(); |
5708 } | 5707 } |
5709 virtual Handle<Map> GetMonomorphicJSObjectMap() { | 5708 virtual Handle<Map> GetMonomorphicJSObjectMap() { |
5710 return Handle<Map>(boilerplate()->map()); | 5709 return Handle<Map>(boilerplate()->map()); |
5711 } | 5710 } |
5712 virtual HType CalculateInferredType(); | 5711 virtual HType CalculateInferredType(); |
5713 | 5712 |
5714 DECLARE_CONCRETE_INSTRUCTION(FastLiteral) | 5713 DECLARE_CONCRETE_INSTRUCTION(FastLiteral) |
5715 | 5714 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6163 virtual bool IsDeletable() const { return true; } | 6162 virtual bool IsDeletable() const { return true; } |
6164 }; | 6163 }; |
6165 | 6164 |
6166 | 6165 |
6167 #undef DECLARE_INSTRUCTION | 6166 #undef DECLARE_INSTRUCTION |
6168 #undef DECLARE_CONCRETE_INSTRUCTION | 6167 #undef DECLARE_CONCRETE_INSTRUCTION |
6169 | 6168 |
6170 } } // namespace v8::internal | 6169 } } // namespace v8::internal |
6171 | 6170 |
6172 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6171 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |