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

Side by Side Diff: src/ic.h

Issue 7170012: Crankshaft support for polymorphic array handling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments; add implemention for ARM and x64 Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 friend class IC; 338 friend class IC;
339 }; 339 };
340 340
341 341
342 class KeyedIC: public IC { 342 class KeyedIC: public IC {
343 public: 343 public:
344 explicit KeyedIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) {} 344 explicit KeyedIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) {}
345 virtual ~KeyedIC() {} 345 virtual ~KeyedIC() {}
346 346
347 static const int kMaxKeyedPolymorphism = 4;
348
349 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 347 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
350 bool is_js_array) = 0; 348 bool is_js_array) = 0;
351 349
352 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck( 350 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck(
353 JSObject::ElementsKind elements_kind) = 0; 351 JSObject::ElementsKind elements_kind) = 0;
354 352
355 protected: 353 protected:
356 virtual Code* string_stub() { 354 virtual Code* string_stub() {
357 return NULL; 355 return NULL;
358 } 356 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 722
725 Token::Value op_; 723 Token::Value op_;
726 }; 724 };
727 725
728 // Helper for BinaryOpIC and CompareIC. 726 // Helper for BinaryOpIC and CompareIC.
729 void PatchInlinedSmiCode(Address address); 727 void PatchInlinedSmiCode(Address address);
730 728
731 } } // namespace v8::internal 729 } } // namespace v8::internal
732 730
733 #endif // V8_IC_H_ 731 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698