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

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

Issue 1333843002: [runtime] Move binary operator fallbacks into the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: No need for frame states in bytecode handlers. Add test case. Created 5 years, 3 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 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 friend class IC; 612 friend class IC;
613 }; 613 };
614 614
615 615
616 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 616 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
617 class BinaryOpIC : public IC { 617 class BinaryOpIC : public IC {
618 public: 618 public:
619 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} 619 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {}
620 620
621 static int TokenToContextIndex(Token::Value op, Strength strength);
622
623 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, 621 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site,
624 Handle<Object> left, 622 Handle<Object> left,
625 Handle<Object> right) WARN_UNUSED_RESULT; 623 Handle<Object> right) WARN_UNUSED_RESULT;
626 }; 624 };
627 625
628 626
629 class CompareIC : public IC { 627 class CompareIC : public IC {
630 public: 628 public:
631 CompareIC(Isolate* isolate, Token::Value op) 629 CompareIC(Isolate* isolate, Token::Value op)
632 : IC(EXTRA_CALL_FRAME, isolate), op_(op) {} 630 : IC(EXTRA_CALL_FRAME, isolate), op_(op) {}
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 681
684 682
685 // Helper for BinaryOpIC and CompareIC. 683 // Helper for BinaryOpIC and CompareIC.
686 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 684 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
687 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 685 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
688 686
689 } 687 }
690 } // namespace v8::internal 688 } // namespace v8::internal
691 689
692 #endif // V8_IC_H_ 690 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698