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

Side by Side Diff: src/isolate.cc

Issue 12385014: Hydrogen stubs for array constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More efficient code when number of arguments is known Created 7 years, 8 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
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 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 CodeStub::GenerateFPStubs(this); 2195 CodeStub::GenerateFPStubs(this);
2196 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2196 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2197 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2197 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2198 // TODO(mstarzinger): The following is an ugly hack to make sure the 2198 // TODO(mstarzinger): The following is an ugly hack to make sure the
2199 // interface descriptor is initialized even when stubs have been 2199 // interface descriptor is initialized even when stubs have been
2200 // deserialized out of the snapshot without the graph builder. 2200 // deserialized out of the snapshot without the graph builder.
2201 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, 2201 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS,
2202 DONT_TRACK_ALLOCATION_SITE, 0); 2202 DONT_TRACK_ALLOCATION_SITE, 0);
2203 stub.InitializeInterfaceDescriptor( 2203 stub.InitializeInterfaceDescriptor(
2204 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); 2204 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2205
2206 ArrayConstructorStubBase::InstallDescriptors(this);
2205 } 2207 }
2206 2208
2207 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); 2209 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start();
2208 2210
2209 if (FLAG_parallel_marking && FLAG_marking_threads == 0) { 2211 if (FLAG_parallel_marking && FLAG_marking_threads == 0) {
2210 FLAG_marking_threads = SystemThreadManager:: 2212 FLAG_marking_threads = SystemThreadManager::
2211 NumberOfParallelSystemThreads( 2213 NumberOfParallelSystemThreads(
2212 SystemThreadManager::PARALLEL_MARKING); 2214 SystemThreadManager::PARALLEL_MARKING);
2213 } 2215 }
2214 if (FLAG_marking_threads > 0) { 2216 if (FLAG_marking_threads > 0) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 2409
2408 #ifdef DEBUG 2410 #ifdef DEBUG
2409 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2411 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2410 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2412 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2411 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2413 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2412 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2414 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2413 #undef ISOLATE_FIELD_OFFSET 2415 #undef ISOLATE_FIELD_OFFSET
2414 #endif 2416 #endif
2415 2417
2416 } } // namespace v8::internal 2418 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698