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

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

Issue 1316943002: Move (uppercase) JS builtins from js builtins object to native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove Isolate::js_builtins_object 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/ic.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_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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 603
604 friend class IC; 604 friend class IC;
605 }; 605 };
606 606
607 607
608 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 608 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
609 class BinaryOpIC : public IC { 609 class BinaryOpIC : public IC {
610 public: 610 public:
611 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} 611 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {}
612 612
613 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op, 613 static int TokenToContextIndex(Token::Value op, Strength strength);
614 Strength strength);
615 614
616 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, 615 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site,
617 Handle<Object> left, 616 Handle<Object> left,
618 Handle<Object> right) WARN_UNUSED_RESULT; 617 Handle<Object> right) WARN_UNUSED_RESULT;
619 }; 618 };
620 619
621 620
622 class CompareIC : public IC { 621 class CompareIC : public IC {
623 public: 622 public:
624 CompareIC(Isolate* isolate, Token::Value op) 623 CompareIC(Isolate* isolate, Token::Value op)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 675
677 676
678 // Helper for BinaryOpIC and CompareIC. 677 // Helper for BinaryOpIC and CompareIC.
679 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
680 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
681 680
682 } 681 }
683 } // namespace v8::internal 682 } // namespace v8::internal
684 683
685 #endif // V8_IC_H_ 684 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698