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

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

Issue 148223002: Remove CallICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update test262 status file Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 25 matching lines...) Expand all
36 #include "macro-assembler.h" 36 #include "macro-assembler.h"
37 37
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 41
42 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor() 42 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
43 : register_param_count_(-1), 43 : register_param_count_(-1),
44 stack_parameter_count_(no_reg), 44 stack_parameter_count_(no_reg),
45 hint_stack_parameter_count_(-1), 45 hint_stack_parameter_count_(-1),
46 continuation_type_(NORMAL_CONTINUATION),
47 function_mode_(NOT_JS_FUNCTION_STUB_MODE), 46 function_mode_(NOT_JS_FUNCTION_STUB_MODE),
48 register_params_(NULL), 47 register_params_(NULL),
49 deoptimization_handler_(NULL), 48 deoptimization_handler_(NULL),
50 handler_arguments_mode_(DONT_PASS_ARGUMENTS), 49 handler_arguments_mode_(DONT_PASS_ARGUMENTS),
51 miss_handler_(), 50 miss_handler_(),
52 has_miss_handler_(false) { } 51 has_miss_handler_(false) { }
53 52
54 53
55 void CodeStub::GenerateStubsRequiringBuiltinsAheadOfTime(Isolate* isolate) {
56 StubFailureTailCallTrampolineStub::GenerateAheadOfTime(isolate);
57 }
58
59
60 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { 54 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) {
61 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); 55 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs();
62 int index = stubs->FindEntry(GetKey()); 56 int index = stubs->FindEntry(GetKey());
63 if (index != UnseededNumberDictionary::kNotFound) { 57 if (index != UnseededNumberDictionary::kNotFound) {
64 *code_out = Code::cast(stubs->ValueAt(index)); 58 *code_out = Code::cast(stubs->ValueAt(index));
65 return true; 59 return true;
66 } 60 }
67 return false; 61 return false;
68 } 62 }
69 63
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 694
701 695
702 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { 696 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
703 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); 697 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE);
704 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); 698 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE);
705 stub1.GetCode(isolate); 699 stub1.GetCode(isolate);
706 stub2.GetCode(isolate); 700 stub2.GetCode(isolate);
707 } 701 }
708 702
709 703
710 void StubFailureTailCallTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
711 StubFailureTailCallTrampolineStub stub;
712 stub.GetCode(isolate);
713 }
714
715
716 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, 704 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function,
717 intptr_t stack_pointer, 705 intptr_t stack_pointer,
718 Isolate* isolate) { 706 Isolate* isolate) {
719 FunctionEntryHook entry_hook = isolate->function_entry_hook(); 707 FunctionEntryHook entry_hook = isolate->function_entry_hook();
720 ASSERT(entry_hook != NULL); 708 ASSERT(entry_hook != NULL);
721 entry_hook(function, stack_pointer); 709 entry_hook(function, stack_pointer);
722 } 710 }
723 711
724 712
725 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) { 713 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 InstallDescriptor(isolate, &stub3); 806 InstallDescriptor(isolate, &stub3);
819 } 807 }
820 808
821 InternalArrayConstructorStub::InternalArrayConstructorStub( 809 InternalArrayConstructorStub::InternalArrayConstructorStub(
822 Isolate* isolate) { 810 Isolate* isolate) {
823 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 811 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
824 } 812 }
825 813
826 814
827 } } // namespace v8::internal 815 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698