| 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 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2373 | 2373 |
| 2374 | 2374 |
| 2375 class HCheckPrototypeMaps: public HTemplateInstruction<0> { | 2375 class HCheckPrototypeMaps: public HTemplateInstruction<0> { |
| 2376 public: | 2376 public: |
| 2377 HCheckPrototypeMaps(Handle<JSObject> prototype, Handle<JSObject> holder) | 2377 HCheckPrototypeMaps(Handle<JSObject> prototype, Handle<JSObject> holder) |
| 2378 : prototype_(prototype), holder_(holder) { | 2378 : prototype_(prototype), holder_(holder) { |
| 2379 SetFlag(kUseGVN); | 2379 SetFlag(kUseGVN); |
| 2380 SetGVNFlag(kDependsOnMaps); | 2380 SetGVNFlag(kDependsOnMaps); |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 #ifdef DEBUG | |
| 2384 virtual void Verify(); | |
| 2385 #endif | |
| 2386 | |
| 2387 Handle<JSObject> prototype() const { return prototype_; } | 2383 Handle<JSObject> prototype() const { return prototype_; } |
| 2388 Handle<JSObject> holder() const { return holder_; } | 2384 Handle<JSObject> holder() const { return holder_; } |
| 2389 | 2385 |
| 2390 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps) | 2386 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps) |
| 2391 | 2387 |
| 2392 virtual Representation RequiredInputRepresentation(int index) { | 2388 virtual Representation RequiredInputRepresentation(int index) { |
| 2393 return Representation::None(); | 2389 return Representation::None(); |
| 2394 } | 2390 } |
| 2395 | 2391 |
| 2396 virtual void PrintDataTo(StringStream* stream); | 2392 virtual void PrintDataTo(StringStream* stream); |
| (...skipping 3017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5414 virtual bool IsDeletable() const { return true; } | 5410 virtual bool IsDeletable() const { return true; } |
| 5415 }; | 5411 }; |
| 5416 | 5412 |
| 5417 | 5413 |
| 5418 #undef DECLARE_INSTRUCTION | 5414 #undef DECLARE_INSTRUCTION |
| 5419 #undef DECLARE_CONCRETE_INSTRUCTION | 5415 #undef DECLARE_CONCRETE_INSTRUCTION |
| 5420 | 5416 |
| 5421 } } // namespace v8::internal | 5417 } } // namespace v8::internal |
| 5422 | 5418 |
| 5423 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5419 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |