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

Side by Side Diff: src/isolate.cc

Issue 71783003: Reland and fix "Add support for keyed-call on arrays of fast elements" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test + fix Created 7 years, 1 month 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/ic.cc ('k') | src/lithium.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 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 if (create_heap_objects) { 2231 if (create_heap_objects) {
2232 // Terminate the cache array with the sentinel so we can iterate. 2232 // Terminate the cache array with the sentinel so we can iterate.
2233 PushToPartialSnapshotCache(heap_.undefined_value()); 2233 PushToPartialSnapshotCache(heap_.undefined_value());
2234 } 2234 }
2235 2235
2236 InitializeThreadLocal(); 2236 InitializeThreadLocal();
2237 2237
2238 bootstrapper_->Initialize(create_heap_objects); 2238 bootstrapper_->Initialize(create_heap_objects);
2239 builtins_.SetUp(this, create_heap_objects); 2239 builtins_.SetUp(this, create_heap_objects);
2240 2240
2241 if (create_heap_objects) heap_.CreateStubsRequiringBuiltins();
2242
2241 // Only preallocate on the first initialization. 2243 // Only preallocate on the first initialization.
2242 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) { 2244 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) {
2243 // Start the thread which will set aside some memory. 2245 // Start the thread which will set aside some memory.
2244 PreallocatedMemoryThreadStart(); 2246 PreallocatedMemoryThreadStart();
2245 preallocated_message_space_ = 2247 preallocated_message_space_ =
2246 new NoAllocationStringAllocator( 2248 new NoAllocationStringAllocator(
2247 preallocated_memory_thread_->data(), 2249 preallocated_memory_thread_->data(),
2248 preallocated_memory_thread_->length()); 2250 preallocated_memory_thread_->length());
2249 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4); 2251 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4);
2250 } 2252 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 kDeoptTableSerializeEntryCount - 1); 2309 kDeoptTableSerializeEntryCount - 1);
2308 } 2310 }
2309 2311
2310 if (!Serializer::enabled()) { 2312 if (!Serializer::enabled()) {
2311 // Ensure that all stubs which need to be generated ahead of time, but 2313 // Ensure that all stubs which need to be generated ahead of time, but
2312 // cannot be serialized into the snapshot have been generated. 2314 // cannot be serialized into the snapshot have been generated.
2313 HandleScope scope(this); 2315 HandleScope scope(this);
2314 CodeStub::GenerateFPStubs(this); 2316 CodeStub::GenerateFPStubs(this);
2315 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2317 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2316 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2318 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2319 StubFailureTailCallTrampolineStub::GenerateAheadOfTime(this);
2317 // TODO(mstarzinger): The following is an ugly hack to make sure the 2320 // TODO(mstarzinger): The following is an ugly hack to make sure the
2318 // interface descriptor is initialized even when stubs have been 2321 // interface descriptor is initialized even when stubs have been
2319 // deserialized out of the snapshot without the graph builder. 2322 // deserialized out of the snapshot without the graph builder.
2320 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, 2323 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS,
2321 DONT_TRACK_ALLOCATION_SITE, 0); 2324 DONT_TRACK_ALLOCATION_SITE, 0);
2322 stub.InitializeInterfaceDescriptor( 2325 stub.InitializeInterfaceDescriptor(
2323 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); 2326 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2324 BinaryOpStub::InitializeForIsolate(this); 2327 BinaryOpStub::InitializeForIsolate(this);
2325 CompareNilICStub::InitializeForIsolate(this); 2328 CompareNilICStub::InitializeForIsolate(this);
2326 ToBooleanStub::InitializeForIsolate(this); 2329 ToBooleanStub::InitializeForIsolate(this);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 2526
2524 #ifdef DEBUG 2527 #ifdef DEBUG
2525 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2526 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2527 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2528 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2529 #undef ISOLATE_FIELD_OFFSET 2532 #undef ISOLATE_FIELD_OFFSET
2530 #endif 2533 #endif
2531 2534
2532 } } // namespace v8::internal 2535 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698