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

Side by Side Diff: src/code-stubs.h

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 945
946 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } 946 Code::Kind GetCodeKind() const override { return Code::CALL_IC; }
947 947
948 InlineCacheState GetICState() const override { return GENERIC; } 948 InlineCacheState GetICState() const override { return GENERIC; }
949 949
950 ExtraICState GetExtraICState() const final { 950 ExtraICState GetExtraICState() const final {
951 return static_cast<ExtraICState>(minor_key_); 951 return static_cast<ExtraICState>(minor_key_);
952 } 952 }
953 953
954 protected: 954 protected:
955 int arg_count() const { return state().argc(); } 955 int arg_count() const { return state().argc(); }
rmcilroy 2016/02/12 14:21:03 Add a DCHECK(!argc_in_register())
mythria 2016/02/17 11:02:47 Done.
956 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } 956 ConvertReceiverMode convert_mode() const { return state().convert_mode(); }
957 TailCallMode tail_call_mode() const { return state().tail_call_mode(); } 957 TailCallMode tail_call_mode() const { return state().tail_call_mode(); }
958 bool argc_in_register() const { return state().argc_in_register(); }
958 959
959 CallICState state() const { 960 CallICState state() const {
960 return CallICState(static_cast<ExtraICState>(minor_key_)); 961 return CallICState(static_cast<ExtraICState>(minor_key_));
961 } 962 }
962 963
963 // Code generation helpers. 964 // Code generation helpers.
964 void GenerateMiss(MacroAssembler* masm); 965 void GenerateMiss(MacroAssembler* masm);
965 void HandleArrayCase(MacroAssembler* masm, Label* miss); 966 void HandleArrayCase(MacroAssembler* masm, Label* miss);
966 967
967 private: 968 private:
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 #undef DEFINE_HYDROGEN_CODE_STUB 2998 #undef DEFINE_HYDROGEN_CODE_STUB
2998 #undef DEFINE_CODE_STUB 2999 #undef DEFINE_CODE_STUB
2999 #undef DEFINE_CODE_STUB_BASE 3000 #undef DEFINE_CODE_STUB_BASE
3000 3001
3001 extern Representation RepresentationFromType(Type* type); 3002 extern Representation RepresentationFromType(Type* type);
3002 3003
3003 } // namespace internal 3004 } // namespace internal
3004 } // namespace v8 3005 } // namespace v8
3005 3006
3006 #endif // V8_CODE_STUBS_H_ 3007 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698