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

Side by Side Diff: src/assembler.cc

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 3 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/array-iterator.js ('k') | src/ast.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 (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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 ApiFunction* fun, 973 ApiFunction* fun,
974 Type type = ExternalReference::BUILTIN_CALL, 974 Type type = ExternalReference::BUILTIN_CALL,
975 Isolate* isolate = NULL) 975 Isolate* isolate = NULL)
976 : address_(Redirect(isolate, fun->address(), type)) {} 976 : address_(Redirect(isolate, fun->address(), type)) {}
977 977
978 978
979 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) 979 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate)
980 : address_(isolate->builtins()->builtin_address(name)) {} 980 : address_(isolate->builtins()->builtin_address(name)) {}
981 981
982 982
983 ExternalReference::ExternalReference(Runtime::FunctionId id, 983 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate)
984 Isolate* isolate) 984 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {}
985 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {}
986 985
987 986
988 ExternalReference::ExternalReference(const Runtime::Function* f, 987 ExternalReference::ExternalReference(const Runtime::Function* f,
989 Isolate* isolate) 988 Isolate* isolate)
990 : address_(Redirect(isolate, f->entry)) {} 989 : address_(Redirect(isolate, f->entry)) {}
991 990
992 991
993 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { 992 ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
994 return ExternalReference(isolate); 993 return ExternalReference(isolate);
995 } 994 }
996 995
997 996
998 ExternalReference::ExternalReference(StatsCounter* counter) 997 ExternalReference::ExternalReference(StatsCounter* counter)
999 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 998 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
1000 999
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 1820
1822 1821
1823 void Assembler::DataAlign(int m) { 1822 void Assembler::DataAlign(int m) {
1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1823 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1825 while ((pc_offset() & (m - 1)) != 0) { 1824 while ((pc_offset() & (m - 1)) != 0) {
1826 db(0); 1825 db(0);
1827 } 1826 }
1828 } 1827 }
1829 } // namespace internal 1828 } // namespace internal
1830 } // namespace v8 1829 } // namespace v8
OLDNEW
« no previous file with comments | « src/array-iterator.js ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698