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

Side by Side Diff: src/assembler.cc

Issue 2487173002: [turbofan] Advance bytecode offset after lazy deopt. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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
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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 Isolate* isolate) { 958 Isolate* isolate) {
959 return ExternalReference(isolate->interpreter()->dispatch_table_address()); 959 return ExternalReference(isolate->interpreter()->dispatch_table_address());
960 } 960 }
961 961
962 ExternalReference ExternalReference::interpreter_dispatch_counters( 962 ExternalReference ExternalReference::interpreter_dispatch_counters(
963 Isolate* isolate) { 963 Isolate* isolate) {
964 return ExternalReference( 964 return ExternalReference(
965 isolate->interpreter()->bytecode_dispatch_counters_table()); 965 isolate->interpreter()->bytecode_dispatch_counters_table());
966 } 966 }
967 967
968 ExternalReference ExternalReference::interpreter_advance_bytecode_offset(
969 Isolate* isolate) {
970 return ExternalReference(Redirect(
971 isolate, FUNCTION_ADDR(interpreter::Interpreter::AdvanceBytecodeOffset)));
972 }
973
968 ExternalReference::ExternalReference(StatsCounter* counter) 974 ExternalReference::ExternalReference(StatsCounter* counter)
969 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 975 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
970 976
971 977
972 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) 978 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate)
973 : address_(isolate->get_address_from_id(id)) {} 979 : address_(isolate->get_address_from_id(id)) {}
974 980
975 981
976 ExternalReference::ExternalReference(const SCTableReference& table_ref) 982 ExternalReference::ExternalReference(const SCTableReference& table_ref)
977 : address_(table_ref.address()) {} 983 : address_(table_ref.address()) {}
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 1930
1925 1931
1926 void Assembler::DataAlign(int m) { 1932 void Assembler::DataAlign(int m) {
1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1933 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1928 while ((pc_offset() & (m - 1)) != 0) { 1934 while ((pc_offset() & (m - 1)) != 0) {
1929 db(0); 1935 db(0);
1930 } 1936 }
1931 } 1937 }
1932 } // namespace internal 1938 } // namespace internal
1933 } // namespace v8 1939 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698