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

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

Issue 1092353002: [strong] Disallow implicit conversions for binary arithmetic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback 5 Created 5 years, 8 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 friend class IC; 676 friend class IC;
677 }; 677 };
678 678
679 679
680 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 680 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
681 class BinaryOpIC : public IC { 681 class BinaryOpIC : public IC {
682 public: 682 public:
683 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} 683 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {}
684 684
685 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op); 685 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op,
686 LanguageMode language_mode);
686 687
687 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, 688 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site,
688 Handle<Object> left, 689 Handle<Object> left,
689 Handle<Object> right) WARN_UNUSED_RESULT; 690 Handle<Object> right) WARN_UNUSED_RESULT;
690 }; 691 };
691 692
692 693
693 class CompareIC : public IC { 694 class CompareIC : public IC {
694 public: 695 public:
695 CompareIC(Isolate* isolate, Token::Value op) 696 CompareIC(Isolate* isolate, Token::Value op)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 766
766 // Support functions for interceptor handlers. 767 // Support functions for interceptor handlers.
767 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
769 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
770 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
771 } 772 }
772 } // namespace v8::internal 773 } // namespace v8::internal
773 774
774 #endif // V8_IC_H_ 775 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic/ic.cc » ('j') | src/ic/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698