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

Side by Side Diff: src/assembler.cc

Issue 1576093004: [Interpreter] Add ForInPrepare runtime function which returns a ObjectTriple. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment and variable name tweaks Created 4 years, 11 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
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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 Type type = ExternalReference::BUILTIN_CALL, 1018 Type type = ExternalReference::BUILTIN_CALL,
1019 Isolate* isolate = NULL) 1019 Isolate* isolate = NULL)
1020 : address_(Redirect(isolate, fun->address(), type)) {} 1020 : address_(Redirect(isolate, fun->address(), type)) {}
1021 1021
1022 1022
1023 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) 1023 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate)
1024 : address_(isolate->builtins()->builtin_address(name)) {} 1024 : address_(isolate->builtins()->builtin_address(name)) {}
1025 1025
1026 1026
1027 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate) 1027 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate)
1028 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {} 1028 : ExternalReference(Runtime::FunctionForId(id), isolate) {}
1029 1029
1030 1030
1031 ExternalReference::ExternalReference(const Runtime::Function* f, 1031 ExternalReference::ExternalReference(const Runtime::Function* f,
1032 Isolate* isolate) 1032 Isolate* isolate)
1033 : address_(Redirect(isolate, f->entry)) {} 1033 : address_(Redirect(isolate, f->entry, f->result_size == 3
1034 ? BUILTIN_CALL_TRIPLE
1035 : BUILTIN_CALL)) {}
1034 1036
1035 1037
1036 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { 1038 ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
1037 return ExternalReference(isolate); 1039 return ExternalReference(isolate);
1038 } 1040 }
1039 1041
1040 1042
1041 ExternalReference::ExternalReference(StatsCounter* counter) 1043 ExternalReference::ExternalReference(StatsCounter* counter)
1042 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 1044 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
1043 1045
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 1872
1871 1873
1872 void Assembler::DataAlign(int m) { 1874 void Assembler::DataAlign(int m) {
1873 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1875 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1874 while ((pc_offset() & (m - 1)) != 0) { 1876 while ((pc_offset() & (m - 1)) != 0) {
1875 db(0); 1877 db(0);
1876 } 1878 }
1877 } 1879 }
1878 } // namespace internal 1880 } // namespace internal
1879 } // namespace v8 1881 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/code-stubs.h » ('j') | src/runtime/runtime-forin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698