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/external-reference-table.cc

Issue 1845463003: Remove usages of Heap::NewSpaceStart and its external reference (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Only use 1 constant, reordered checks a bit to have earlier bail outs for old space Created 4 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
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/heap/heap.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/external-reference-table.h" 5 #include "src/external-reference-table.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/counters.h" 9 #include "src/counters.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) { 26 ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) {
27 // Miscellaneous 27 // Miscellaneous
28 Add(ExternalReference::roots_array_start(isolate).address(), 28 Add(ExternalReference::roots_array_start(isolate).address(),
29 "Heap::roots_array_start()"); 29 "Heap::roots_array_start()");
30 Add(ExternalReference::address_of_stack_limit(isolate).address(), 30 Add(ExternalReference::address_of_stack_limit(isolate).address(),
31 "StackGuard::address_of_jslimit()"); 31 "StackGuard::address_of_jslimit()");
32 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), 32 Add(ExternalReference::address_of_real_stack_limit(isolate).address(),
33 "StackGuard::address_of_real_jslimit()"); 33 "StackGuard::address_of_real_jslimit()");
34 Add(ExternalReference::new_space_start(isolate).address(),
35 "Heap::NewSpaceStart()");
36 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), 34 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(),
37 "Heap::NewSpaceAllocationLimitAddress()"); 35 "Heap::NewSpaceAllocationLimitAddress()");
38 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), 36 Add(ExternalReference::new_space_allocation_top_address(isolate).address(),
39 "Heap::NewSpaceAllocationTopAddress()"); 37 "Heap::NewSpaceAllocationTopAddress()");
40 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), 38 Add(ExternalReference::mod_two_doubles_operation(isolate).address(),
41 "mod_two_doubles"); 39 "mod_two_doubles");
42 // Keyed lookup cache. 40 // Keyed lookup cache.
43 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(), 41 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(),
44 "KeyedLookupCache::keys()"); 42 "KeyedLookupCache::keys()");
45 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(), 43 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(),
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 345 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
348 Address address = Deoptimizer::GetDeoptimizationEntry( 346 Address address = Deoptimizer::GetDeoptimizationEntry(
349 isolate, entry, Deoptimizer::LAZY, 347 isolate, entry, Deoptimizer::LAZY,
350 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 348 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
351 Add(address, "lazy_deopt"); 349 Add(address, "lazy_deopt");
352 } 350 }
353 } 351 }
354 352
355 } // namespace internal 353 } // namespace internal
356 } // namespace v8 354 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698