OLD | NEW |
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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 | 967 |
968 | 968 |
969 void KeyedLoadDictionaryElementPlatformStub::Generate( | 969 void KeyedLoadDictionaryElementPlatformStub::Generate( |
970 MacroAssembler* masm) { | 970 MacroAssembler* masm) { |
971 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); | 971 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); |
972 } | 972 } |
973 | 973 |
974 | 974 |
975 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 975 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
976 CreateAllocationSiteStub stub; | 976 CreateAllocationSiteStub stub; |
977 stub.GetCode(isolate)->set_is_pregenerated(true); | 977 stub.GetCode(isolate); |
978 } | 978 } |
979 | 979 |
980 | 980 |
981 void KeyedStoreElementStub::Generate(MacroAssembler* masm) { | 981 void KeyedStoreElementStub::Generate(MacroAssembler* masm) { |
982 switch (elements_kind_) { | 982 switch (elements_kind_) { |
983 case FAST_ELEMENTS: | 983 case FAST_ELEMENTS: |
984 case FAST_HOLEY_ELEMENTS: | 984 case FAST_HOLEY_ELEMENTS: |
985 case FAST_SMI_ELEMENTS: | 985 case FAST_SMI_ELEMENTS: |
986 case FAST_HOLEY_SMI_ELEMENTS: | 986 case FAST_HOLEY_SMI_ELEMENTS: |
987 case FAST_DOUBLE_ELEMENTS: | 987 case FAST_DOUBLE_ELEMENTS: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 | 1106 |
1107 bool ToBooleanStub::Types::CanBeUndetectable() const { | 1107 bool ToBooleanStub::Types::CanBeUndetectable() const { |
1108 return Contains(ToBooleanStub::SPEC_OBJECT) | 1108 return Contains(ToBooleanStub::SPEC_OBJECT) |
1109 || Contains(ToBooleanStub::STRING); | 1109 || Contains(ToBooleanStub::STRING); |
1110 } | 1110 } |
1111 | 1111 |
1112 | 1112 |
1113 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { | 1113 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
1114 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); | 1114 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); |
1115 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); | 1115 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); |
1116 stub1.GetCode(isolate)->set_is_pregenerated(true); | 1116 stub1.GetCode(isolate); |
1117 stub2.GetCode(isolate)->set_is_pregenerated(true); | 1117 stub2.GetCode(isolate); |
1118 } | 1118 } |
1119 | 1119 |
1120 | 1120 |
1121 void StubFailureTailCallTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { | 1121 void StubFailureTailCallTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
1122 StubFailureTailCallTrampolineStub stub; | 1122 StubFailureTailCallTrampolineStub stub; |
1123 stub.GetCode(isolate)->set_is_pregenerated(true); | 1123 stub.GetCode(isolate); |
1124 } | 1124 } |
1125 | 1125 |
1126 | 1126 |
1127 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, | 1127 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, |
1128 intptr_t stack_pointer, | 1128 intptr_t stack_pointer, |
1129 Isolate* isolate) { | 1129 Isolate* isolate) { |
1130 FunctionEntryHook entry_hook = isolate->function_entry_hook(); | 1130 FunctionEntryHook entry_hook = isolate->function_entry_hook(); |
1131 ASSERT(entry_hook != NULL); | 1131 ASSERT(entry_hook != NULL); |
1132 entry_hook(function, stack_pointer); | 1132 entry_hook(function, stack_pointer); |
1133 } | 1133 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 InstallDescriptor(isolate, &stub3); | 1202 InstallDescriptor(isolate, &stub3); |
1203 } | 1203 } |
1204 | 1204 |
1205 InternalArrayConstructorStub::InternalArrayConstructorStub( | 1205 InternalArrayConstructorStub::InternalArrayConstructorStub( |
1206 Isolate* isolate) { | 1206 Isolate* isolate) { |
1207 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 1207 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
1208 } | 1208 } |
1209 | 1209 |
1210 | 1210 |
1211 } } // namespace v8::internal | 1211 } } // namespace v8::internal |
OLD | NEW |