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

Side by Side Diff: src/ic.h

Issue 338963003: KeyedLoadIC should have same register spec as LoadIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comment response. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/x64/builtins-x64.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/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 }; 499 };
500 500
501 501
502 class KeyedLoadIC: public LoadIC { 502 class KeyedLoadIC: public LoadIC {
503 public: 503 public:
504 explicit KeyedLoadIC(FrameDepth depth, Isolate* isolate) 504 explicit KeyedLoadIC(FrameDepth depth, Isolate* isolate)
505 : LoadIC(depth, isolate) { 505 : LoadIC(depth, isolate) {
506 ASSERT(target()->is_keyed_load_stub()); 506 ASSERT(target()->is_keyed_load_stub());
507 } 507 }
508 508
509 static const Register ReceiverRegister();
510 static const Register NameRegister();
511
512 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, 509 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object,
513 Handle<Object> key); 510 Handle<Object> key);
514 511
515 // Code generator routines. 512 // Code generator routines.
516 static void GenerateMiss(MacroAssembler* masm); 513 static void GenerateMiss(MacroAssembler* masm);
517 static void GenerateRuntimeGetProperty(MacroAssembler* masm); 514 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
518 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 515 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
519 static void GeneratePreMonomorphic(MacroAssembler* masm) { 516 static void GeneratePreMonomorphic(MacroAssembler* masm) {
520 GenerateMiss(masm); 517 GenerateMiss(masm);
521 } 518 }
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); 1022 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss);
1026 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); 1023 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss);
1027 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); 1024 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite);
1028 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); 1025 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss);
1029 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); 1026 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss);
1030 1027
1031 1028
1032 } } // namespace v8::internal 1029 } } // namespace v8::internal
1033 1030
1034 #endif // V8_IC_H_ 1031 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698