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

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

Issue 8337012: Fix bug in instanceof of bound functions on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/macro-assembler-arm.cc ('k') | src/mips/macro-assembler-mips.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after
4064 __ Branch(&miss, ne, function, Operand(at)); 4064 __ Branch(&miss, ne, function, Operand(at));
4065 __ LoadRoot(at, Heap::kInstanceofCacheMapRootIndex); 4065 __ LoadRoot(at, Heap::kInstanceofCacheMapRootIndex);
4066 __ Branch(&miss, ne, map, Operand(at)); 4066 __ Branch(&miss, ne, map, Operand(at));
4067 __ LoadRoot(v0, Heap::kInstanceofCacheAnswerRootIndex); 4067 __ LoadRoot(v0, Heap::kInstanceofCacheAnswerRootIndex);
4068 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); 4068 __ DropAndRet(HasArgsInRegisters() ? 0 : 2);
4069 4069
4070 __ bind(&miss); 4070 __ bind(&miss);
4071 } 4071 }
4072 4072
4073 // Get the prototype of the function. 4073 // Get the prototype of the function.
4074 __ TryGetFunctionPrototype(function, prototype, scratch, &slow); 4074 __ TryGetFunctionPrototype(function, prototype, scratch, &slow, true);
4075 4075
4076 // Check that the function prototype is a JS object. 4076 // Check that the function prototype is a JS object.
4077 __ JumpIfSmi(prototype, &slow); 4077 __ JumpIfSmi(prototype, &slow);
4078 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow); 4078 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow);
4079 4079
4080 // Update the global instanceof or call site inlined cache with the current 4080 // Update the global instanceof or call site inlined cache with the current
4081 // map and function. The cached answer will be set when it is known below. 4081 // map and function. The cached answer will be set when it is known below.
4082 if (!HasCallSiteInlineCheck()) { 4082 if (!HasCallSiteInlineCheck()) {
4083 __ StoreRoot(function, Heap::kInstanceofCacheFunctionRootIndex); 4083 __ StoreRoot(function, Heap::kInstanceofCacheFunctionRootIndex);
4084 __ StoreRoot(map, Heap::kInstanceofCacheMapRootIndex); 4084 __ StoreRoot(map, Heap::kInstanceofCacheMapRootIndex);
(...skipping 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after
7444 7444
7445 // Fall through when we need to inform the incremental marker. 7445 // Fall through when we need to inform the incremental marker.
7446 } 7446 }
7447 7447
7448 7448
7449 #undef __ 7449 #undef __
7450 7450
7451 } } // namespace v8::internal 7451 } } // namespace v8::internal
7452 7452
7453 #endif // V8_TARGET_ARCH_MIPS 7453 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698