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

Side by Side Diff: src/code-stubs.h

Issue 385073007: Revert "Use the same registers for StoreIC and KeyedStoreIC." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/arm64/stub-cache-arm64.cc ('k') | src/code-stubs.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 ElementsKind from_kind() const { return from_kind_; } 2448 ElementsKind from_kind() const { return from_kind_; }
2449 ElementsKind to_kind() const { return to_kind_; } 2449 ElementsKind to_kind() const { return to_kind_; }
2450 bool is_jsarray() const { return is_jsarray_; } 2450 bool is_jsarray() const { return is_jsarray_; }
2451 KeyedAccessStoreMode store_mode() const { return store_mode_; } 2451 KeyedAccessStoreMode store_mode() const { return store_mode_; }
2452 2452
2453 virtual Handle<Code> GenerateCode() V8_OVERRIDE; 2453 virtual Handle<Code> GenerateCode() V8_OVERRIDE;
2454 2454
2455 virtual void InitializeInterfaceDescriptor( 2455 virtual void InitializeInterfaceDescriptor(
2456 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; 2456 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE;
2457 2457
2458 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
2459 enum RegisterInfo {
2460 kValueIndex,
2461 kMapIndex,
2462 kKeyIndex,
2463 kObjectIndex,
2464 kRegisterArgumentCount
2465 };
2466
2467 static const Register ValueRegister() {
2468 return KeyedStoreIC::ValueRegister();
2469 }
2470 static const Register MapRegister() { return KeyedStoreIC::MapRegister(); }
2471 static const Register KeyRegister() { return KeyedStoreIC::NameRegister(); }
2472 static const Register ObjectRegister() {
2473 return KeyedStoreIC::ReceiverRegister();
2474 }
2475
2476 private: 2458 private:
2477 class FromBits: public BitField<ElementsKind, 0, 8> {}; 2459 class FromBits: public BitField<ElementsKind, 0, 8> {};
2478 class ToBits: public BitField<ElementsKind, 8, 8> {}; 2460 class ToBits: public BitField<ElementsKind, 8, 8> {};
2479 class IsJSArrayBits: public BitField<bool, 16, 1> {}; 2461 class IsJSArrayBits: public BitField<bool, 16, 1> {};
2480 class StoreModeBits: public BitField<KeyedAccessStoreMode, 17, 4> {}; 2462 class StoreModeBits: public BitField<KeyedAccessStoreMode, 17, 4> {};
2481 2463
2482 Major MajorKey() const { return ElementsTransitionAndStore; } 2464 Major MajorKey() const { return ElementsTransitionAndStore; }
2483 int NotMissMinorKey() const { 2465 int NotMissMinorKey() const {
2484 return FromBits::encode(from_kind_) | 2466 return FromBits::encode(from_kind_) |
2485 ToBits::encode(to_kind_) | 2467 ToBits::encode(to_kind_) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2540
2559 2541
2560 class CallDescriptors { 2542 class CallDescriptors {
2561 public: 2543 public:
2562 static void InitializeForIsolate(Isolate* isolate); 2544 static void InitializeForIsolate(Isolate* isolate);
2563 }; 2545 };
2564 2546
2565 } } // namespace v8::internal 2547 } } // namespace v8::internal
2566 2548
2567 #endif // V8_CODE_STUBS_H_ 2549 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698