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

Side by Side Diff: src/isolate.cc

Issue 170303003: Initialize interface descriptor for ToNumberStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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.cc ('k') | no next file » | 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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 kDeoptTableSerializeEntryCount - 1); 2099 kDeoptTableSerializeEntryCount - 1);
2100 } 2100 }
2101 2101
2102 if (!Serializer::enabled()) { 2102 if (!Serializer::enabled()) {
2103 // Ensure that all stubs which need to be generated ahead of time, but 2103 // Ensure that all stubs which need to be generated ahead of time, but
2104 // cannot be serialized into the snapshot have been generated. 2104 // cannot be serialized into the snapshot have been generated.
2105 HandleScope scope(this); 2105 HandleScope scope(this);
2106 CodeStub::GenerateFPStubs(this); 2106 CodeStub::GenerateFPStubs(this);
2107 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2107 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2108 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2108 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2109 // TODO(mstarzinger): The following is an ugly hack to make sure the 2109 // Ensure interface descriptors are initialized even when stubs have been
2110 // interface descriptor is initialized even when stubs have been 2110 // deserialized out of the snapshot without using the graph builder.
2111 // deserialized out of the snapshot without the graph builder. 2111 FastCloneShallowArrayStub::InstallDescriptors(this);
2112 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS,
2113 DONT_TRACK_ALLOCATION_SITE, 0);
2114 stub.InitializeInterfaceDescriptor(
2115 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2116 BinaryOpICStub::InstallDescriptors(this); 2112 BinaryOpICStub::InstallDescriptors(this);
2117 BinaryOpWithAllocationSiteStub::InstallDescriptors(this); 2113 BinaryOpWithAllocationSiteStub::InstallDescriptors(this);
2118 CompareNilICStub::InitializeForIsolate(this); 2114 CompareNilICStub::InstallDescriptors(this);
2119 ToBooleanStub::InitializeForIsolate(this); 2115 ToBooleanStub::InstallDescriptors(this);
2116 ToNumberStub::InstallDescriptors(this);
2120 ArrayConstructorStubBase::InstallDescriptors(this); 2117 ArrayConstructorStubBase::InstallDescriptors(this);
2121 InternalArrayConstructorStubBase::InstallDescriptors(this); 2118 InternalArrayConstructorStubBase::InstallDescriptors(this);
2122 FastNewClosureStub::InstallDescriptors(this); 2119 FastNewClosureStub::InstallDescriptors(this);
2123 FastNewContextStub::InstallDescriptors(this); 2120 FastNewContextStub::InstallDescriptors(this);
2124 NumberToStringStub::InstallDescriptors(this); 2121 NumberToStringStub::InstallDescriptors(this);
2125 StringAddStub::InstallDescriptors(this); 2122 StringAddStub::InstallDescriptors(this);
2126 RegExpConstructResultStub::InstallDescriptors(this); 2123 RegExpConstructResultStub::InstallDescriptors(this);
2127 } 2124 }
2128 2125
2129 CallDescriptors::InitializeForIsolate(this); 2126 CallDescriptors::InitializeForIsolate(this);
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 2316
2320 #ifdef DEBUG 2317 #ifdef DEBUG
2321 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2318 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2322 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2319 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2323 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2320 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2324 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2321 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2325 #undef ISOLATE_FIELD_OFFSET 2322 #undef ISOLATE_FIELD_OFFSET
2326 #endif 2323 #endif
2327 2324
2328 } } // namespace v8::internal 2325 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698