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

Side by Side Diff: src/assembler.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/assembler.h ('k') | src/crankshaft/mips/lithium-codegen-mips.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 Isolate* isolate) { 1396 Isolate* isolate) {
1397 return ExternalReference(isolate->stack_guard()->address_of_real_jslimit()); 1397 return ExternalReference(isolate->stack_guard()->address_of_real_jslimit());
1398 } 1398 }
1399 1399
1400 1400
1401 ExternalReference ExternalReference::address_of_regexp_stack_limit( 1401 ExternalReference ExternalReference::address_of_regexp_stack_limit(
1402 Isolate* isolate) { 1402 Isolate* isolate) {
1403 return ExternalReference(isolate->regexp_stack()->limit_address()); 1403 return ExternalReference(isolate->regexp_stack()->limit_address());
1404 } 1404 }
1405 1405
1406
1407 ExternalReference ExternalReference::new_space_start(Isolate* isolate) {
1408 return ExternalReference(isolate->heap()->NewSpaceStart());
1409 }
1410
1411
1412 ExternalReference ExternalReference::store_buffer_top(Isolate* isolate) { 1406 ExternalReference ExternalReference::store_buffer_top(Isolate* isolate) {
1413 return ExternalReference(isolate->heap()->store_buffer_top_address()); 1407 return ExternalReference(isolate->heap()->store_buffer_top_address());
1414 } 1408 }
1415 1409
1416 1410
1417 ExternalReference ExternalReference::new_space_allocation_top_address( 1411 ExternalReference ExternalReference::new_space_allocation_top_address(
1418 Isolate* isolate) { 1412 Isolate* isolate) {
1419 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress()); 1413 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress());
1420 } 1414 }
1421 1415
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 2074
2081 2075
2082 void Assembler::DataAlign(int m) { 2076 void Assembler::DataAlign(int m) {
2083 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2077 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2084 while ((pc_offset() & (m - 1)) != 0) { 2078 while ((pc_offset() & (m - 1)) != 0) {
2085 db(0); 2079 db(0);
2086 } 2080 }
2087 } 2081 }
2088 } // namespace internal 2082 } // namespace internal
2089 } // namespace v8 2083 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698