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

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

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap 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
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/macro-assembler-ia32.cc
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
index d93552b2a9d50eabd5a4760ea6109c91bcc7f9e5..4ec20991501cc3a6701be576dc3ddeb6ba3d65cb 100644
--- a/src/ia32/macro-assembler-ia32.cc
+++ b/src/ia32/macro-assembler-ia32.cc
@@ -951,12 +951,19 @@ void MacroAssembler::AssertBoundFunction(Register object) {
void MacroAssembler::AssertGeneratorObject(Register object) {
if (emit_debug_code()) {
+ Label ok;
test(object, Immediate(kSmiTagMask));
Check(not_equal, kOperandIsASmiAndNotAGeneratorObject);
Push(object);
CmpObjectType(object, JS_GENERATOR_OBJECT_TYPE, object);
Pop(object);
+ j(equal, &ok);
+
+ Push(object);
+ CmpObjectType(object, JS_ASYNC_GENERATOR_OBJECT_TYPE, object);
+ Pop(object);
Check(equal, kOperandIsNotAGeneratorObject);
+ bind(&ok);
}
}
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698