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

Unified Diff: src/assembler.cc

Issue 1604653006: Introduce BUILTIN_CALL_PAIR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Typo in comment. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/assembler.h ('k') | src/ppc/simulator-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index 784331738ee23f47cb9bc5cf9b796304f3e9a6d5..c7219c7626bbc568aa0a3c0be74684bd8c774b2d 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -1029,9 +1029,11 @@ ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate)
ExternalReference::ExternalReference(const Runtime::Function* f,
Isolate* isolate)
- : address_(Redirect(isolate, f->entry, f->result_size == 3
- ? BUILTIN_CALL_TRIPLE
- : BUILTIN_CALL)) {}
+ : address_(Redirect(
+ isolate, f->entry,
+ f->result_size == 3
+ ? BUILTIN_CALL_TRIPLE
+ : (f->result_size == 2 ? BUILTIN_CALL_PAIR : BUILTIN_CALL))) {}
rmcilroy 2016/01/21 12:15:33 Please pull this logic out into a helper function
MTBrandyberry 2016/01/21 16:00:32 Done.
ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
« no previous file with comments | « src/assembler.h ('k') | src/ppc/simulator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698