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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 136093010: Replace nonexistent a4 by t0 on mips. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3240 matching lines...) Expand 10 before | Expand all | Expand 10 after
3251 } 3251 }
3252 3252
3253 // Fast-case: Invoke the function now. 3253 // Fast-case: Invoke the function now.
3254 // a1: pushed function 3254 // a1: pushed function
3255 ParameterCount actual(argc_); 3255 ParameterCount actual(argc_);
3256 3256
3257 if (CallAsMethod()) { 3257 if (CallAsMethod()) {
3258 if (NeedsChecks()) { 3258 if (NeedsChecks()) {
3259 // Do not transform the receiver for strict mode functions and natives. 3259 // Do not transform the receiver for strict mode functions and natives.
3260 __ lw(a3, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 3260 __ lw(a3, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
3261 __ lw(a4, FieldMemOperand(a3, SharedFunctionInfo::kCompilerHintsOffset)); 3261 __ lw(t0, FieldMemOperand(a3, SharedFunctionInfo::kCompilerHintsOffset));
3262 int32_t strict_mode_function_mask = 3262 int32_t strict_mode_function_mask =
3263 1 << (SharedFunctionInfo::kStrictModeFunction + kSmiTagSize); 3263 1 << (SharedFunctionInfo::kStrictModeFunction + kSmiTagSize);
3264 int32_t native_mask = 1 << (SharedFunctionInfo::kNative + kSmiTagSize); 3264 int32_t native_mask = 1 << (SharedFunctionInfo::kNative + kSmiTagSize);
3265 __ And(at, a4, Operand(strict_mode_function_mask | native_mask)); 3265 __ And(at, t0, Operand(strict_mode_function_mask | native_mask));
3266 __ Branch(&cont, ne, at, Operand(zero_reg)); 3266 __ Branch(&cont, ne, at, Operand(zero_reg));
3267 } 3267 }
3268 3268
3269 // Compute the receiver in non-strict mode. 3269 // Compute the receiver in non-strict mode.
3270 __ lw(a3, MemOperand(sp, argc_ * kPointerSize)); 3270 __ lw(a3, MemOperand(sp, argc_ * kPointerSize));
3271 3271
3272 if (NeedsChecks()) { 3272 if (NeedsChecks()) {
3273 __ JumpIfSmi(a3, &wrap); 3273 __ JumpIfSmi(a3, &wrap);
3274 __ GetObjectType(a3, a4, a4); 3274 __ GetObjectType(a3, t0, t0);
3275 __ Branch(&wrap, lt, a4, Operand(FIRST_SPEC_OBJECT_TYPE)); 3275 __ Branch(&wrap, lt, t0, Operand(FIRST_SPEC_OBJECT_TYPE));
3276 } else { 3276 } else {
3277 __ jmp(&wrap); 3277 __ jmp(&wrap);
3278 } 3278 }
3279 3279
3280 __ bind(&cont); 3280 __ bind(&cont);
3281 } 3281 }
3282 __ InvokeFunction(a1, actual, JUMP_FUNCTION, NullCallWrapper()); 3282 __ InvokeFunction(a1, actual, JUMP_FUNCTION, NullCallWrapper());
3283 3283
3284 if (NeedsChecks()) { 3284 if (NeedsChecks()) {
3285 // Slow-case: Non-function called. 3285 // Slow-case: Non-function called.
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 MemOperand(fp, 6 * kPointerSize), 5724 MemOperand(fp, 6 * kPointerSize),
5725 NULL); 5725 NULL);
5726 } 5726 }
5727 5727
5728 5728
5729 #undef __ 5729 #undef __
5730 5730
5731 } } // namespace v8::internal 5731 } } // namespace v8::internal
5732 5732
5733 #endif // V8_TARGET_ARCH_MIPS 5733 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698