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

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

Issue 1332563003: Vector ICs: No more patching for call ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 build break. 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/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 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 }; 278 };
279 279
280 280
281 class CallIC : public IC { 281 class CallIC : public IC {
282 public: 282 public:
283 CallIC(Isolate* isolate, CallICNexus* nexus) 283 CallIC(Isolate* isolate, CallICNexus* nexus)
284 : IC(EXTRA_CALL_FRAME, isolate, nexus) { 284 : IC(EXTRA_CALL_FRAME, isolate, nexus) {
285 DCHECK(nexus != NULL); 285 DCHECK(nexus != NULL);
286 } 286 }
287 287
288 void PatchMegamorphic(Handle<Object> function);
289
290 void HandleMiss(Handle<Object> function); 288 void HandleMiss(Handle<Object> function);
291 289
292 // Returns true if a custom handler was installed.
293 bool DoCustomHandler(Handle<Object> function,
294 const CallICState& callic_state);
295
296 // Code generator routines. 290 // Code generator routines.
297 static Handle<Code> initialize_stub(Isolate* isolate, int argc, 291 static Handle<Code> initialize_stub(Isolate* isolate, int argc,
298 CallICState::CallType call_type); 292 CallICState::CallType call_type);
299 static Handle<Code> initialize_stub_in_optimized_code( 293 static Handle<Code> initialize_stub_in_optimized_code(
300 Isolate* isolate, int argc, CallICState::CallType call_type); 294 Isolate* isolate, int argc, CallICState::CallType call_type);
301 295
302 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); 296 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus);
303 }; 297 };
304 298
305 299
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 683
690 684
691 // Helper for BinaryOpIC and CompareIC. 685 // Helper for BinaryOpIC and CompareIC.
692 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 686 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
693 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 687 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
694 688
695 } 689 }
696 } // namespace v8::internal 690 } // namespace v8::internal
697 691
698 #endif // V8_IC_H_ 692 #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