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

Side by Side Diff: src/ic/ic.h

Issue 898983002: Add strong mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
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/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 private: 513 private:
514 static void Clear(Isolate* isolate, Address address, Code* target, 514 static void Clear(Isolate* isolate, Address address, Code* target,
515 ConstantPoolArray* constant_pool); 515 ConstantPoolArray* constant_pool);
516 516
517 friend class IC; 517 friend class IC;
518 }; 518 };
519 519
520 520
521 class StoreIC : public IC { 521 class StoreIC : public IC {
522 public: 522 public:
523 STATIC_ASSERT(i::LANGUAGE_END == 2); 523 STATIC_ASSERT(i::LANGUAGE_END == 3);
524 class LanguageModeState : public BitField<LanguageMode, 1, 1> {}; 524 class LanguageModeState : public BitField<LanguageMode, 1, 2> {};
525 static ExtraICState ComputeExtraICState(LanguageMode flag) { 525 static ExtraICState ComputeExtraICState(LanguageMode flag) {
526 return LanguageModeState::encode(flag); 526 return LanguageModeState::encode(flag);
527 } 527 }
528 static LanguageMode GetLanguageMode(ExtraICState state) { 528 static LanguageMode GetLanguageMode(ExtraICState state) {
529 return LanguageModeState::decode(state); 529 return LanguageModeState::decode(state);
530 } 530 }
531 531
532 // For convenience, a statically declared encoding of strict mode extra 532 // For convenience, a statically declared encoding of strict mode extra
533 // IC state. 533 // IC state.
534 static const ExtraICState kStrictModeState = STRICT 534 static const ExtraICState kStrictModeState = STRICT
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 // Support functions for interceptor handlers. 771 // Support functions for interceptor handlers.
772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
776 } 776 }
777 } // namespace v8::internal 777 } // namespace v8::internal
778 778
779 #endif // V8_IC_H_ 779 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698