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

Side by Side Diff: src/ic.h

Issue 385953004: Enum RegisterInfo renamed to ParameterIndices. (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/code-stubs.cc ('k') | no next file » | 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_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 OStream& operator<<(OStream& os, const CallIC::State& s); 390 OStream& operator<<(OStream& os, const CallIC::State& s);
391 391
392 392
393 class LoadIC: public IC { 393 class LoadIC: public IC {
394 public: 394 public:
395 // ExtraICState bits 395 // ExtraICState bits
396 class ContextualModeBits: public BitField<ContextualMode, 0, 1> {}; 396 class ContextualModeBits: public BitField<ContextualMode, 0, 1> {};
397 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0); 397 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0);
398 398
399 enum RegisterInfo { 399 enum ParameterIndices {
400 kReceiverIndex, 400 kReceiverIndex,
401 kNameIndex, 401 kNameIndex,
402 kRegisterArgumentCount 402 kParameterCount
403 }; 403 };
404 static const Register ReceiverRegister(); 404 static const Register ReceiverRegister();
405 static const Register NameRegister(); 405 static const Register NameRegister();
406 406
407 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { 407 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) {
408 return ContextualModeBits::encode(contextual_mode); 408 return ContextualModeBits::encode(contextual_mode);
409 } 409 }
410 410
411 static ContextualMode GetContextualMode(ExtraICState state) { 411 static ContextualMode GetContextualMode(ExtraICState state) {
412 return ContextualModeBits::decode(state); 412 return ContextualModeBits::decode(state);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 } 576 }
577 static StrictMode GetStrictMode(ExtraICState state) { 577 static StrictMode GetStrictMode(ExtraICState state) {
578 return StrictModeState::decode(state); 578 return StrictModeState::decode(state);
579 } 579 }
580 580
581 // For convenience, a statically declared encoding of strict mode extra 581 // For convenience, a statically declared encoding of strict mode extra
582 // IC state. 582 // IC state.
583 static const ExtraICState kStrictModeState = 583 static const ExtraICState kStrictModeState =
584 1 << StrictModeState::kShift; 584 1 << StrictModeState::kShift;
585 585
586 enum RegisterInfo { 586 enum ParameterIndices {
587 kReceiverIndex, 587 kReceiverIndex,
588 kNameIndex, 588 kNameIndex,
589 kValueIndex, 589 kValueIndex,
590 kRegisterArgumentCount 590 kParameterCount
591 }; 591 };
592 static const Register ReceiverRegister(); 592 static const Register ReceiverRegister();
593 static const Register NameRegister(); 593 static const Register NameRegister();
594 static const Register ValueRegister(); 594 static const Register ValueRegister();
595 595
596 StoreIC(FrameDepth depth, Isolate* isolate) 596 StoreIC(FrameDepth depth, Isolate* isolate)
597 : IC(depth, isolate) { 597 : IC(depth, isolate) {
598 ASSERT(IsStoreStub()); 598 ASSERT(IsStoreStub());
599 } 599 }
600 600
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); 1043 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss);
1044 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); 1044 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss);
1045 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); 1045 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite);
1046 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); 1046 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss);
1047 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); 1047 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss);
1048 1048
1049 1049
1050 } } // namespace v8::internal 1050 } } // namespace v8::internal
1051 1051
1052 #endif // V8_IC_H_ 1052 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698