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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index 4aac08d54167b02d1bfe8368e7c3213e67b56d79..806bc3ce508345638721495c9687e748e13d33db 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -1025,12 +1025,14 @@ ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate)
ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate)
- : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {}
+ : ExternalReference(Runtime::FunctionForId(id), isolate) {}
ExternalReference::ExternalReference(const Runtime::Function* f,
Isolate* isolate)
- : address_(Redirect(isolate, f->entry)) {}
+ : address_(Redirect(isolate, f->entry, f->result_size == 3
+ ? BUILTIN_CALL_TRIPLE
+ : BUILTIN_CALL)) {}
ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
« 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