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

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

Issue 657813002: [arm][arm64] fix code for InstanceofStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/arm/code-stubs-arm.cc ('k') | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1562
1563 // Before null, smi and string checks, check that the rhs is a function. 1563 // Before null, smi and string checks, check that the rhs is a function.
1564 // For a non-function rhs, an exception must be thrown. 1564 // For a non-function rhs, an exception must be thrown.
1565 __ JumpIfSmi(function, &slow); 1565 __ JumpIfSmi(function, &slow);
1566 __ JumpIfNotObjectType( 1566 __ JumpIfNotObjectType(
1567 function, scratch1, object_type, JS_FUNCTION_TYPE, &slow); 1567 function, scratch1, object_type, JS_FUNCTION_TYPE, &slow);
1568 1568
1569 __ Mov(result, res_false); 1569 __ Mov(result, res_false);
1570 1570
1571 // Null is not instance of anything. 1571 // Null is not instance of anything.
1572 __ Cmp(object_type, Operand(isolate()->factory()->null_value())); 1572 __ Cmp(object, Operand(isolate()->factory()->null_value()));
1573 __ B(ne, &object_not_null); 1573 __ B(ne, &object_not_null);
1574 __ Ret(); 1574 __ Ret();
1575 1575
1576 __ Bind(&object_not_null); 1576 __ Bind(&object_not_null);
1577 // Smi values are not instances of anything. 1577 // Smi values are not instances of anything.
1578 __ JumpIfNotSmi(object, &object_not_null_or_smi); 1578 __ JumpIfNotSmi(object, &object_not_null_or_smi);
1579 __ Ret(); 1579 __ Ret();
1580 1580
1581 __ Bind(&object_not_null_or_smi); 1581 __ Bind(&object_not_null_or_smi);
1582 // String values are not instances of anything. 1582 // String values are not instances of anything.
(...skipping 3477 matching lines...) Expand 10 before | Expand all | Expand 10 after
5060 MemOperand(fp, 6 * kPointerSize), 5060 MemOperand(fp, 6 * kPointerSize),
5061 NULL); 5061 NULL);
5062 } 5062 }
5063 5063
5064 5064
5065 #undef __ 5065 #undef __
5066 5066
5067 } } // namespace v8::internal 5067 } } // namespace v8::internal
5068 5068
5069 #endif // V8_TARGET_ARCH_ARM64 5069 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698