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

Side by Side Diff: src/code-stub-assembler.h

Issue 2752213002: [csa] Add CSA::CallBuiltin and Builtins::CallableFor (Closed)
Patch Set: Remove unused variable again Created 3 years, 9 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 1019
1020 Node* GetProperty(Node* context, Node* receiver, Handle<Name> name) { 1020 Node* GetProperty(Node* context, Node* receiver, Handle<Name> name) {
1021 return GetProperty(context, receiver, HeapConstant(name)); 1021 return GetProperty(context, receiver, HeapConstant(name));
1022 } 1022 }
1023 1023
1024 Node* GetProperty(Node* context, Node* receiver, Node* const name) { 1024 Node* GetProperty(Node* context, Node* receiver, Node* const name) {
1025 return CallStub(CodeFactory::GetProperty(isolate()), context, receiver, 1025 return CallStub(CodeFactory::GetProperty(isolate()), context, receiver,
1026 name); 1026 name);
1027 } 1027 }
1028 1028
1029 template <class... TArgs>
1030 Node* CallBuiltin(Builtins::Name id, Node* context, TArgs... args) {
1031 return CallStub(Builtins::CallableFor(isolate(), id), context, args...);
1032 }
1033
1029 void LoadPropertyFromFastObject(Node* object, Node* map, Node* descriptors, 1034 void LoadPropertyFromFastObject(Node* object, Node* map, Node* descriptors,
1030 Node* name_index, Variable* var_details, 1035 Node* name_index, Variable* var_details,
1031 Variable* var_value); 1036 Variable* var_value);
1032 1037
1033 void LoadPropertyFromNameDictionary(Node* dictionary, Node* entry, 1038 void LoadPropertyFromNameDictionary(Node* dictionary, Node* entry,
1034 Variable* var_details, 1039 Variable* var_details,
1035 Variable* var_value); 1040 Variable* var_value);
1036 1041
1037 void LoadPropertyFromGlobalDictionary(Node* dictionary, Node* entry, 1042 void LoadPropertyFromGlobalDictionary(Node* dictionary, Node* entry,
1038 Variable* var_details, 1043 Variable* var_details,
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 } 1467 }
1463 #else 1468 #else
1464 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1469 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1465 #endif 1470 #endif
1466 1471
1467 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1472 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1468 1473
1469 } // namespace internal 1474 } // namespace internal
1470 } // namespace v8 1475 } // namespace v8
1471 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1476 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« src/builtins/builtins.cc ('K') | « src/code-factory.h ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698