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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 1865833002: [generators] Decouple generator resume from fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3952 matching lines...) Expand 10 before | Expand all | Expand 10 after
3963 if (emit_debug_code()) { 3963 if (emit_debug_code()) {
3964 testb(object, Immediate(kSmiTagMask)); 3964 testb(object, Immediate(kSmiTagMask));
3965 Check(not_equal, kOperandIsASmiAndNotABoundFunction); 3965 Check(not_equal, kOperandIsASmiAndNotABoundFunction);
3966 Push(object); 3966 Push(object);
3967 CmpObjectType(object, JS_BOUND_FUNCTION_TYPE, object); 3967 CmpObjectType(object, JS_BOUND_FUNCTION_TYPE, object);
3968 Pop(object); 3968 Pop(object);
3969 Check(equal, kOperandIsNotABoundFunction); 3969 Check(equal, kOperandIsNotABoundFunction);
3970 } 3970 }
3971 } 3971 }
3972 3972
3973 void MacroAssembler::AssertGeneratorObject(Register object) {
3974 if (emit_debug_code()) {
3975 testb(object, Immediate(kSmiTagMask));
3976 Check(not_equal, kOperandIsASmiAndNotAGeneratorObject);
3977 Push(object);
3978 CmpObjectType(object, JS_GENERATOR_OBJECT_TYPE, object);
3979 Pop(object);
3980 Check(equal, kOperandIsNotAGeneratorObject);
3981 }
3982 }
3973 3983
3974 void MacroAssembler::AssertReceiver(Register object) { 3984 void MacroAssembler::AssertReceiver(Register object) {
3975 if (emit_debug_code()) { 3985 if (emit_debug_code()) {
3976 testb(object, Immediate(kSmiTagMask)); 3986 testb(object, Immediate(kSmiTagMask));
3977 Check(not_equal, kOperandIsASmiAndNotAReceiver); 3987 Check(not_equal, kOperandIsASmiAndNotAReceiver);
3978 Push(object); 3988 Push(object);
3979 STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE); 3989 STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE);
3980 CmpObjectType(object, FIRST_JS_RECEIVER_TYPE, object); 3990 CmpObjectType(object, FIRST_JS_RECEIVER_TYPE, object);
3981 Pop(object); 3991 Pop(object);
3982 Check(above_equal, kOperandIsNotAReceiver); 3992 Check(above_equal, kOperandIsNotAReceiver);
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
5703 movl(rax, dividend); 5713 movl(rax, dividend);
5704 shrl(rax, Immediate(31)); 5714 shrl(rax, Immediate(31));
5705 addl(rdx, rax); 5715 addl(rdx, rax);
5706 } 5716 }
5707 5717
5708 5718
5709 } // namespace internal 5719 } // namespace internal
5710 } // namespace v8 5720 } // namespace v8
5711 5721
5712 #endif // V8_TARGET_ARCH_X64 5722 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698