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

Side by Side Diff: src/assembler.cc

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make mips work Created 5 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/code-stubs.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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 ExternalReference::ExternalReference(const Runtime::Function* f, 988 ExternalReference::ExternalReference(const Runtime::Function* f,
989 Isolate* isolate) 989 Isolate* isolate)
990 : address_(Redirect(isolate, f->entry)) {} 990 : address_(Redirect(isolate, f->entry)) {}
991 991
992 992
993 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { 993 ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
994 return ExternalReference(isolate); 994 return ExternalReference(isolate);
995 } 995 }
996 996
997 997
998 ExternalReference::ExternalReference(const IC_Utility& ic_utility,
999 Isolate* isolate)
1000 : address_(Redirect(isolate, ic_utility.address())) {}
1001
1002
1003 ExternalReference::ExternalReference(StatsCounter* counter) 998 ExternalReference::ExternalReference(StatsCounter* counter)
1004 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 999 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
1005 1000
1006 1001
1007 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) 1002 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate)
1008 : address_(isolate->get_address_from_id(id)) {} 1003 : address_(isolate->get_address_from_id(id)) {}
1009 1004
1010 1005
1011 ExternalReference::ExternalReference(const SCTableReference& table_ref) 1006 ExternalReference::ExternalReference(const SCTableReference& table_ref)
1012 : address_(table_ref.address()) {} 1007 : address_(table_ref.address()) {}
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 1489
1495 1490
1496 ExternalReference ExternalReference::mod_two_doubles_operation( 1491 ExternalReference ExternalReference::mod_two_doubles_operation(
1497 Isolate* isolate) { 1492 Isolate* isolate) {
1498 return ExternalReference(Redirect(isolate, 1493 return ExternalReference(Redirect(isolate,
1499 FUNCTION_ADDR(modulo), 1494 FUNCTION_ADDR(modulo),
1500 BUILTIN_FP_FP_CALL)); 1495 BUILTIN_FP_FP_CALL));
1501 } 1496 }
1502 1497
1503 1498
1504 ExternalReference ExternalReference::debug_break(Isolate* isolate) {
1505 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(Debug_Break)));
1506 }
1507
1508
1509 ExternalReference ExternalReference::debug_step_in_fp_address( 1499 ExternalReference ExternalReference::debug_step_in_fp_address(
1510 Isolate* isolate) { 1500 Isolate* isolate) {
1511 return ExternalReference(isolate->debug()->step_in_fp_addr()); 1501 return ExternalReference(isolate->debug()->step_in_fp_addr());
1512 } 1502 }
1513 1503
1514 1504
1515 bool operator==(ExternalReference lhs, ExternalReference rhs) { 1505 bool operator==(ExternalReference lhs, ExternalReference rhs) {
1516 return lhs.address() == rhs.address(); 1506 return lhs.address() == rhs.address();
1517 } 1507 }
1518 1508
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 1815
1826 1816
1827 void Assembler::DataAlign(int m) { 1817 void Assembler::DataAlign(int m) {
1828 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1818 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1829 while ((pc_offset() & (m - 1)) != 0) { 1819 while ((pc_offset() & (m - 1)) != 0) {
1830 db(0); 1820 db(0);
1831 } 1821 }
1832 } 1822 }
1833 } // namespace internal 1823 } // namespace internal
1834 } // namespace v8 1824 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698