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

Side by Side Diff: src/ic.h

Issue 7112010: Plumbing changes to merge various element kind implementaions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback 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
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.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 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 347 static const int kMaxKeyedPolymorphism = 4;
348 348
349 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 349 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
350 bool is_js_array) = 0; 350 bool is_js_array) = 0;
351 351
352 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck( 352 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck(
353 ExternalArrayType array_type) = 0; 353 JSObject::ElementsKind elements_kind) = 0;
354 354
355 protected: 355 protected:
356 virtual Code* string_stub() { 356 virtual Code* string_stub() {
357 return NULL; 357 return NULL;
358 } 358 }
359 359
360 virtual Code::Kind kind() const = 0; 360 virtual Code::Kind kind() const = 0;
361 361
362 virtual String* GetStubNameForCache(IC::State ic_state) = 0; 362 virtual String* GetStubNameForCache(IC::State ic_state) = 0;
363 363
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // generic stub should go into slow case. 415 // generic stub should go into slow case.
416 // Access check is necessary explicitly since generic stub does not perform 416 // Access check is necessary explicitly since generic stub does not perform
417 // map checks. 417 // map checks.
418 static const int kSlowCaseBitFieldMask = 418 static const int kSlowCaseBitFieldMask =
419 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 419 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
420 420
421 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 421 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
422 bool is_js_array); 422 bool is_js_array);
423 423
424 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck( 424 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck(
425 ExternalArrayType array_type); 425 JSObject::ElementsKind elements_kind);
426 426
427 protected: 427 protected:
428 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; } 428 virtual Code::Kind kind() const { return Code::KEYED_LOAD_IC; }
429 429
430 virtual String* GetStubNameForCache(IC::State ic_state); 430 virtual String* GetStubNameForCache(IC::State ic_state);
431 431
432 virtual MaybeObject* ConstructMegamorphicStub( 432 virtual MaybeObject* ConstructMegamorphicStub(
433 MapList* receiver_maps, 433 MapList* receiver_maps,
434 CodeList* targets, 434 CodeList* targets,
435 StrictModeFlag strict_mode); 435 StrictModeFlag strict_mode);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 static void GenerateMiss(MacroAssembler* masm, bool force_generic); 565 static void GenerateMiss(MacroAssembler* masm, bool force_generic);
566 static void GenerateSlow(MacroAssembler* masm); 566 static void GenerateSlow(MacroAssembler* masm);
567 static void GenerateRuntimeSetProperty(MacroAssembler* masm, 567 static void GenerateRuntimeSetProperty(MacroAssembler* masm,
568 StrictModeFlag strict_mode); 568 StrictModeFlag strict_mode);
569 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode); 569 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode);
570 570
571 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 571 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
572 bool is_js_array); 572 bool is_js_array);
573 573
574 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck( 574 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck(
575 ExternalArrayType array_type); 575 JSObject::ElementsKind elements_kind);
576 576
577 protected: 577 protected:
578 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } 578 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; }
579 579
580 virtual String* GetStubNameForCache(IC::State ic_state); 580 virtual String* GetStubNameForCache(IC::State ic_state);
581 581
582 virtual MaybeObject* ConstructMegamorphicStub( 582 virtual MaybeObject* ConstructMegamorphicStub(
583 MapList* receiver_maps, 583 MapList* receiver_maps,
584 CodeList* targets, 584 CodeList* targets,
585 StrictModeFlag strict_mode); 585 StrictModeFlag strict_mode);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 724
725 Token::Value op_; 725 Token::Value op_;
726 }; 726 };
727 727
728 // Helper for BinaryOpIC and CompareIC. 728 // Helper for BinaryOpIC and CompareIC.
729 void PatchInlinedSmiCode(Address address); 729 void PatchInlinedSmiCode(Address address);
730 730
731 } } // namespace v8::internal 731 } } // namespace v8::internal
732 732
733 #endif // V8_IC_H_ 733 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698