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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 1999403002: Version 5.1.281.45 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 7 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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | 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 // 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after
2991 Label done, null, function, non_function_constructor; 2991 Label done, null, function, non_function_constructor;
2992 2992
2993 VisitForAccumulatorValue(args->at(0)); 2993 VisitForAccumulatorValue(args->at(0));
2994 2994
2995 // If the object is not a JSReceiver, we return null. 2995 // If the object is not a JSReceiver, we return null.
2996 __ JumpIfSmi(v0, &null); 2996 __ JumpIfSmi(v0, &null);
2997 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2997 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2998 __ GetObjectType(v0, v0, a1); // Map is now in v0. 2998 __ GetObjectType(v0, v0, a1); // Map is now in v0.
2999 __ Branch(&null, lt, a1, Operand(FIRST_JS_RECEIVER_TYPE)); 2999 __ Branch(&null, lt, a1, Operand(FIRST_JS_RECEIVER_TYPE));
3000 3000
3001 // Return 'Function' for JSFunction objects. 3001 // Return 'Function' for JSFunction and JSBoundFunction objects.
3002 __ Branch(&function, eq, a1, Operand(JS_FUNCTION_TYPE)); 3002 STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE);
3003 __ Branch(&function, hs, a1, Operand(FIRST_FUNCTION_TYPE));
3003 3004
3004 // Check if the constructor in the map is a JS function. 3005 // Check if the constructor in the map is a JS function.
3005 Register instance_type = a2; 3006 Register instance_type = a2;
3006 __ GetMapConstructor(v0, v0, a1, instance_type); 3007 __ GetMapConstructor(v0, v0, a1, instance_type);
3007 __ Branch(&non_function_constructor, ne, instance_type, 3008 __ Branch(&non_function_constructor, ne, instance_type,
3008 Operand(JS_FUNCTION_TYPE)); 3009 Operand(JS_FUNCTION_TYPE));
3009 3010
3010 // v0 now contains the constructor function. Grab the 3011 // v0 now contains the constructor function. Grab the
3011 // instance class name from there. 3012 // instance class name from there.
3012 __ ld(v0, FieldMemOperand(v0, JSFunction::kSharedFunctionInfoOffset)); 3013 __ ld(v0, FieldMemOperand(v0, JSFunction::kSharedFunctionInfoOffset));
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
4112 reinterpret_cast<uint64_t>( 4113 reinterpret_cast<uint64_t>(
4113 isolate->builtins()->OnStackReplacement()->entry())); 4114 isolate->builtins()->OnStackReplacement()->entry()));
4114 return ON_STACK_REPLACEMENT; 4115 return ON_STACK_REPLACEMENT;
4115 } 4116 }
4116 4117
4117 4118
4118 } // namespace internal 4119 } // namespace internal
4119 } // namespace v8 4120 } // namespace v8
4120 4121
4121 #endif // V8_TARGET_ARCH_MIPS64 4122 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698