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

Side by Side Diff: src/mips64/macro-assembler-mips64.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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 6207 matching lines...) Expand 10 before | Expand all | Expand 10 after
6218 void MacroAssembler::AssertBoundFunction(Register object) { 6218 void MacroAssembler::AssertBoundFunction(Register object) {
6219 if (emit_debug_code()) { 6219 if (emit_debug_code()) {
6220 STATIC_ASSERT(kSmiTag == 0); 6220 STATIC_ASSERT(kSmiTag == 0);
6221 SmiTst(object, t8); 6221 SmiTst(object, t8);
6222 Check(ne, kOperandIsASmiAndNotABoundFunction, t8, Operand(zero_reg)); 6222 Check(ne, kOperandIsASmiAndNotABoundFunction, t8, Operand(zero_reg));
6223 GetObjectType(object, t8, t8); 6223 GetObjectType(object, t8, t8);
6224 Check(eq, kOperandIsNotABoundFunction, t8, Operand(JS_BOUND_FUNCTION_TYPE)); 6224 Check(eq, kOperandIsNotABoundFunction, t8, Operand(JS_BOUND_FUNCTION_TYPE));
6225 } 6225 }
6226 } 6226 }
6227 6227
6228 void MacroAssembler::AssertGeneratorObject(Register object) {
6229 if (emit_debug_code()) {
6230 STATIC_ASSERT(kSmiTag == 0);
6231 SmiTst(object, t8);
6232 Check(ne, kOperandIsASmiAndNotAGeneratorObject, t8, Operand(zero_reg));
6233 GetObjectType(object, t8, t8);
6234 Check(eq, kOperandIsNotAGeneratorObject, t8,
6235 Operand(JS_GENERATOR_OBJECT_TYPE));
6236 }
6237 }
6228 6238
6229 void MacroAssembler::AssertReceiver(Register object) { 6239 void MacroAssembler::AssertReceiver(Register object) {
6230 if (emit_debug_code()) { 6240 if (emit_debug_code()) {
6231 STATIC_ASSERT(kSmiTag == 0); 6241 STATIC_ASSERT(kSmiTag == 0);
6232 SmiTst(object, t8); 6242 SmiTst(object, t8);
6233 Check(ne, kOperandIsASmiAndNotAReceiver, t8, Operand(zero_reg)); 6243 Check(ne, kOperandIsASmiAndNotAReceiver, t8, Operand(zero_reg));
6234 GetObjectType(object, t8, t8); 6244 GetObjectType(object, t8, t8);
6235 Check(ge, kOperandIsNotAReceiver, t8, Operand(FIRST_JS_RECEIVER_TYPE)); 6245 Check(ge, kOperandIsNotAReceiver, t8, Operand(FIRST_JS_RECEIVER_TYPE));
6236 } 6246 }
6237 } 6247 }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
6879 if (mag.shift > 0) sra(result, result, mag.shift); 6889 if (mag.shift > 0) sra(result, result, mag.shift);
6880 srl(at, dividend, 31); 6890 srl(at, dividend, 31);
6881 Addu(result, result, Operand(at)); 6891 Addu(result, result, Operand(at));
6882 } 6892 }
6883 6893
6884 6894
6885 } // namespace internal 6895 } // namespace internal
6886 } // namespace v8 6896 } // namespace v8
6887 6897
6888 #endif // V8_TARGET_ARCH_MIPS64 6898 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/deoptimizer.cc ('K') | « src/mips64/macro-assembler-mips64.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698