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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 2994
2995 VisitForAccumulatorValue(args->at(0)); 2995 VisitForAccumulatorValue(args->at(0));
2996 2996
2997 // If the object is not a JSReceiver, we return null. 2997 // If the object is not a JSReceiver, we return null.
2998 __ JumpIfSmi(r3, &null); 2998 __ JumpIfSmi(r3, &null);
2999 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2999 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
3000 __ CompareObjectType(r3, r3, r4, FIRST_JS_RECEIVER_TYPE); 3000 __ CompareObjectType(r3, r3, r4, FIRST_JS_RECEIVER_TYPE);
3001 // Map is now in r3. 3001 // Map is now in r3.
3002 __ blt(&null); 3002 __ blt(&null);
3003 3003
3004 // Return 'Function' for JSFunction objects. 3004 // Return 'Function' for JSFunction and JSBoundFunction objects.
3005 __ cmpi(r4, Operand(JS_FUNCTION_TYPE)); 3005 __ cmpli(r4, Operand(FIRST_FUNCTION_TYPE));
3006 __ beq(&function); 3006 STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE);
3007 __ bge(&function);
3007 3008
3008 // Check if the constructor in the map is a JS function. 3009 // Check if the constructor in the map is a JS function.
3009 Register instance_type = r5; 3010 Register instance_type = r5;
3010 __ GetMapConstructor(r3, r3, r4, instance_type); 3011 __ GetMapConstructor(r3, r3, r4, instance_type);
3011 __ cmpi(instance_type, Operand(JS_FUNCTION_TYPE)); 3012 __ cmpi(instance_type, Operand(JS_FUNCTION_TYPE));
3012 __ bne(&non_function_constructor); 3013 __ bne(&non_function_constructor);
3013 3014
3014 // r3 now contains the constructor function. Grab the 3015 // r3 now contains the constructor function. Grab the
3015 // instance class name from there. 3016 // instance class name from there.
3016 __ LoadP(r3, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); 3017 __ LoadP(r3, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset));
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 4073
4073 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 4074 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
4074 4075
4075 DCHECK(interrupt_address == 4076 DCHECK(interrupt_address ==
4076 isolate->builtins()->OnStackReplacement()->entry()); 4077 isolate->builtins()->OnStackReplacement()->entry());
4077 return ON_STACK_REPLACEMENT; 4078 return ON_STACK_REPLACEMENT;
4078 } 4079 }
4079 } // namespace internal 4080 } // namespace internal
4080 } // namespace v8 4081 } // namespace v8
4081 #endif // V8_TARGET_ARCH_PPC 4082 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698