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

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

Issue 149133004: A64: Synchronize with r17807. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: 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),
46 function_mode_(NOT_JS_FUNCTION_STUB_MODE), 47 function_mode_(NOT_JS_FUNCTION_STUB_MODE),
47 register_params_(NULL), 48 register_params_(NULL),
48 deoptimization_handler_(NULL), 49 deoptimization_handler_(NULL),
50 handler_arguments_mode_(DONT_PASS_ARGUMENTS),
49 miss_handler_(), 51 miss_handler_(),
50 has_miss_handler_(false) { } 52 has_miss_handler_(false) { }
51 53
52 54
55 void CodeStub::GenerateStubsRequiringBuiltinsAheadOfTime(Isolate* isolate) {
56 StubFailureTailCallTrampolineStub::GenerateAheadOfTime(isolate);
57 }
58
59
53 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { 60 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) {
54 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); 61 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs();
55 int index = stubs->FindEntry(GetKey()); 62 int index = stubs->FindEntry(GetKey());
56 if (index != UnseededNumberDictionary::kNotFound) { 63 if (index != UnseededNumberDictionary::kNotFound) {
57 *code_out = Code::cast(stubs->ValueAt(index)); 64 *code_out = Code::cast(stubs->ValueAt(index));
58 return true; 65 return true;
59 } 66 }
60 return false; 67 return false;
61 } 68 }
62 69
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 957
951 958
952 void JSEntryStub::FinishCode(Handle<Code> code) { 959 void JSEntryStub::FinishCode(Handle<Code> code) {
953 Handle<FixedArray> handler_table = 960 Handle<FixedArray> handler_table =
954 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); 961 code->GetIsolate()->factory()->NewFixedArray(1, TENURED);
955 handler_table->set(0, Smi::FromInt(handler_offset_)); 962 handler_table->set(0, Smi::FromInt(handler_offset_));
956 code->set_handler_table(*handler_table); 963 code->set_handler_table(*handler_table);
957 } 964 }
958 965
959 966
960 void KeyedLoadDictionaryElementStub::Generate(MacroAssembler* masm) { 967 void KeyedLoadDictionaryElementPlatformStub::Generate(
968 MacroAssembler* masm) {
961 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); 969 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm);
962 } 970 }
963 971
964 972
965 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { 973 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
966 CreateAllocationSiteStub stub; 974 CreateAllocationSiteStub stub;
967 stub.GetCode(isolate)->set_is_pregenerated(true); 975 stub.GetCode(isolate)->set_is_pregenerated(true);
968 } 976 }
969 977
970 978
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 1109
1102 1110
1103 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { 1111 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
1104 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); 1112 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE);
1105 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); 1113 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE);
1106 stub1.GetCode(isolate)->set_is_pregenerated(true); 1114 stub1.GetCode(isolate)->set_is_pregenerated(true);
1107 stub2.GetCode(isolate)->set_is_pregenerated(true); 1115 stub2.GetCode(isolate)->set_is_pregenerated(true);
1108 } 1116 }
1109 1117
1110 1118
1119 void StubFailureTailCallTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
1120 StubFailureTailCallTrampolineStub stub;
1121 stub.GetCode(isolate)->set_is_pregenerated(true);
1122 }
1123
1124
1111 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, 1125 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function,
1112 intptr_t stack_pointer, 1126 intptr_t stack_pointer,
1113 Isolate* isolate) { 1127 Isolate* isolate) {
1114 FunctionEntryHook entry_hook = isolate->function_entry_hook(); 1128 FunctionEntryHook entry_hook = isolate->function_entry_hook();
1115 ASSERT(entry_hook != NULL); 1129 ASSERT(entry_hook != NULL);
1116 entry_hook(function, stack_pointer); 1130 entry_hook(function, stack_pointer);
1117 } 1131 }
1118 1132
1119 1133
1120 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) { 1134 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 InstallDescriptor(isolate, &stub3); 1200 InstallDescriptor(isolate, &stub3);
1187 } 1201 }
1188 1202
1189 InternalArrayConstructorStub::InternalArrayConstructorStub( 1203 InternalArrayConstructorStub::InternalArrayConstructorStub(
1190 Isolate* isolate) { 1204 Isolate* isolate) {
1191 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1205 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1192 } 1206 }
1193 1207
1194 1208
1195 } } // namespace v8::internal 1209 } } // 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