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

Unified Diff: src/x64/macro-assembler-x64.cc

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: Created 3 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
« src/runtime/runtime-generator.cc ('K') | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/macro-assembler-x64.cc
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
index d695d0ed901e2570e5dc3773d483a4dffc17d454..7fe1f262265c0b7c0875a7e612bed5f00097ee46 100644
--- a/src/x64/macro-assembler-x64.cc
+++ b/src/x64/macro-assembler-x64.cc
@@ -3940,12 +3940,21 @@ void MacroAssembler::AssertBoundFunction(Register object) {
void MacroAssembler::AssertGeneratorObject(Register object) {
if (emit_debug_code()) {
+ Label ok;
testb(object, Immediate(kSmiTagMask));
Check(not_equal, kOperandIsASmiAndNotAGeneratorObject);
+
Push(object);
CmpObjectType(object, JS_GENERATOR_OBJECT_TYPE, object);
caitp 2017/01/10 04:13:42 Need to alter these assertions in order to reuse t
Pop(object);
+ j(equal, &ok, Label::kNear);
+
+ Push(object);
+ CmpObjectType(object, JS_ASYNC_GENERATOR_OBJECT_TYPE, object);
+ Pop(object);
Check(equal, kOperandIsNotAGeneratorObject);
+
+ bind(&ok);
}
}
« src/runtime/runtime-generator.cc ('K') | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698