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 11338030: Improve handling of property loads on the proto chain. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added unit test Created 8 years, 1 month 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/hydrogen-instructions.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 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698