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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 14146005: Track representations of fields (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test for tracking fields Created 7 years, 7 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 LConstantOperand* constant_parameter_count() { 1482 LConstantOperand* constant_parameter_count() {
1483 ASSERT(has_constant_parameter_count()); 1483 ASSERT(has_constant_parameter_count());
1484 return LConstantOperand::cast(parameter_count()); 1484 return LConstantOperand::cast(parameter_count());
1485 } 1485 }
1486 LOperand* parameter_count() { return inputs_[2]; } 1486 LOperand* parameter_count() { return inputs_[2]; }
1487 1487
1488 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1488 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1489 }; 1489 };
1490 1490
1491 1491
1492 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1492 class LLoadNamedField: public LTemplateInstruction<1, 1, 1> {
1493 public: 1493 public:
1494 explicit LLoadNamedField(LOperand* object) { 1494 explicit LLoadNamedField(LOperand* object, LOperand* temp) {
1495 inputs_[0] = object; 1495 inputs_[0] = object;
1496 temps_[0] = temp;
1496 } 1497 }
1497 1498
1498 LOperand* object() { return inputs_[0]; } 1499 LOperand* object() { return inputs_[0]; }
1500 LOperand* temp() { return temps_[0]; }
1499 1501
1500 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1502 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1501 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1503 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1502 }; 1504 };
1503 1505
1504 1506
1505 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> { 1507 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> {
1506 public: 1508 public:
1507 LLoadNamedFieldPolymorphic(LOperand* context, LOperand* object) { 1509 LLoadNamedFieldPolymorphic(LOperand* context, LOperand* object) {
1508 inputs_[0] = context; 1510 inputs_[0] = context;
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 2202
2201 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2203 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2202 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2204 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2203 2205
2204 virtual void PrintDataTo(StringStream* stream); 2206 virtual void PrintDataTo(StringStream* stream);
2205 2207
2206 Handle<Object> name() const { return hydrogen()->name(); } 2208 Handle<Object> name() const { return hydrogen()->name(); }
2207 bool is_in_object() { return hydrogen()->is_in_object(); } 2209 bool is_in_object() { return hydrogen()->is_in_object(); }
2208 int offset() { return hydrogen()->offset(); } 2210 int offset() { return hydrogen()->offset(); }
2209 Handle<Map> transition() const { return hydrogen()->transition(); } 2211 Handle<Map> transition() const { return hydrogen()->transition(); }
2212 Representation representation() const {
2213 return hydrogen()->field_representation();
2214 }
2210 }; 2215 };
2211 2216
2212 2217
2213 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> { 2218 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
2214 public: 2219 public:
2215 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { 2220 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) {
2216 inputs_[0] = context; 2221 inputs_[0] = context;
2217 inputs_[1] = object; 2222 inputs_[1] = object;
2218 inputs_[2] = value; 2223 inputs_[2] = value;
2219 } 2224 }
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
2987 2992
2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2993 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2989 }; 2994 };
2990 2995
2991 #undef DECLARE_HYDROGEN_ACCESSOR 2996 #undef DECLARE_HYDROGEN_ACCESSOR
2992 #undef DECLARE_CONCRETE_INSTRUCTION 2997 #undef DECLARE_CONCRETE_INSTRUCTION
2993 2998
2994 } } // namespace v8::internal 2999 } } // namespace v8::internal
2995 3000
2996 #endif // V8_IA32_LITHIUM_IA32_H_ 3001 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698