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

Side by Side Diff: src/assembler.cc

Issue 2155633002: [builtins] remove redundant builtins lists. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: attempt to fix gc mole Created 4 years, 5 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/builtins/arm/builtins-arm.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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 void ExternalReference::SetUp() { 889 void ExternalReference::SetUp() {
890 double_constants.min_int = kMinInt; 890 double_constants.min_int = kMinInt;
891 double_constants.one_half = 0.5; 891 double_constants.one_half = 0.5;
892 double_constants.minus_one_half = -0.5; 892 double_constants.minus_one_half = -0.5;
893 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64); 893 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64);
894 double_constants.negative_infinity = -V8_INFINITY; 894 double_constants.negative_infinity = -V8_INFINITY;
895 double_constants.uint32_bias = 895 double_constants.uint32_bias =
896 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; 896 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1;
897 } 897 }
898 898
899 899 ExternalReference::ExternalReference(Address address, Isolate* isolate)
900 ExternalReference::ExternalReference(Builtins::CFunctionId id, Isolate* isolate) 900 : address_(Redirect(isolate, address)) {}
901 : address_(Redirect(isolate, Builtins::c_function_address(id))) {}
902
903 901
904 ExternalReference::ExternalReference( 902 ExternalReference::ExternalReference(
905 ApiFunction* fun, 903 ApiFunction* fun,
906 Type type = ExternalReference::BUILTIN_CALL, 904 Type type = ExternalReference::BUILTIN_CALL,
907 Isolate* isolate = NULL) 905 Isolate* isolate = NULL)
908 : address_(Redirect(isolate, fun->address(), type)) {} 906 : address_(Redirect(isolate, fun->address(), type)) {}
909 907
910 908
911 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) 909 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate)
912 : address_(isolate->builtins()->builtin_address(name)) {} 910 : address_(isolate->builtins()->builtin_address(name)) {}
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 1892
1895 1893
1896 void Assembler::DataAlign(int m) { 1894 void Assembler::DataAlign(int m) {
1897 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1895 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1898 while ((pc_offset() & (m - 1)) != 0) { 1896 while ((pc_offset() & (m - 1)) != 0) {
1899 db(0); 1897 db(0);
1900 } 1898 }
1901 } 1899 }
1902 } // namespace internal 1900 } // namespace internal
1903 } // namespace v8 1901 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698