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

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

Issue 898013003: CallIC MISS handler doesn't need receiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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
« no previous file with comments | « src/ia32/code-stubs-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 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 class CallIC : public IC { 342 class CallIC : public IC {
343 public: 343 public:
344 CallIC(Isolate* isolate, CallICNexus* nexus) 344 CallIC(Isolate* isolate, CallICNexus* nexus)
345 : IC(EXTRA_CALL_FRAME, isolate, nexus) { 345 : IC(EXTRA_CALL_FRAME, isolate, nexus) {
346 DCHECK(nexus != NULL); 346 DCHECK(nexus != NULL);
347 } 347 }
348 348
349 void PatchMegamorphic(Handle<Object> function); 349 void PatchMegamorphic(Handle<Object> function);
350 350
351 void HandleMiss(Handle<Object> receiver, Handle<Object> function); 351 void HandleMiss(Handle<Object> function);
352 352
353 // Returns true if a custom handler was installed. 353 // Returns true if a custom handler was installed.
354 bool DoCustomHandler(Handle<Object> receiver, Handle<Object> function, 354 bool DoCustomHandler(Handle<Object> function,
355 const CallICState& callic_state); 355 const CallICState& callic_state);
356 356
357 // Code generator routines. 357 // Code generator routines.
358 static Handle<Code> initialize_stub(Isolate* isolate, int argc, 358 static Handle<Code> initialize_stub(Isolate* isolate, int argc,
359 CallICState::CallType call_type); 359 CallICState::CallType call_type);
360 static Handle<Code> initialize_stub_in_optimized_code( 360 static Handle<Code> initialize_stub_in_optimized_code(
361 Isolate* isolate, int argc, CallICState::CallType call_type); 361 Isolate* isolate, int argc, CallICState::CallType call_type);
362 362
363 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); 363 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus);
364 }; 364 };
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 // Support functions for interceptor handlers. 771 // Support functions for interceptor handlers.
772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
776 } 776 }
777 } // namespace v8::internal 777 } // namespace v8::internal
778 778
779 #endif // V8_IC_H_ 779 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698