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 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 years, 2 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
« no previous file with comments | « src/isolate.h ('k') | src/lookup-cache.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 stats_table_(NULL), 2048 stats_table_(NULL),
2049 load_stub_cache_(NULL), 2049 load_stub_cache_(NULL),
2050 store_stub_cache_(NULL), 2050 store_stub_cache_(NULL),
2051 code_aging_helper_(NULL), 2051 code_aging_helper_(NULL),
2052 deoptimizer_data_(NULL), 2052 deoptimizer_data_(NULL),
2053 deoptimizer_lazy_throw_(false), 2053 deoptimizer_lazy_throw_(false),
2054 materialized_object_store_(NULL), 2054 materialized_object_store_(NULL),
2055 capture_stack_trace_for_uncaught_exceptions_(false), 2055 capture_stack_trace_for_uncaught_exceptions_(false),
2056 stack_trace_for_uncaught_exceptions_frame_limit_(0), 2056 stack_trace_for_uncaught_exceptions_frame_limit_(0),
2057 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview), 2057 stack_trace_for_uncaught_exceptions_options_(StackTrace::kOverview),
2058 keyed_lookup_cache_(NULL),
2059 context_slot_cache_(NULL), 2058 context_slot_cache_(NULL),
2060 descriptor_lookup_cache_(NULL), 2059 descriptor_lookup_cache_(NULL),
2061 handle_scope_implementer_(NULL), 2060 handle_scope_implementer_(NULL),
2062 unicode_cache_(NULL), 2061 unicode_cache_(NULL),
2063 allocator_(FLAG_trace_gc_object_stats ? new VerboseAccountingAllocator( 2062 allocator_(FLAG_trace_gc_object_stats ? new VerboseAccountingAllocator(
2064 &heap_, 256 * KB, 128 * KB) 2063 &heap_, 256 * KB, 128 * KB)
2065 : new AccountingAllocator()), 2064 : new AccountingAllocator()),
2066 inner_pointer_to_code_cache_(NULL), 2065 inner_pointer_to_code_cache_(NULL),
2067 global_handles_(NULL), 2066 global_handles_(NULL),
2068 eternal_handles_(NULL), 2067 eternal_handles_(NULL),
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 delete access_compiler_data_; 2278 delete access_compiler_data_;
2280 access_compiler_data_ = NULL; 2279 access_compiler_data_ = NULL;
2281 2280
2282 delete regexp_stack_; 2281 delete regexp_stack_;
2283 regexp_stack_ = NULL; 2282 regexp_stack_ = NULL;
2284 2283
2285 delete descriptor_lookup_cache_; 2284 delete descriptor_lookup_cache_;
2286 descriptor_lookup_cache_ = NULL; 2285 descriptor_lookup_cache_ = NULL;
2287 delete context_slot_cache_; 2286 delete context_slot_cache_;
2288 context_slot_cache_ = NULL; 2287 context_slot_cache_ = NULL;
2289 delete keyed_lookup_cache_;
2290 keyed_lookup_cache_ = NULL;
2291 2288
2292 delete load_stub_cache_; 2289 delete load_stub_cache_;
2293 load_stub_cache_ = NULL; 2290 load_stub_cache_ = NULL;
2294 delete store_stub_cache_; 2291 delete store_stub_cache_;
2295 store_stub_cache_ = NULL; 2292 store_stub_cache_ = NULL;
2296 delete code_aging_helper_; 2293 delete code_aging_helper_;
2297 code_aging_helper_ = NULL; 2294 code_aging_helper_ = NULL;
2298 delete stats_table_; 2295 delete stats_table_;
2299 stats_table_ = NULL; 2296 stats_table_ = NULL;
2300 2297
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 // Safe after setting Heap::isolate_, and initializing StackGuard 2419 // Safe after setting Heap::isolate_, and initializing StackGuard
2423 heap_.SetStackLimits(); 2420 heap_.SetStackLimits();
2424 2421
2425 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ 2422 #define ASSIGN_ELEMENT(CamelName, hacker_name) \
2426 isolate_addresses_[Isolate::k##CamelName##Address] = \ 2423 isolate_addresses_[Isolate::k##CamelName##Address] = \
2427 reinterpret_cast<Address>(hacker_name##_address()); 2424 reinterpret_cast<Address>(hacker_name##_address());
2428 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT) 2425 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT)
2429 #undef ASSIGN_ELEMENT 2426 #undef ASSIGN_ELEMENT
2430 2427
2431 compilation_cache_ = new CompilationCache(this); 2428 compilation_cache_ = new CompilationCache(this);
2432 keyed_lookup_cache_ = new KeyedLookupCache();
2433 context_slot_cache_ = new ContextSlotCache(); 2429 context_slot_cache_ = new ContextSlotCache();
2434 descriptor_lookup_cache_ = new DescriptorLookupCache(); 2430 descriptor_lookup_cache_ = new DescriptorLookupCache();
2435 unicode_cache_ = new UnicodeCache(); 2431 unicode_cache_ = new UnicodeCache();
2436 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 2432 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
2437 global_handles_ = new GlobalHandles(this); 2433 global_handles_ = new GlobalHandles(this);
2438 eternal_handles_ = new EternalHandles(); 2434 eternal_handles_ = new EternalHandles();
2439 bootstrapper_ = new Bootstrapper(this); 2435 bootstrapper_ = new Bootstrapper(this);
2440 handle_scope_implementer_ = new HandleScopeImplementer(this); 2436 handle_scope_implementer_ = new HandleScopeImplementer(this);
2441 load_stub_cache_ = new StubCache(this, Code::LOAD_IC); 2437 load_stub_cache_ = new StubCache(this, Code::LOAD_IC);
2442 store_stub_cache_ = new StubCache(this, Code::STORE_IC); 2438 store_stub_cache_ = new StubCache(this, Code::STORE_IC);
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
3457 // Then check whether this scope intercepts. 3453 // Then check whether this scope intercepts.
3458 if ((flag & intercept_mask_)) { 3454 if ((flag & intercept_mask_)) {
3459 intercepted_flags_ |= flag; 3455 intercepted_flags_ |= flag;
3460 return true; 3456 return true;
3461 } 3457 }
3462 return false; 3458 return false;
3463 } 3459 }
3464 3460
3465 } // namespace internal 3461 } // namespace internal
3466 } // namespace v8 3462 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/lookup-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698